]> git.sur5r.net Git - u-boot/commitdiff
powerpc: cyrus: Separate P5020/P5040 config options
authorYork Sun <york.sun@nxp.com>
Fri, 2 Dec 2016 02:37:55 +0000 (18:37 -0800)
committerYork Sun <york.sun@nxp.com>
Fri, 2 Dec 2016 16:52:34 +0000 (08:52 -0800)
Instead of using EXTRA options in defconfig, use two targets
in Kconfig to select correct SoC.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc85xx/Kconfig
board/varisys/cyrus/Kconfig
configs/Cyrus_P5020_defconfig
configs/Cyrus_P5040_defconfig

index 3ee7d2f0c57d0996291075ce132af24f4aff3219..9a5cd8539939e6d7b7890d45569257dba6e9d39b 100644 (file)
@@ -309,8 +309,14 @@ config TARGET_UCP1020
        bool "Support uCP1020"
        select ARCH_P1020
 
-config TARGET_CYRUS
-       bool "Support Varisys Cyrus"
+config TARGET_CYRUS_P5020
+       bool "Support Varisys Cyrus P5020"
+       select ARCH_P5020
+       select PHYS_64BIT
+
+config TARGET_CYRUS_P5040
+        bool "Support Varisys Cyrus P5040"
+       select ARCH_P5040
        select PHYS_64BIT
 
 endchoice
index d9ea7ef89c5738056936f6a6dcb8894549aaed4e..c7b5253926519c142a058b32d74a74b77b87e2e0 100644 (file)
@@ -1,4 +1,4 @@
-if TARGET_CYRUS
+if TARGET_CYRUS_P5020 || TARGET_CYRUS_P5040
 
 config SYS_BOARD
        default "cyrus"
index 94fc387e790b65e7ef13f626da2f1f98fbdcd541..4c124d9fb24f746152869ba8f1e2a5f0553b2122 100644 (file)
@@ -1,11 +1,11 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
-CONFIG_TARGET_CYRUS=y
+CONFIG_TARGET_CYRUS_P5020=y
 # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SYS_TEXT_BASE=0xFFF40000,ARCH_P5020"
+CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SYS_TEXT_BASE=0xFFF40000"
 CONFIG_BOOTDELAY=10
 CONFIG_CONSOLE_MUX=y
 CONFIG_HUSH_PARSER=y
index 4b50772843c41f948f79dab4cbe935c74f0f351b..aa683227bdedd6bb2843073b3299360af4406fa4 100644 (file)
@@ -1,11 +1,11 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
-CONFIG_TARGET_CYRUS=y
+CONFIG_TARGET_CYRUS_P5040=y
 # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SYS_TEXT_BASE=0xFFF40000,ARCH_P5040"
+CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SYS_TEXT_BASE=0xFFF40000"
 CONFIG_BOOTDELAY=10
 CONFIG_CONSOLE_MUX=y
 CONFIG_HUSH_PARSER=y