Accessing the CPM2 on an MPC82xx : CPM_MAP_ADDR or cpm2_immr ?

Laurent Pinchart laurent.pinchart at tbox.biz
Fri Feb 3 00:58:26 EST 2006


Hi everybody,

I noticed that the CPM2 module is accessed both through CPM_MAP_ADDR (physical 
address) and cpm2_immr (ioremap()ed address). For instance, the fec_enet 
driver configures the IO ports using (cpm2_map_t*)CPM_MAP_ADDR.

What's the correct way to access the CPM2 module ? Does ioremap() map 
CPM_MAP_ADDR to itself so that both ways are correct ?

Laurent Pinchart



More information about the Linuxppc-embedded mailing list