Use TARGET_T4160RDB to simplify Kconfig options.
Signed-off-by: York Sun <york.sun@nxp.com>
select SUPPORT_SPL
select PHYS_64BIT
+config TARGET_T4160RDB
+ bool "Support T4160RDB"
+ select SUPPORT_SPL
+ select PHYS_64BIT
+
config TARGET_T4240QDS
bool "Support T4240QDS"
select SUPPORT_SPL
-if TARGET_T4240RDB
+if TARGET_T4160RDB || TARGET_T4240RDB
config SYS_BOARD
default "t4rdb"
ifdef CONFIG_SPL_BUILD
obj-y += spl.o
else
+obj-$(CONFIG_TARGET_T4160RDB) += t4240rdb.o
obj-$(CONFIG_T4240RDB) += t4240rdb.o
obj-y += cpld.o
obj-y += eth.o
CONFIG_PPC=y
CONFIG_MPC85xx=y
-CONFIG_TARGET_T4240RDB=y
+CONFIG_TARGET_T4160RDB=y
CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_OF_BOARD_SETUP=y