summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/tegra_maincomplex_init.c
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2013-09-29 21:59:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-02 10:24:05 +0200
commitf93b5f8eb973a62affbaf134f07d367649ed3ae4 (patch)
treef738ae6877d030c0c38a8f25b9c2a223bb765e32 /arch/arm/mach-tegra/tegra_maincomplex_init.c
parentf3cf0157fb57bdd9f85ce74e95ac5c3fcb19bab9 (diff)
downloadbarebox-f93b5f8eb973a62affbaf134f07d367649ed3ae4.tar.gz
barebox-f93b5f8eb973a62affbaf134f07d367649ed3ae4.tar.xz
tegra: switch to multi image
To keep things clean I removed all support for the old way to build images. There is now a single tegra_v7 defconfig which builds both supported Tegra boards as images. The new image generation also paves the way for integration of the tegra-cbootimage tool to produce directly flashable images. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-tegra/tegra_maincomplex_init.c')
-rw-r--r--arch/arm/mach-tegra/tegra_maincomplex_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra_maincomplex_init.c b/arch/arm/mach-tegra/tegra_maincomplex_init.c
index c485760db0..b3d59abd6b 100644
--- a/arch/arm/mach-tegra/tegra_maincomplex_init.c
+++ b/arch/arm/mach-tegra/tegra_maincomplex_init.c
@@ -19,6 +19,7 @@
#include <asm/barebox-arm-head.h>
#include <asm/barebox-arm.h>
#include <mach/lowlevel.h>
+#include <mach/tegra20-pmc.h>
void tegra_maincomplex_entry(void)
{
@@ -36,5 +37,6 @@ void tegra_maincomplex_entry(void)
unreachable();
}
- barebox_arm_entry(rambase, ramsize, 0);
+ barebox_arm_entry(rambase, ramsize,
+ readl(TEGRA_PMC_BASE + PMC_SCRATCH(10)));
}