8270 & Watchdog - early start - II

Laurent Pinchart laurentp at cse-semaphore.com
Thu Sep 20 21:22:07 EST 2007


On Thursday 20 September 2007 12:06, Matias Sundman wrote:
> 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;

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


More information about the Linuxppc-embedded mailing list