From 8419c013048b1f15f3fa2fc7c0463d860a04ee3e Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 18 Apr 2006 11:05:03 +0200 Subject: MPC5200: enable snooping of DMA transactions on XLB even if no PCI is configured; othrwise DMA accesses aren't cache coherent which causes for example USB to fail. --- cpu/mpc5xxx/cpu_init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpu/mpc5xxx/cpu_init.c') diff --git a/cpu/mpc5xxx/cpu_init.c b/cpu/mpc5xxx/cpu_init.c index 4a370ffea9..b7e00b3e24 100644 --- a/cpu/mpc5xxx/cpu_init.c +++ b/cpu/mpc5xxx/cpu_init.c @@ -152,6 +152,10 @@ void cpu_init_f (void) /* enable timebase */ *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13); + /* Enable snooping for RAM */ + *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 15); + *(vu_long *)(MPC5XXX_XLBARB + 0x70) = CFG_SDRAM_BASE | 0x1d; + # if defined(CFG_IPBSPEED_133) /* Motorola reports IPB should better run at 133 MHz. */ *(vu_long *)MPC5XXX_ADDECR |= 1; -- cgit v1.2.3