Reg RISC timers in MPC 8260
Vitaly Bordug
vbordug at ru.mvista.com
Tue Jun 27 21:51:21 EST 2006
На Tue, 27 Jun 2006 04:31:37 -0700 (PDT)
Jagan <morphicsk at yahoo.com> записано:
> Hi all
>
> We have a requirement of running a periodic timer for
> 5 millisecond using RISC timers in CPM module of
> MPC8260. The OS is monta vista linux and target is
> MPC8260 I have written a sample code to start a
> periodic timer using MPC8260.
>
> But it hangs when SET TIMER command is issued to the
> CPCR register. The cross compiler we r using is
> ppc_82xx-gcc.
>
> Can anyone pls help me in getting this right ?
>
> I am pasting the code here
> ------------------------------------------------------
> /*Start of code snippet ignoring the header files */
> cpm8xx_t *cpmp;
>
> volatile immap_t *immap = (immap_t *)IMAP_ADDR;
>
hrmmm, isn't 8260 CPM2? This is 8xx immap, that is _really_ different
from what 8260 has... Grep for cpm2_immr and look into asm/immap_cpm2.h
for details.
-Vitaly
More information about the Linuxppc-embedded
mailing list