[PATCH 05/10] board: st: add STM32H747 discovery board
Johannes Krottmayer
johannes at krotti42.com
Thu May 8 23:24:12 CEST 2025
The code was copied from the STM32H743 discovery board and
modified for the STM32H747 discovery board.
Signed-off-by: Johannes Krottmayer <johannes at krotti42.com>
Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
Cc: Patrice Chotard <patrice.chotard at foss.st.com>
---
board/st/stm32h747-disco/Kconfig | 15 ++++++++
board/st/stm32h747-disco/MAINTAINERS | 8 ++++
board/st/stm32h747-disco/Makefile | 10 +++++
board/st/stm32h747-disco/stm32h747-disco.c | 43 ++++++++++++++++++++++
4 files changed, 76 insertions(+)
create mode 100644 board/st/stm32h747-disco/Kconfig
create mode 100644 board/st/stm32h747-disco/MAINTAINERS
create mode 100644 board/st/stm32h747-disco/Makefile
create mode 100644 board/st/stm32h747-disco/stm32h747-disco.c
diff --git a/board/st/stm32h747-disco/Kconfig b/board/st/stm32h747-disco/Kconfig
new file mode 100644
index 00000000000..a7b2c09a327
--- /dev/null
+++ b/board/st/stm32h747-disco/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_STM32H747_DISCO
+
+config SYS_BOARD
+ default "stm32h747-disco"
+
+config SYS_VENDOR
+ default "st"
+
+config SYS_SOC
+ default "stm32h7"
+
+config SYS_CONFIG_NAME
+ default "stm32h747-disco"
+
+endif
diff --git a/board/st/stm32h747-disco/MAINTAINERS b/board/st/stm32h747-disco/MAINTAINERS
new file mode 100644
index 00000000000..afca1b913ce
--- /dev/null
+++ b/board/st/stm32h747-disco/MAINTAINERS
@@ -0,0 +1,8 @@
+STM32H747 DISCOVERY BOARD
+M: Patrice Chotard <patrice.chotard at foss.st.com>
+S: Maintained
+F: doc/board/st/
+F: board/st/stm32h747-disco
+F: include/configs/stm32h747-disco.h
+F: configs/stm32h747-disco_defconfig
+F: arch/arm/dts/stm32h7*
diff --git a/board/st/stm32h747-disco/Makefile b/board/st/stm32h747-disco/Makefile
new file mode 100644
index 00000000000..b0ba62fa3b7
--- /dev/null
+++ b/board/st/stm32h747-disco/Makefile
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copied from board/st/stm32h743-disco/Makefile:
+#
+# Copyright (C) 2017, STMicroelectronics - All Rights Reserved
+# Author(s): Patrice CHOTARD, <patrice.chotard at foss.st.com> for STMicroelectronics.
+#
+# Modified for the STM32H747-DISCO: Author: Johannes Krottmayer <johannes at krotti42.com>
+
+obj-y := stm32h747-disco.o
diff --git a/board/st/stm32h747-disco/stm32h747-disco.c b/board/st/stm32h747-disco/stm32h747-disco.c
new file mode 100644
index 00000000000..538174391d6
--- /dev/null
+++ b/board/st/stm32h747-disco/stm32h747-disco.c
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copied from board/st/stm32h743-disco/stm32h743-disco.c:
+ *
+ * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
+ * Author(s): Patrice Chotard, <patrice.chotard at foss.st.com> for STMicroelectronics.
+ */
+
+#include <dm.h>
+#include <init.h>
+#include <log.h>
+#include <asm/global_data.h>
+
+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_mem_size_base() != 0)
+ ret = -EINVAL;
+
+ return ret;
+}
+
+int dram_init_banksize(void)
+{
+ fdtdec_setup_memory_banksize();
+
+ return 0;
+}
+
+int board_init(void)
+{
+ return 0;
+}
--
2.39.5
More information about the U-Boot
mailing list