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>
default "tq"
config SYS_CONFIG_NAME
- default "tqma6"
+ default "tqma6_mba6" if MBA6
+ default "tqma6_wru4" if WRU4
choice
prompt "TQMa6 SoC variant"
#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 */
#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 */
#ifndef __CONFIG_TQMA6_WRU4_H
#define __CONFIG_TQMA6_WRU4_H
+#include "tqma6.h"
+
/* Ethernet */
#define CFG_FEC_MXC_PHYADDR 0x01