diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2018-01-06 22:11:13 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-09 11:34:31 +0100 |
commit | fc4555c462417a9b7d9883ddf419eb198e6e050b (patch) | |
tree | 35747b01c63ae97f32540072d5bef53046a646f9 /arch/arm/boards/at91sam9m10ihd | |
parent | 73851fc963efa2a92755dfe4dcc8a24af8332bbe (diff) | |
download | barebox-fc4555c462417a9b7d9883ddf419eb198e6e050b.tar.gz barebox-fc4555c462417a9b7d9883ddf419eb198e6e050b.tar.xz |
at91sam9m10g45ek, at91sam9m10ihd, pm9g45: move reset vector to board code
These three board share the same at91sam9g45_lowlevel_init.c file.
Introduce lowlevel.c file for the boards that contains the reset vector.
Delete the now unused at91sam9g45_lowlevel_init.c file
Drop unused CONFIG symbols and Makefile references
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/at91sam9m10ihd')
-rw-r--r-- | arch/arm/boards/at91sam9m10ihd/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/boards/at91sam9m10ihd/lowlevel.c | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boards/at91sam9m10ihd/Makefile b/arch/arm/boards/at91sam9m10ihd/Makefile index f2acf201b4..06193007ad 100644 --- a/arch/arm/boards/at91sam9m10ihd/Makefile +++ b/arch/arm/boards/at91sam9m10ihd/Makefile @@ -1,2 +1,4 @@ obj-y += init.o obj-y += hw_version.o + +lwl-y += lowlevel.o diff --git a/arch/arm/boards/at91sam9m10ihd/lowlevel.c b/arch/arm/boards/at91sam9m10ihd/lowlevel.c new file mode 100644 index 0000000000..d5940b987a --- /dev/null +++ b/arch/arm/boards/at91sam9m10ihd/lowlevel.c @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2009-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> + * + * Under GPLv2 + */ + +#include <common.h> +#include <init.h> + +#include <asm/barebox-arm-head.h> +#include <asm/barebox-arm.h> + +#include <mach/at91sam9_ddrsdr.h> +#include <mach/at91sam9g45.h> +#include <mach/hardware.h> + +void __naked __bare_init barebox_arm_reset_vector(void) +{ + arm_cpu_lowlevel_init(); + + arm_setup_stack(AT91SAM9G45_SRAM_BASE + AT91SAM9G45_SRAM_SIZE - 16); + + barebox_arm_entry(AT91_CHIPSELECT_6, at91sam9g45_get_ddram_size(1), + NULL); +} |