Re: 8270 & Watchdog - early start - II
From: <hidden>
Date: 2007-09-20 11:48:01
quoted
quoted
You still shouldn't use direct access with MMU enabled. Use the global
CPM
mapping and the I/O access macros.
I understand, but I need to kick on the WDT before "cpm2_immr" is initialized dur to timing constraints. Cheers // Matias
On Thursday 20 September 2007 12:06, Matias Sundman wrote:quoted
Hi Guys, The Software Service Register (SWSR) is 16-bit wide which Laurent Pinchart [laurentp@cse-semaphore.com] so nicely pointed out for me. So it actually works with; *((volatile unsigned short*)(0xf001000e))=0x556c; *((volatile unsigned short*)(0xf001000e))=0xaa39;You still shouldn't use direct access with MMU enabled. Use the global CPM mapping and the I/O access macros. out_be16(&cpm2_immr->im_siu_conf.siu_82xx.sc_swsr, 0x556c); out_be16(&cpm2_immr->im_siu_conf.siu_82xx.sc_swsr, 0xaa39); Best regards, -- Laurent Pinchart CSE Semaphore Belgium Chaussée de Bruxelles, 732A B-1410 Waterloo Belgium T +32 (2) 387 42 59 F +32 (2) 387 42 75 _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded