From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from asavdk4.altibox.net ([109.247.116.15]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eUIfK-0003c8-B7 for barebox@lists.infradead.org; Wed, 27 Dec 2017 20:51:13 +0000 From: Sam Ravnborg Date: Wed, 27 Dec 2017 21:50:20 +0100 Message-Id: <20171227205033.26012-11-sam@ravnborg.org> In-Reply-To: <20171227204842.GA20040@ravnborg.org> References: <20171227204842.GA20040@ravnborg.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 11/24] mmccpu: move reset vector to board code To: Barebox List Cc: Sam Ravnborg Introduce lowlevel.c to hold the reser vector code for the board. Signed-off-by: Sam Ravnborg --- arch/arm/boards/mmccpu/Makefile | 2 ++ arch/arm/boards/mmccpu/lowlevel.c | 26 ++++++++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 1 - 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boards/mmccpu/lowlevel.c diff --git a/arch/arm/boards/mmccpu/Makefile b/arch/arm/boards/mmccpu/Makefile index eb072c016..e11fd5b69 100644 --- a/arch/arm/boards/mmccpu/Makefile +++ b/arch/arm/boards/mmccpu/Makefile @@ -1 +1,3 @@ obj-y += init.o + +lwl-y += lowlevel.o diff --git a/arch/arm/boards/mmccpu/lowlevel.c b/arch/arm/boards/mmccpu/lowlevel.c new file mode 100644 index 000000000..3ba24ce4c --- /dev/null +++ b/arch/arm/boards/mmccpu/lowlevel.c @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2009-2013 Jean-Christophe PLAGNIOL-VILLARD + * + * Under GPLv2 + */ + +#include +#include + +#include +#include + +#include +#include +#include + +void __naked __bare_init barebox_arm_reset_vector(void) +{ + arm_cpu_lowlevel_init(); + + arm_setup_stack(AT91SAM9263_SRAM0_BASE + AT91SAM9263_SRAM0_SIZE - 16); + + barebox_arm_entry(AT91_CHIPSELECT_1, + at91_get_sdram_size(IOMEM(AT91SAM9263_BASE_SDRAMC0)), + NULL); +} diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 306f82497..4dd608f0e 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -441,7 +441,6 @@ config MACH_AT91SAM9263EK config MACH_MMCCPU bool "Bucyrus MMC-CPU" - select AT91SAM9263_LWL help Say y here if you are using the Bucyrus MMC-CPU -- 2.12.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox