Accessing the CPM2 on an MPC82xx : CPM_MAP_ADDR or cpm2_immr ?

Vitaly Bordug vbordug at ru.mvista.com
Fri Feb 3 01:07:53 EST 2006


On Thu, 2 Feb 2006 14:58:26 +0100
Laurent Pinchart <laurent.pinchart at tbox.biz> wrote:

> 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.
> 

Mentioned driver is deprecated. 
> What's the correct way to access the CPM2 module ? Does ioremap() map 
> CPM_MAP_ADDR to itself so that both ways are correct ?
> 

Even direct cpm2_immr usage is not a good thing, but I cannot tell more without knowing your concerns. Can you please describe what you are planning to implement, prolly we can advice how to do that proper way.


> Laurent Pinchart
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 


-- 
Sincerely, 
Vitaly



More information about the Linuxppc-embedded mailing list