浏览代码

m68knommu: hard set the ColdFire MBAR register on startup

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>
Greg Ungerer 13 年之前
父节点
当前提交
10cb54de2c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/m68k/platform/coldfire/head.S

+ 4 - 0
arch/m68k/platform/coldfire/head.S

@@ -158,6 +158,10 @@ _start:
 #if defined(CONFIG_UBOOT)
 #if defined(CONFIG_UBOOT)
 	movel	%sp,_init_sp			/* save initial stack pointer */
 	movel	%sp,_init_sp			/* save initial stack pointer */
 #endif
 #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
 	 *	Do any platform or board specific setup now. Most boards