diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-08 09:33:51 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-13 09:34:40 +0100 |
commit | 5a0a6202956c8946ad9a8b93883466535a90607c (patch) | |
tree | 56257429235c802f2fc8bfcc93f9df33cc58c82e /arch/arm/boards/stm32mp157c-dk2/board.c | |
parent | dece707522434d5c8eb35da8c98d0269112457f7 (diff) | |
download | barebox-5a0a6202956c8946ad9a8b93883466535a90607c.tar.gz barebox-5a0a6202956c8946ad9a8b93883466535a90607c.tar.xz |
ARM: Add initial STM32MP1 support
This adds initial STMicroelectronics MP1 support along with support
for the DK2 devel board. Only very basic support:
- UART
- SDRAM memory base/size
- No 1st stage support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/stm32mp157c-dk2/board.c')
-rw-r--r-- | arch/arm/boards/stm32mp157c-dk2/board.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boards/stm32mp157c-dk2/board.c b/arch/arm/boards/stm32mp157c-dk2/board.c new file mode 100644 index 0000000000..cbfe21db6a --- /dev/null +++ b/arch/arm/boards/stm32mp157c-dk2/board.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ +#include <common.h> +#include <linux/sizes.h> +#include <init.h> +#include <asm/memory.h> +#include <mach/stm32.h> + +static int dk2_postcore_init(void) +{ + if (!of_machine_is_compatible("st,stm32mp157c-dk2")) + return 0; + + arm_add_mem_device("ram0", STM32_DDR_BASE, SZ_512M); + + return 0; +} +mem_initcall(dk2_postcore_init); |