Convert CONFIG_CMD_SATA to Kconfig
[platform/kernel/u-boot.git] / arch / powerpc / cpu / mpc85xx / Kconfig
index c06a4db..0bff79a 100644 (file)
@@ -4,6 +4,14 @@ menu "mpc85xx CPU"
 config SYS_CPU
        default "mpc85xx"
 
+config CMD_ERRATA
+       bool "Enable the 'errata' command"
+       depends on MPC85xx
+       default y
+       help
+         This enables the 'errata' command which displays a list of errata
+         work-arounds which are enabled for the current board.
+
 choice
        prompt "Target select"
        optional
@@ -55,34 +63,35 @@ config TARGET_P3041DS
        select PHYS_64BIT
        select ARCH_P3041
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
+       imply CMD_SATA
 
 config TARGET_P4080DS
        bool "Support P4080DS"
        select PHYS_64BIT
        select ARCH_P4080
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
+       imply CMD_SATA
 
 config TARGET_P5020DS
        bool "Support P5020DS"
        select PHYS_64BIT
        select ARCH_P5020
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
+       imply CMD_SATA
 
 config TARGET_P5040DS
        bool "Support P5040DS"
        select PHYS_64BIT
        select ARCH_P5040
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
+       imply CMD_SATA
 
 config TARGET_MPC8536DS
        bool "Support MPC8536DS"
        select ARCH_MPC8536
 # Use DDR3 controller with DDR2 DIMMs on this board
        select SYS_FSL_DDRC_GEN3
-
-config TARGET_MPC8540ADS
-       bool "Support MPC8540ADS"
-       select ARCH_MPC8540
+       imply CMD_SATA
 
 config TARGET_MPC8541CDS
        bool "Support MPC8541CDS"
@@ -100,10 +109,6 @@ config TARGET_MPC8555CDS
        bool "Support MPC8555CDS"
        select ARCH_MPC8555
 
-config TARGET_MPC8560ADS
-       bool "Support MPC8560ADS"
-       select ARCH_MPC8560
-
 config TARGET_MPC8568MDS
        bool "Support MPC8568MDS"
        select ARCH_MPC8568
@@ -117,6 +122,7 @@ config TARGET_MPC8572DS
        select ARCH_MPC8572
 # Use DDR3 controller with DDR2 DIMMs on this board
        select SYS_FSL_DDRC_GEN3
+       imply SCSI
 
 config TARGET_P1010RDB_PA
        bool "Support P1010RDB_PA"
@@ -124,6 +130,8 @@ config TARGET_P1010RDB_PA
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select SUPPORT_TPL
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1010RDB_PB
        bool "Support P1010RDB_PB"
@@ -131,64 +139,84 @@ config TARGET_P1010RDB_PB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select SUPPORT_TPL
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1022DS
        bool "Support P1022DS"
        select ARCH_P1022
        select SUPPORT_SPL
        select SUPPORT_TPL
+       imply CMD_SATA
 
 config TARGET_P1023RDB
        bool "Support P1023RDB"
        select ARCH_P1023
+       imply CMD_EEPROM
 
 config TARGET_P1020MBG
        bool "Support P1020MBG-PC"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1020
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1020RDB_PC
        bool "Support P1020RDB-PC"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1020
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1020RDB_PD
        bool "Support P1020RDB-PD"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1020
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1020UTM
        bool "Support P1020UTM"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1020
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1021RDB
        bool "Support P1021RDB"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1021
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1024RDB
        bool "Support P1024RDB"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1024
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1025RDB
        bool "Support P1025RDB"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P1025
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P2020RDB
        bool "Support P2020RDB-PC"
        select SUPPORT_SPL
        select SUPPORT_TPL
        select ARCH_P2020
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_P1_TWR
        bool "Support p1_twr"
@@ -199,6 +227,7 @@ config TARGET_P2041RDB
        select ARCH_P2041
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_QEMU_PPCE500
        bool "Support qemu-ppce500"
