Skip to contentSkip to conversation

ARM: stm32: Use CONFIG_STM32MP15X to discern STM32MP15xx on DH STM32MP15xx DHSOM

PATCH In review Marek Vasut 2 participants 3 messages Jan 8 – Jan 29 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: stm32: Use CONFIG_STM32MP15X to discern STM32MP15xx on DH STM32MP15xx DHSOM

Use plain CONFIG_STM32MP15X to discern code which is specific to STM32MP15xx in DH STM32MP1 DHSOM board files.

---
Cc: Antonio Borneo <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/dhelectronics/dh_stm32mp1/board.c +1 -1
index 55526189d5a..90590d14941 100644
@@ -314,7 +314,7 @@ int board_stm32mp1_ddr_config_name_match(struct udevice *dev,
 			return 0;
 	}
 
-	if (IS_ENABLED(CONFIG_TARGET_DH_STM32MP15X)) {
+	if (IS_ENABLED(CONFIG_STM32MP15X)) {
 		if (ddr3code == 1 &&
 		    !strcmp(name, "st,ddr3l-dhsom-1066-888-bin-g-2x1gb-533mhz"))
 			return 0;
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · Marek Vasut

Use plain CONFIG_STM32MP15X to discern code which is specific to STM32MP15xx in DH STM32MP1 DHSOM board files.

---
Cc: Antonio Borneo <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/dhelectronics/dh_stm32mp1/board.c +0 -0
index 55526189d5a..90590d14941 100644

board/dhelectronics/dh_stm32mp1/board.c int board_stm32mp1_ddr_config_name_match(struct udevice *dev, · line 320

Quoted 8 lines
board/dhelectronics/dh_stm32mp1/board.c +1 -1
@@ -314,7 +314,7 @@ int board_stm32mp1_ddr_config_name_match(struct udevice *dev,
 			return 0;
 	}
 
-	if (IS_ENABLED(CONFIG_TARGET_DH_STM32MP15X)) {
+	if (IS_ENABLED(CONFIG_STM32MP15X)) {
 		if (ddr3code == 1 &&
 		    !strcmp(name, "st,ddr3l-dhsom-1066-888-bin-g-2x1gb-533mhz"))
 			return 0;

Thanks
Patrice

#2 lore raw
Quoted 34 lines · Patrice CHOTARD
Quoted 21 lines · Marek Vasut

Use plain CONFIG_STM32MP15X to discern code which is specific to STM32MP15xx in DH STM32MP1 DHSOM board files.

---
Cc: Antonio Borneo <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/dhelectronics/dh_stm32mp1/board.c +0 -0
index 55526189d5a..90590d14941 100644

board/dhelectronics/dh_stm32mp1/board.c int board_stm32mp1_ddr_config_name_match(struct udevice *dev, · line 320

Quoted 8 lines
board/dhelectronics/dh_stm32mp1/board.c +1 -1
@@ -314,7 +314,7 @@ int board_stm32mp1_ddr_config_name_match(struct udevice *dev,
 			return 0;
 	}
 
-	if (IS_ENABLED(CONFIG_TARGET_DH_STM32MP15X)) {
+	if (IS_ENABLED(CONFIG_STM32MP15X)) {
 		if (ddr3code == 1 &&
 		    !strcmp(name, "st,ddr3l-dhsom-1066-888-bin-g-2x1gb-533mhz"))
 			return 0;
Quoted 2 lines

Thanks
Patrice

Applied to u-boot-stm32/master

Thanks
Patrice

Quoted 4 lines

_______________________________________________
Uboot-stm32 mailing list
[email protected]
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32