[U-Boot] [PATCH 86/97] powerpc: T4160RDB: Separate from T4240RDB in Kconfig

York Sun york.sun at nxp.com
Thu Nov 24 08:55:07 CET 2016


Use TARGET_T4160RDB to simplify Kconfig options.

Signed-off-by: York Sun <york.sun at nxp.com>
---

 arch/powerpc/cpu/mpc85xx/Kconfig | 5 +++++
 board/freescale/t4rdb/Kconfig    | 2 +-
 board/freescale/t4rdb/Makefile   | 1 +
 configs/T4160RDB_defconfig       | 2 +-
 4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig
index d0fdceb..9d4e5ba 100644
--- a/arch/powerpc/cpu/mpc85xx/Kconfig
+++ b/arch/powerpc/cpu/mpc85xx/Kconfig
@@ -265,6 +265,11 @@ config TARGET_T4160QDS
 	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
diff --git a/board/freescale/t4rdb/Kconfig b/board/freescale/t4rdb/Kconfig
index d93e453..67832da 100644
--- a/board/freescale/t4rdb/Kconfig
+++ b/board/freescale/t4rdb/Kconfig
@@ -1,4 +1,4 @@
-if TARGET_T4240RDB
+if TARGET_T4160RDB || TARGET_T4240RDB
 
 config SYS_BOARD
 	default "t4rdb"
diff --git a/board/freescale/t4rdb/Makefile b/board/freescale/t4rdb/Makefile
index 4f29eea..c15560e 100644
--- a/board/freescale/t4rdb/Makefile
+++ b/board/freescale/t4rdb/Makefile
@@ -7,6 +7,7 @@
 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
diff --git a/configs/T4160RDB_defconfig b/configs/T4160RDB_defconfig
index 9336a3f..2405ac4 100644
--- a/configs/T4160RDB_defconfig
+++ b/configs/T4160RDB_defconfig
@@ -1,6 +1,6 @@
 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
-- 
2.7.4



More information about the U-Boot mailing list