@@ -211,6 +240,8 @@ config TARGET_T1024QDS
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_T1023RDB
        bool "Support T1023RDB"
@@ -218,6 +249,7 @@ config TARGET_T1023RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_EEPROM
 
 config TARGET_T1024RDB
        bool "Support T1024RDB"
@@ -225,12 +257,15 @@ config TARGET_T1024RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_EEPROM
 
 config TARGET_T1040QDS
        bool "Support T1040QDS"
        select ARCH_T1040
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select PHYS_64BIT
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config TARGET_T1040RDB
        bool "Support T1040RDB"
@@ -238,6 +273,7 @@ config TARGET_T1040RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T1040D4RDB
        bool "Support T1040D4RDB"
@@ -245,6 +281,7 @@ config TARGET_T1040D4RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T1042RDB
        bool "Support T1042RDB"
@@ -252,6 +289,7 @@ config TARGET_T1042RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T1042D4RDB
        bool "Support T1042D4RDB"
@@ -259,6 +297,7 @@ config TARGET_T1042D4RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T1042RDB_PI
        bool "Support T1042RDB_PI"
@@ -266,6 +305,7 @@ config TARGET_T1042RDB_PI
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T2080QDS
        bool "Support T2080QDS"
@@ -273,6 +313,7 @@ config TARGET_T2080QDS
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T2080RDB
        bool "Support T2080RDB"
@@ -280,6 +321,7 @@ config TARGET_T2080RDB
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T2081QDS
        bool "Support T2081QDS"
@@ -293,6 +335,7 @@ config TARGET_T4160QDS
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T4160RDB
        bool "Support T4160RDB"
@@ -306,12 +349,14 @@ config TARGET_T4240QDS
        select BOARD_LATE_INIT if CHAIN_OF_TRUST
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_T4240RDB
        bool "Support T4240RDB"
        select ARCH_T4240
        select SUPPORT_SPL
        select PHYS_64BIT
+       imply CMD_SATA
 
 config TARGET_CONTROLCENTERD
        bool "Support controlcenterd"
@@ -321,6 +366,8 @@ config TARGET_KMP204X
        bool "Support kmp204x"
        select ARCH_P2041
        select PHYS_64BIT
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
 
 config TARGET_XPEDITE520X
        bool "Support xpedite520x"
@@ -339,6 +386,7 @@ config TARGET_XPEDITE550X
 config TARGET_UCP1020
        bool "Support uCP1020"
        select ARCH_P1020
+       imply CMD_SATA
 
 config TARGET_CYRUS_P5020
        bool "Support Varisys Cyrus P5020"
@@ -375,6 +423,7 @@ config ARCH_B4420
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_IFC
+       imply CMD_EEPROM
 
 config ARCH_B4860
        bool
@@ -400,6 +449,7 @@ config ARCH_B4860
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_IFC
+       imply CMD_EEPROM
 
 config ARCH_BSC9131
        bool
@@ -413,6 +463,7 @@ config ARCH_BSC9131
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_4
        select FSL_IFC
+       imply CMD_EEPROM
 
 config ARCH_BSC9132
        bool
@@ -430,6 +481,7 @@ config ARCH_BSC9132
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_IFC
+       imply CMD_EEPROM
 
 config ARCH_C29X
        bool
@@ -456,6 +508,7 @@ config ARCH_MPC8536
        select SYS_FSL_SEC_COMPAT_2
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_MPC8540
        bool
@@ -563,6 +616,8 @@ config ARCH_P1010
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_IFC
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config ARCH_P1011
        bool
@@ -591,6 +646,7 @@ config ARCH_P1020
        select SYS_FSL_SEC_COMPAT_2
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_P1021
        bool
@@ -605,6 +661,7 @@ config ARCH_P1021
        select SYS_FSL_SEC_COMPAT_2
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_P1022
        bool
@@ -647,6 +704,8 @@ config ARCH_P1024
        select SYS_FSL_SEC_COMPAT_2
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_ELBC
+       imply CMD_EEPROM
+       imply CMD_SATA
 
 config ARCH_P1025
        bool
