Merge branch 'master' of git://www.denx.de/git/u-boot-imx
[oweals/u-boot.git] / examples / standalone / mem_to_mem_idma2intr.c
index e466c904a7866235dae68f5e5c780085501b4e15..215dc220336add24fd14a4cfc7106c81da58a720 100644 (file)
@@ -309,7 +309,8 @@ int idma_init (void)
 
        memaddr = dpalloc (sizeof (pram_idma_t), 64);
 
-       *(volatile ushort *) &immap->im_dprambase[PROFF_IDMA2_BASE] = memaddr;
+       *(volatile u16 *)&immap->im_dprambase16
+               [PROFF_IDMA2_BASE / sizeof(u16)] = memaddr;
        piptr = (volatile pram_idma_t *) ((uint) (immap) + memaddr);
 
        piptr->pi_resv1 = 0;            /* manual says: clear it */