diff options
author | Lucas Stach <dev@lynxeye.de> | 2016-01-12 21:06:51 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-18 08:22:23 +0100 |
commit | 20ce1814bf33ed7baeee5736fa0e894c14136df7 (patch) | |
tree | ccaf4ce93eda0622d4aae93e2fee82271cecca12 /arch/arm/boards/toradex-colibri-t20 | |
parent | 53a573c0140118ba4e62f45bd17fae5c378805f7 (diff) | |
download | barebox-20ce1814bf33ed7baeee5736fa0e894c14136df7.tar.gz barebox-20ce1814bf33ed7baeee5736fa0e894c14136df7.tar.xz |
ARM: tegra: clean up lowlevel entry
The lowlevel startup function jumps directly to the main
cluster if we are already running there. This allows for a
significant cleanup of the board startup code by directly
using the FDT address available there.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/toradex-colibri-t20')
-rw-r--r-- | arch/arm/boards/toradex-colibri-t20/entry.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/boards/toradex-colibri-t20/entry.c b/arch/arm/boards/toradex-colibri-t20/entry.c index a25958fb41..9557b13f95 100644 --- a/arch/arm/boards/toradex-colibri-t20/entry.c +++ b/arch/arm/boards/toradex-colibri-t20/entry.c @@ -15,22 +15,15 @@ */ #include <common.h> -#include <linux/sizes.h> -#include <asm/barebox-arm.h> -#include <asm/barebox-arm-head.h> #include <mach/lowlevel.h> extern char __dtb_tegra20_colibri_iris_start[]; static void common_toradex_colibri_t20_iris_start(void) { - uint32_t fdt; + tegra_cpu_lowlevel_setup(__dtb_tegra20_colibri_iris_start); - tegra_cpu_lowlevel_setup(); - - fdt = (uint32_t)__dtb_tegra20_colibri_iris_start - get_runtime_offset(); - - tegra_avp_reset_vector(fdt); + tegra_avp_reset_vector(); } ENTRY_FUNCTION(start_colibri_t20_256_usbload, r0, r1, r2) |