m68knommu: hard set the ColdFire MBAR register on startup
authorGreg Ungerer <gerg@uclinux.org>
Wed, 23 Nov 2011 04:46:36 +0000 (14:46 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sun, 4 Mar 2012 23:43:03 +0000 (09:43 +1000)
The ColdFire MBAR register that holds the mapping of the peripheral region
on some ColdFire CPUs is configurable. It can be configured at some address
different to that of the bootloader that loaded the kernel. So hard set
the MBAR register mapping at kernel startup time.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/platform/coldfire/head.S

index 38f04a3f620713e5ea14cc5a100b5f41ad299d51..c3db70ed33b333817811577fa3e8bf933f14f50d 100644 (file)
@@ -158,6 +158,10 @@ _start:
 #if defined(CONFIG_UBOOT)
        movel   %sp,_init_sp                    /* save initial stack pointer */
 #endif
+#ifdef CONFIG_MBAR
+       movel   #CONFIG_MBAR+1,%d0              /* configured MBAR address */
+       movec   %d0,%MBAR                       /* set it */
+#endif
 
        /*
         *      Do any platform or board specific setup now. Most boards
This page took 0.024979 seconds and 5 git commands to generate.