Convert CONFIG_SCSI_AHCI_PLAT et al to Kconfig
[platform/kernel/u-boot.git] / drivers / ata / Kconfig
index 4e95a68..ce6907e 100644 (file)
@@ -9,6 +9,7 @@ config AHCI
 
 config SATA
        bool "Support SATA controllers"
+       depends on BLK
        select HAVE_BLOCK_DEVICE
        help
          This enables support for SATA (Serial Advanced Technology
@@ -36,19 +37,18 @@ menu "SATA/SCSI device support"
 
 config AHCI_PCI
        bool "Support for PCI-based AHCI controller"
+       depends on PCI
        depends on DM_SCSI
        help
          Enables support for the PCI-based AHCI controller.
 
-config SATA_CEVA
-       bool "Ceva Sata controller"
-       depends on AHCI
-       depends on DM_SCSI
-       help
-         This option enables Ceva Sata controller hard IP available on Xilinx
-         ZynqMP. Support up to 2 external devices. Complient with SATA 3.1 and
-         AHCI 1.3 specifications with hot-plug detect feature.
+if AHCI
 
+config SPL_AHCI_PCI
+       bool "Support for PCI-based AHCI controller for SPL"
+       depends on SPL
+       depends on SPL_PCI
+       depends on SPL_SATA_SUPPORT && DM_SCSI
 
 config DWC_AHCI
        bool "Enable Synopsys DWC AHCI driver support"
@@ -62,6 +62,7 @@ config DWC_AHCI
 config DWC_AHSATA
        bool "Enable DWC AHSATA driver support"
        select LIBATA
+       depends on BLK
        help
          Enable this driver to support the DWC AHSATA SATA controller found
          in i.MX5 and i.MX6 SoCs.
@@ -69,63 +70,81 @@ config DWC_AHSATA
 config DWC_AHSATA_AHCI
        bool "Enable DWC AHSATA AHCI driver support"
        depends on DWC_AHSATA
-       depends on AHCI
        default y
        help
          Enable this option unless you need your private ahci implementation
 
+config MTK_AHCI
+       bool "Enable Mediatek AHCI driver support"
+       help
+         Enable this driver to support Sata devices through
+         Mediatek AHCI controller (e.g. MT7622).
+
+config AHCI_MVEBU
+       bool "Marvell EBU AHCI SATA support"
+       depends on ARCH_MVEBU || ARCH_OCTEON
+       select SCSI_AHCI
+       select DM_SCSI
+       help
+         This option enables support for the Marvell EBU SoC's
+         onboard AHCI SATA.
+
+         If unsure, say N.
+
+config SUNXI_AHCI
+       bool "Enable Allwinner SATA driver support"
+       default y if ARCH_SUNXI
+       help
+         Enable this driver to support the SATA controllers found in the
+         Allwinner A10, A20 and R40 SoCs.
+
+endif # AHCI
+
+if SATA
+
+config SATA_CEVA
+       bool "Ceva Sata controller"
+       depends on AHCI
+       depends on DM_SCSI
+       help
+         This option enables Ceva Sata controller hard IP available on Xilinx
+         ZynqMP. Support up to 2 external devices. Compliant with SATA 3.1 and
+         AHCI 1.3 specifications with hot-plug detect feature.
+
 config FSL_SATA
        bool "Enable Freescale SATA controller driver support"
+       select AHCI
        select LIBATA
        help
          Enable this driver to support the SATA controller found in
          some Freescale PowerPC SoCs.
 
-config MVSATA_IDE
-       bool "Enable Marvell SATA controller driver support via IDE interface"
-       help
-         Enable this driver to support the SATA controller found in
-         some Marvell SoCs, running in IDE compatibility mode using PIO.
-
 config SATA_MV
        bool "Enable Marvell SATA controller driver support"
        select AHCI
        select LIBATA
-       depends on BLK
        help
          Enable this driver to support the SATA controller found in
          some Marvell SoCs.
 
 config SATA_SIL
        bool "Enable Silicon Image SIL3131 / SIL3132 / SIL3124 SATA driver support"
+       select AHCI
        select LIBATA
        help
          Enable this driver to support the SIL3131, SIL3132 and SIL3124
          SATA controllers.
 
-config SATA_SIL3114
-       bool "Enable Silicon Image SIL3114 SATA driver support"
-       select LIBATA
+config SYS_SATA_MAX_DEVICE
+       int "Maximum number of SATA devices"
+       depends on !AHCI || FSL_SATA || SATA_MV
        help
-         Enable this driver to support the SIL3114 SATA controllers.
+         Sets the maximum number of SATA devices which can be supported
+         by U-Boot.
 
-config SUNXI_AHCI
-       bool "Enable Allwinner SATA driver support"
-       depends on AHCI
-       default y if ARCH_SUNXI
-       help
-         Enable this driver to support the SATA controllers found in the
-         Allwinner A10, A20 and R40 SoCs.
+         This is only partially converted to driver model. See sata_bread()
+         for example, which shows where the conversion needs to be completed.
 
-config AHCI_MVEBU
-       bool "Marvell EBU AHCI SATA support"
-       depends on ARCH_MVEBU
-       depends on AHCI
-       select SCSI_AHCI
-       select DM_SCSI
-       help
-         This option enables support for the Marvell EBU SoC's
-         onboard AHCI SATA.
+endif # SATA
 
-         If unsure, say N.
 endmenu