From 246771b1845df858007165827d934ca9c43153b3 Mon Sep 17 00:00:00 2001 From: Patrice Chotard Date: Wed, 13 Sep 2017 18:00:12 +0200 Subject: board: Add stm32h7 SoC, discovery and evaluation boards support This patch adds support for stm32h7 soc family, stm32h743 discovery and evaluation boards. For more information about STM32H7 series, please visit: http://www.st.com/en/microcontrollers/stm32h7-series.html Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- board/st/stm32h743-eval/Kconfig | 19 +++++++++++ board/st/stm32h743-eval/MAINTAINERS | 6 ++++ board/st/stm32h743-eval/Makefile | 8 +++++ board/st/stm32h743-eval/stm32h743-eval.c | 56 ++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 board/st/stm32h743-eval/Kconfig create mode 100644 board/st/stm32h743-eval/MAINTAINERS create mode 100644 board/st/stm32h743-eval/Makefile create mode 100644 board/st/stm32h743-eval/stm32h743-eval.c (limited to 'board/st/stm32h743-eval') diff --git a/board/st/stm32h743-eval/Kconfig b/board/st/stm32h743-eval/Kconfig new file mode 100644 index 0000000..ea879b1 --- /dev/null +++ b/board/st/stm32h743-eval/Kconfig @@ -0,0 +1,19 @@ +if TARGET_STM32H743_EVAL + +config SYS_BOARD + string + default "stm32h743-eval" + +config SYS_VENDOR + string + default "st" + +config SYS_SOC + string + default "stm32h7" + +config SYS_CONFIG_NAME + string + default "stm32h743-eval" + +endif diff --git a/board/st/stm32h743-eval/MAINTAINERS b/board/st/stm32h743-eval/MAINTAINERS new file mode 100644 index 0000000..3029c560 --- /dev/null +++ b/board/st/stm32h743-eval/MAINTAINERS @@ -0,0 +1,6 @@ +STM32H743 EVALUATION BOARD +M: Patrice Chotard +S: Maintained +F: board/st/stm32h743-eval +F: include/configs/stm32h743-eval.h +F: configs/stm32h743-eval_defconfig diff --git a/board/st/stm32h743-eval/Makefile b/board/st/stm32h743-eval/Makefile new file mode 100644 index 0000000..4f25b2d --- /dev/null +++ b/board/st/stm32h743-eval/Makefile @@ -0,0 +1,8 @@ +# +# (C) Copyright 2017 +# Patrice Chotard, +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := stm32h743-eval.o diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c new file mode 100644 index 0000000..625b3a0 --- /dev/null +++ b/board/st/stm32h743-eval/stm32h743-eval.c @@ -0,0 +1,56 @@ +/* + * Copyright (C) STMicroelectronics SA 2017 + * Author(s): Patrice CHOTARD, for STMicroelectronics. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include + +DECLARE_GLOBAL_DATA_PTR; + +int dram_init(void) +{ + struct udevice *dev; + int ret; + + ret = uclass_get_device(UCLASS_RAM, 0, &dev); + if (ret) { + debug("DRAM init failed: %d\n", ret); + return ret; + } + + if (fdtdec_setup_memory_size() != 0) + ret = -EINVAL; + + return ret; +} + +int dram_init_banksize(void) +{ + fdtdec_setup_memory_banksize(); + + return 0; +} + +int board_early_init_f(void) +{ + return 0; +} + +u32 get_board_rev(void) +{ + return 0; +} + +int board_late_init(void) +{ + return 0; +} + +int board_init(void) +{ + gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100; + return 0; +} -- cgit v1.1