@@ -661,6 +720,7 @@ config ARCH_P1025
        select SYS_FSL_SEC_COMPAT_2
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_P2020
        bool
@@ -676,6 +736,7 @@ config ARCH_P2020
        select SYS_FSL_SEC_COMPAT_2
        select SYS_PPC_E500_USE_DEBUG_TLB
        select FSL_ELBC
+       imply CMD_EEPROM
 
 config ARCH_P2041
        bool
@@ -722,6 +783,7 @@ config ARCH_P3041
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_4
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_P4080
        bool
@@ -757,6 +819,7 @@ config ARCH_P4080
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_4
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_P5020
        bool
@@ -778,6 +841,7 @@ config ARCH_P5020
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_P5040
        bool
@@ -799,6 +863,7 @@ config ARCH_P5040
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_ELBC
+       imply CMD_SATA
 
 config ARCH_QEMU_E500
        bool
@@ -819,6 +884,7 @@ config ARCH_T1023
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_5
        select FSL_IFC
+       imply CMD_EEPROM
 
 config ARCH_T1024
        bool
@@ -836,6 +902,7 @@ config ARCH_T1024
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_5
        select FSL_IFC
+       imply CMD_EEPROM
 
 config ARCH_T1040
        bool
@@ -854,6 +921,7 @@ config ARCH_T1040
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_5
        select FSL_IFC
+       imply CMD_SATA
 
 config ARCH_T1042
        bool
@@ -872,6 +940,7 @@ config ARCH_T1042
        select SYS_FSL_SEC_BE
        select SYS_FSL_SEC_COMPAT_5
        select FSL_IFC
+       imply CMD_SATA
 
 config ARCH_T2080
        bool
@@ -894,6 +963,7 @@ config ARCH_T2080
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_IFC
+       imply CMD_SATA
 
 config ARCH_T2081
        bool
@@ -935,6 +1005,7 @@ config ARCH_T4160
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_IFC
+       imply CMD_SATA
 
 config ARCH_T4240
        bool
@@ -959,6 +1030,7 @@ config ARCH_T4240
        select SYS_FSL_SEC_COMPAT_4
        select SYS_PPC64
        select FSL_IFC
+       imply CMD_SATA
 
 config BOOKE
        bool
@@ -1337,18 +1409,34 @@ config SYS_FSL_IFC_CLK_DIV
                Defines divider of platform clock(clock input to
                IFC controller).
 
+config SYS_FSL_LBC_CLK_DIV
+       int "Divider of platform clock"
+       depends on FSL_ELBC || ARCH_MPC8540 || \
+               ARCH_MPC8548 || ARCH_MPC8541 || \
+               ARCH_MPC8555 || ARCH_MPC8560 || \
+               ARCH_MPC8568
+
+       default 2 if    ARCH_P2041      || \
+                       ARCH_P3041      || \
+                       ARCH_P4080      || \
+                       ARCH_P5020      || \
+                       ARCH_P5040
+       default 1
+
+       help
+               Defines divider of platform clock(clock input to
+               eLBC controller).
+
 source "board/freescale/b4860qds/Kconfig"
 source "board/freescale/bsc9131rdb/Kconfig"
 source "board/freescale/bsc9132qds/Kconfig"
 source "board/freescale/c29xpcie/Kconfig"
 source "board/freescale/corenet_ds/Kconfig"
 source "board/freescale/mpc8536ds/Kconfig"
-source "board/freescale/mpc8540ads/Kconfig"
 source "board/freescale/mpc8541cds/Kconfig"
 source "board/freescale/mpc8544ds/Kconfig"
 source "board/freescale/mpc8548cds/Kconfig"
 source "board/freescale/mpc8555cds/Kconfig"
-source "board/freescale/mpc8560ads/Kconfig"
 source "board/freescale/mpc8568mds/Kconfig"
 source "board/freescale/mpc8569mds/Kconfig"
 source "board/freescale/mpc8572ds/Kconfig"