diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-01-26 19:19:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-28 09:45:39 +0100 |
commit | 369797daee1db2bc351ea721ba646fd28b633c82 (patch) | |
tree | 1b631700265b5dc8ad65a67f01ab6bc9b47c3194 /arch/arm/mach-at91/at91sam9260_lowlevel_init.c | |
parent | bfa778fde326d3468fcf99d030e5acb49db946d1 (diff) | |
download | barebox-369797daee1db2bc351ea721ba646fd28b633c82.tar.gz barebox-369797daee1db2bc351ea721ba646fd28b633c82.tar.xz |
at91sam9260/9g20/9261/9g10/9263: split soc lowlevel_init from generic
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260_lowlevel_init.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_lowlevel_init.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9260_lowlevel_init.c b/arch/arm/mach-at91/at91sam9260_lowlevel_init.c new file mode 100644 index 0000000000..c2cf8bfcb5 --- /dev/null +++ b/arch/arm/mach-at91/at91sam9260_lowlevel_init.c @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2009-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> + * + * Under GPLv2 + */ + +#define __LOWLEVEL_INIT__ + +#include <common.h> +#include <asm/system.h> +#include <asm/barebox-arm.h> +#include <asm/barebox-arm-head.h> +#include <mach/hardware.h> +#include <mach/at91_pmc.h> +#include <mach/at91_pio.h> +#include <mach/at91_rstc.h> +#include <mach/at91_wdt.h> +#include <mach/at91sam9_matrix.h> +#include <mach/at91sam9_sdramc.h> +#include <mach/at91sam9_smc.h> +#include <mach/at91_lowlevel_init.h> +#include <mach/io.h> +#include <init.h> +#include <sizes.h> + +void __naked __bare_init reset(void) +{ + common_reset(); + + arm_setup_stack(AT91SAM9260_SRAM_BASE + AT91SAM9260_SRAM_SIZE - 16); + + at91sam926x_lowlevel_init(IOMEM(AT91SAM9260_BASE_PIOC), false, + AT91_MATRIX_EBICSA); +} |