]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
configs: tqma6: change to include tqma6.h in baseboard headers
authorMax Merchel <Max.Merchel@ew.tq-group.com>
Mon, 23 Mar 2026 13:47:35 +0000 (14:47 +0100)
committerFabio Estevam <festevam@nabladev.com>
Thu, 2 Apr 2026 12:05:46 +0000 (09:05 -0300)
The SoM (TQMa6) can be used on various baseboards. No modifications to
the SoM files should be required to use the SoM on different baseboards.
Therefore, include the SoM headers in the baseboard.

Signed-off-by: Max Merchel <Max.Merchel@ew.tq-group.com>
board/tq/tqma6/Kconfig
include/configs/tqma6.h
include/configs/tqma6_mba6.h
include/configs/tqma6_wru4.h

index e62228d73d0ea38e4e64bcfff161073a9c1497ef..9cb0c909aa9adfada6ff234fb8a202915c517097 100644 (file)
@@ -7,7 +7,8 @@ config SYS_VENDOR
        default "tq"
 
 config SYS_CONFIG_NAME
-       default "tqma6"
+       default "tqma6_mba6" if MBA6
+       default "tqma6_wru4" if WRU4
 
 choice
        prompt "TQMa6 SoC variant"
index 3c6678aa2b8f58530abe0c840b134fdf6235cb63..00610e76869eb34a0b544450aed67d6a53254168 100644 (file)
 #define TQMA6_SPI_UBOOT_START          0x400
 #define TQMA6_SPI_UBOOT_SIZE           0xc0000
 
-/*
- * All the defines above are for the TQMa6 SoM
- *
- * Now include the baseboard specific configuration
- */
-#ifdef CONFIG_MBA6
-#include "tqma6_mba6.h"
-#elif CONFIG_WRU4
-#include "tqma6_wru4.h"
-#else
-#error "No baseboard for the TQMa6 defined!"
-#endif
-
 #endif /* __TQMA6_CONFIG_H */
index 81f96ac91e8103ce095b11b4cfbd06067ad66cab..c30aeae4f292ff9a60cd2a548e943155f9a6c794 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __CONFIG_TQMA6_MBA6_H
 #define __CONFIG_TQMA6_MBA6_H
 
+#include "tqma6.h"
+
 #define CFG_MXC_UART_BASE              UART2_BASE
 
 #endif /* __CONFIG_TQMA6_MBA6_H */
index 110bd895a8a56a27b60fbbc3a1fe0c6ebde0f76f..b35e471bd95199370e0d0f0c9f22d8af948adcad 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __CONFIG_TQMA6_WRU4_H
 #define __CONFIG_TQMA6_WRU4_H
 
+#include "tqma6.h"
+
 /* Ethernet */
 #define CFG_FEC_MXC_PHYADDR            0x01