Coldfire: XL Bus minor fixes
authorarun c <arun.edarath@gmail.com>
Thu, 4 Dec 2008 10:27:15 +0000 (15:57 +0530)
committerJohn Rigby <jrigby@freescale.com>
Tue, 17 Mar 2009 21:58:07 +0000 (15:58 -0600)
According to coldfire manual data timeout > address time out
also use correct macro to program XARB_CFG

Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
cpu/mcf547x_8x/cpu_init.c

index 1ba57835e5454342fce37067e8444156c964e33a..96a3132b7838a67638a3f73ee8d44be8f8ef87db 100644 (file)
@@ -49,14 +49,14 @@ void cpu_init_f(void)
        volatile xlbarb_t *xlbarb = (volatile xlbarb_t *) MMAP_XARB;
 
        xlbarb->adrto = 0x2000;
-       xlbarb->datto = 0x2000;
+       xlbarb->datto = 0x2500;
        xlbarb->busto = 0x3000;
 
-       xlbarb->cfg = XARB_SR_AT | XARB_SR_DT;
+       xlbarb->cfg = XARB_CFG_AT | XARB_CFG_DT;
 
        /* Master Priority Enable */
-       xlbarb->pri = 0;
        xlbarb->prien = 0xff;
+       xlbarb->pri = 0;
 
 #if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
        fbcs->csar0 = CONFIG_SYS_CS0_BASE;