]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-stm32: add STM32MP157C-DK2 support
authorThomas Richard <thomas.richard@bootlin.com>
Wed, 15 Jan 2025 07:27:53 +0000 (08:27 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Apr 2025 16:41:08 +0000 (18:41 +0200)
Add entry for STM32MP157C-DK2 and the SCMI variant.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/18119
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/uboot-stm32/Makefile

index 6234827a28fe7c8cd053b469026118e1ca8da484..f6f458f5c79109dfc9db4f07a04446b33887e183 100644 (file)
@@ -28,13 +28,33 @@ define U-Boot/stm32mp13
   UBOOT_CONFIG:=stm32mp13
 endef
 
+define U-Boot/stm32mp15
+  BUILD_SUBTARGET:=stm32mp1
+  UBOOT_CONFIG:=stm32mp15
+endef
+
 define U-Boot/stm32mp135f-dk
   $(call U-Boot/stm32mp13)
   NAME:=STM32MP135F-DK
   DEVICE_TREE:=stm32mp135f-dk
 endef
 
-UBOOT_TARGETS := stm32mp135f-dk
+define U-Boot/stm32mp157c-dk2
+  $(call U-Boot/stm32mp15)
+  NAME:=STM32MP157C-DK2
+  DEVICE_TREE:=stm32mp157c-dk2
+endef
+
+define U-Boot/stm32mp157c-dk2-scmi
+  $(call U-Boot/stm32mp15)
+  NAME:=STM32MP157C-DK2 (SCMI)
+  DEVICE_TREE:=stm32mp157c-dk2-scmi
+endef
+
+UBOOT_TARGETS := \
+                stm32mp135f-dk \
+                stm32mp157c-dk2 \
+                stm32mp157c-dk2-scmi
 
 UBOOT_MAKE_FLAGS += DEVICE_TREE=$(DEVICE_TREE)