<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>8270 & Watchdog - early start</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1597" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=188530310-20092007><FONT face="Comic Sans MS" color=#0000ff
size=2>Hi Guys,</FONT></SPAN></DIV>
<DIV><SPAN class=188530310-20092007><FONT face="Comic Sans MS" color=#0000ff
size=2><FONT size=2>The Software Service Register (SWSR) is 16-bit wide which
Laurent Pinchart [laurentp@cse-semaphore.com] so nicely pointed out for
me.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=188530310-20092007><FONT face="Comic Sans MS" color=#0000ff
size=2>So it actually works with;</FONT></SPAN></DIV>
<DIV><SPAN class=188530310-20092007>
<P><FONT face="Comic Sans MS" color=#0000ff size=2>*((volatile
unsigned <SPAN class=188530310-20092007>short</SPAN>*)(0xf001000e))=0x556c;
<BR>*((volatile unsigned <SPAN
class=188530310-20092007>short</SPAN>*)(0xf001000e))=0xaa39; </FONT></P>
<P> </P>
<P><SPAN class=188530310-20092007><FONT face="Comic Sans MS" color=#0000ff
size=2>Thx // Matias</FONT></SPAN></P></SPAN></DIV>
<DIV><SPAN class=188530310-20092007><FONT face="Comic Sans MS" color=#0000ff
size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
linuxppc-embedded-bounces+matias.sundman=ericsson.com@ozlabs.org
[mailto:linuxppc-embedded-bounces+matias.sundman=ericsson.com@ozlabs.org] <B>On
Behalf Of </B>Matias Sundman<BR><B>Sent:</B> den 20 september 2007
10:19<BR><B>To:</B> linuxppc-embedded@ozlabs.org<BR><B>Subject:</B> 8270 &
Watchdog - early start<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format --><BR>
<P><FONT face="Comic Sans MS" size=2>Hi,</FONT> <BR><FONT face="Comic Sans MS"
size=2>I have a custom MPC8270 board running Linux and u-boot.</FONT> <BR><FONT
face="Comic Sans MS" size=2>Now, I enabled the watchdog on the 8270 and need to
kick it regularly by</FONT> <BR><FONT face="Comic Sans MS" size=2>writing
;</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>0x556c</FONT> <BR><FONT
face="Comic Sans MS" size=2>0xaa39</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>To the internal register @
0x0x1000e.</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>When I am coming out from head.S to
start_kernel I was thinking of kicking</FONT> <BR><FONT face="Comic Sans MS"
size=2>it a couple times "manually"</FONT> <BR><FONT face="Comic Sans MS"
size=2>before a timer interrupt is inserted which will take care of it until
a</FONT> <BR><FONT face="Comic Sans MS" size=2>"superdaemon" is taking
over.</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>I tried to serve the register as
follows;</FONT> </P><BR>
<P><FONT face="Comic Sans MS" size=2>*((volatile unsigned
int*)(0xf001000e))=0x556c;</FONT> <BR><FONT face="Comic Sans MS"
size=2>*((volatile unsigned int*)(0xf001000e))=0xaa39;</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>But it does not take effect. I thought that
since u-boot had set up the IMMR</FONT> <BR><FONT face="Comic Sans MS" size=2>to
0xf000'0000 I could</FONT> <BR><FONT face="Comic Sans MS" size=2>directly write
to the register as above.</FONT> </P><BR>
<P><FONT face="Comic Sans MS" size=2>Any clues why this does not work?</FONT>
</P><BR>
<P><FONT face="Comic Sans MS" size=2>Thx // Matias</FONT> </P></BODY></HTML>