summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx27.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-01 22:35:54 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-15 19:44:36 +0200
commita029e32d7fd9dd323abfb0d11356a4468bcbce71 (patch)
treeeeaf88aea31d638a9324f460b4b7dee885122b22 /arch/arm/mach-imx/imx27.c
parentcff397271278257991705e5c4ecf15c47bd61208 (diff)
downloadbarebox-a029e32d7fd9dd323abfb0d11356a4468bcbce71.tar.gz
barebox-a029e32d7fd9dd323abfb0d11356a4468bcbce71.tar.xz
ARM i.MX: rework bootsource setting
This moves the known i.MX bootsource settings to a single file so that the code can be shared. Also we add a enum for the different boot sources so that it can be used in C Code and not only on the shell. The pcm038 board is changed to use it instead of digging in the registers manually. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx27.c')
-rw-r--r--arch/arm/mach-imx/imx27.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx27.c b/arch/arm/mach-imx/imx27.c
index d1aa213ffb..e3d11b31f7 100644
--- a/arch/arm/mach-imx/imx27.c
+++ b/arch/arm/mach-imx/imx27.c
@@ -17,6 +17,7 @@
#include <mach/iomux-v1.h>
#include <sizes.h>
#include <mach/revision.h>
+#include <mach/generic.h>
#include <init.h>
#include <io.h>
@@ -98,6 +99,7 @@ static void imx27_init_max(void)
static int imx27_init(void)
{
imx27_silicon_revision();
+ imx_27_boot_save_loc((void *)MX27_SYSCTRL_BASE_ADDR);
imx_iomuxv1_init((void *)MX27_GPIO1_BASE_ADDR);