8270 & Watchdog - early start - II

Matias Sundman matias.sundman at ericsson.com
Thu Sep 20 20:06:03 EST 2007


Hi Guys,
The Software Service Register (SWSR) is 16-bit wide which Laurent
Pinchart [laurentp at cse-semaphore.com] so nicely pointed out for me.
So it actually works with;
*((volatile unsigned short*)(0xf001000e))=0x556c; 
*((volatile unsigned short*)(0xf001000e))=0xaa39; 

 

Thx // Matias

 

________________________________

From: linuxppc-embedded-bounces+matias.sundman=ericsson.com at ozlabs.org
[mailto:linuxppc-embedded-bounces+matias.sundman=ericsson.com at ozlabs.org
] On Behalf Of Matias Sundman
Sent: den 20 september 2007 10:19
To: linuxppc-embedded at ozlabs.org
Subject: 8270 & Watchdog - early start




Hi, 
I have a custom MPC8270 board running Linux and u-boot. 
Now, I enabled the watchdog on the 8270 and need to kick it regularly by

writing ; 

0x556c 
0xaa39 

To the internal register @ 0x0x1000e. 

When I am coming out from head.S to start_kernel I was thinking of
kicking 
it a couple times "manually" 
before a timer interrupt is inserted which will take care of it until a 
"superdaemon" is taking over. 

I tried to serve the register as follows; 


*((volatile unsigned int*)(0xf001000e))=0x556c; 
*((volatile unsigned int*)(0xf001000e))=0xaa39; 

But it does not take effect. I thought that since u-boot had set up the
IMMR 
to 0xf000'0000 I could 
directly write to the register as above. 


Any clues why this does not work? 


Thx // Matias 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070920/6bb0fc59/attachment.htm 


More information about the Linuxppc-embedded mailing list