[U-Boot] [PATCH 10/10] ata: Migrate CONFIG_MVSATA_IDE to Kconfig
Tuomas Tynkkynen
tuomas.tynkkynen at iki.fi
Fri Dec 8 13:36:21 UTC 2017
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen at iki.fi>
---
arch/arm/mach-kirkwood/include/mach/config.h | 1 -
configs/d2net_v2_defconfig | 1 +
configs/dns325_defconfig | 1 +
configs/dreamplug_defconfig | 1 +
configs/ds109_defconfig | 1 +
configs/edminiv2_defconfig | 1 +
configs/goflexhome_defconfig | 1 +
configs/guruplug_defconfig | 1 +
configs/ib62x0_defconfig | 1 +
configs/inetspace_v2_defconfig | 1 +
configs/lschlv2_defconfig | 1 +
configs/lsxhl_defconfig | 1 +
configs/nas220_defconfig | 1 +
configs/net2big_v2_defconfig | 1 +
configs/netspace_lite_v2_defconfig | 1 +
configs/netspace_max_v2_defconfig | 1 +
configs/netspace_mini_v2_defconfig | 1 +
configs/netspace_v2_defconfig | 1 +
configs/nsa310s_defconfig | 1 +
configs/openrd_base_defconfig | 1 +
configs/openrd_client_defconfig | 1 +
configs/openrd_ultimate_defconfig | 1 +
configs/sheevaplug_defconfig | 1 +
drivers/ata/Kconfig | 6 ++++++
include/configs/edminiv2.h | 1 -
scripts/config_whitelist.txt | 1 -
26 files changed, 28 insertions(+), 3 deletions(-)
diff --git arch/arm/mach-kirkwood/include/mach/config.h arch/arm/mach-kirkwood/include/mach/config.h
index ba6007186e..efa4e7b6e2 100644
--- arch/arm/mach-kirkwood/include/mach/config.h
+++ arch/arm/mach-kirkwood/include/mach/config.h
@@ -97,7 +97,6 @@
*/
#ifdef CONFIG_IDE
#define __io
-#define CONFIG_MVSATA_IDE
#define CONFIG_IDE_PREINIT
#define CONFIG_MVSATA_IDE_USE_PORT1
/* Needs byte-swapping for ATA data register */
diff --git configs/d2net_v2_defconfig configs/d2net_v2_defconfig
index 496c5c02d4..61fd892005 100644
--- configs/d2net_v2_defconfig
+++ configs/d2net_v2_defconfig
@@ -26,6 +26,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/dns325_defconfig configs/dns325_defconfig
index 62ad86ced4..f5556e30aa 100644
--- configs/dns325_defconfig
+++ configs/dns325_defconfig
@@ -23,6 +23,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:896k(u-boot),128k(u-boot-env),5m(ke
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git configs/dreamplug_defconfig configs/dreamplug_defconfig
index 1130faa392..9d24f9c16b 100644
--- configs/dreamplug_defconfig
+++ configs/dreamplug_defconfig
@@ -19,6 +19,7 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_FAT=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/ds109_defconfig configs/ds109_defconfig
index 987a924b7e..6d513cf584 100644
--- configs/ds109_defconfig
+++ configs/ds109_defconfig
@@ -14,6 +14,7 @@ CONFIG_CMD_DATE=y
CONFIG_CMD_FAT=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_BAR=y
diff --git configs/edminiv2_defconfig configs/edminiv2_defconfig
index 14540ca371..4eafb6d5fa 100644
--- configs/edminiv2_defconfig
+++ configs/edminiv2_defconfig
@@ -21,6 +21,7 @@ CONFIG_CMD_USB=y
CONFIG_CMD_EXT2=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_MTD_NOR_FLASH=y
CONFIG_SYS_NS16550=y
diff --git configs/goflexhome_defconfig configs/goflexhome_defconfig
index 80652fec79..bdfd62a576 100644
--- configs/goflexhome_defconfig
+++ configs/goflexhome_defconfig
@@ -24,6 +24,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)"
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git configs/guruplug_defconfig configs/guruplug_defconfig
index d219fee508..66a668a7bb 100644
--- configs/guruplug_defconfig
+++ configs/guruplug_defconfig
@@ -24,6 +24,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:896K(uboot),128K(uboot_env),- at 1M(ro
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git configs/ib62x0_defconfig configs/ib62x0_defconfig
index fd7c148860..f6bfa06dcb 100644
--- configs/ib62x0_defconfig
+++ configs/ib62x0_defconfig
@@ -22,6 +22,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000 at 0x0(uboot),0x20000 at 0xe0000(
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git configs/inetspace_v2_defconfig configs/inetspace_v2_defconfig
index bac0d95b76..d222c335fe 100644
--- configs/inetspace_v2_defconfig
+++ configs/inetspace_v2_defconfig
@@ -26,6 +26,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/lschlv2_defconfig configs/lschlv2_defconfig
index 4df0a21298..077df1a5bf 100644
--- configs/lschlv2_defconfig
+++ configs/lschlv2_defconfig
@@ -28,6 +28,7 @@ CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_STMICRO=y
diff --git configs/lsxhl_defconfig configs/lsxhl_defconfig
index d6ba4be286..3627eb998b 100644
--- configs/lsxhl_defconfig
+++ configs/lsxhl_defconfig
@@ -20,6 +20,7 @@ CONFIG_CMD_USB=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_STMICRO=y
diff --git configs/nas220_defconfig configs/nas220_defconfig
index 09bb8f1e93..8a71ed894e 100644
--- configs/nas220_defconfig
+++ configs/nas220_defconfig
@@ -24,6 +24,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git configs/net2big_v2_defconfig configs/net2big_v2_defconfig
index 3e3150042d..76b1f90354 100644
--- configs/net2big_v2_defconfig
+++ configs/net2big_v2_defconfig
@@ -26,6 +26,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/netspace_lite_v2_defconfig configs/netspace_lite_v2_defconfig
index edd279ad6f..67cb4dd2e9 100644
--- configs/netspace_lite_v2_defconfig
+++ configs/netspace_lite_v2_defconfig
@@ -26,6 +26,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/netspace_max_v2_defconfig configs/netspace_max_v2_defconfig
index 2454c4f380..dc72128275 100644
--- configs/netspace_max_v2_defconfig
+++ configs/netspace_max_v2_defconfig
@@ -26,6 +26,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/netspace_mini_v2_defconfig configs/netspace_mini_v2_defconfig
index 6f67c5db63..f2dec062e7 100644
--- configs/netspace_mini_v2_defconfig
+++ configs/netspace_mini_v2_defconfig
@@ -24,6 +24,7 @@ CONFIG_CMD_FAT=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/netspace_v2_defconfig configs/netspace_v2_defconfig
index cdcc09641e..c898150d9e 100644
--- configs/netspace_v2_defconfig
+++ configs/netspace_v2_defconfig
@@ -26,6 +26,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
diff --git configs/nsa310s_defconfig configs/nsa310s_defconfig
index 425b53a0ad..5e111cb339 100644
--- configs/nsa310s_defconfig
+++ configs/nsa310s_defconfig
@@ -21,6 +21,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000 at 0x0(uboot),0x20000 at 0xe0000(
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git configs/openrd_base_defconfig configs/openrd_base_defconfig
index 9bc628f168..1a829b763f 100644
--- configs/openrd_base_defconfig
+++ configs/openrd_base_defconfig
@@ -24,6 +24,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=nand_mtd:0x100000 at 0x000000(uboot),0x400000 at 0x1
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
diff --git configs/openrd_client_defconfig configs/openrd_client_defconfig
index c74f0cf56f..7a95b5b54f 100644
--- configs/openrd_client_defconfig
+++ configs/openrd_client_defconfig
@@ -24,6 +24,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=nand_mtd:0x100000 at 0x000000(uboot),0x400000 at 0x1
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
diff --git configs/openrd_ultimate_defconfig configs/openrd_ultimate_defconfig
index 6792af84ef..757be16f53 100644
--- configs/openrd_ultimate_defconfig
+++ configs/openrd_ultimate_defconfig
@@ -24,6 +24,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=nand_mtd:0x100000 at 0x000000(uboot),0x400000 at 0x1
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
diff --git configs/sheevaplug_defconfig configs/sheevaplug_defconfig
index 6145077ebf..21704ec1ff 100644
--- configs/sheevaplug_defconfig
+++ configs/sheevaplug_defconfig
@@ -25,6 +25,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:512K(uboot),512K(env),4M(kernel),-(
CONFIG_CMD_UBI=y
CONFIG_ISO_PARTITION=y
CONFIG_ENV_IS_IN_NAND=y
+CONFIG_MVSATA_IDE=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
diff --git drivers/ata/Kconfig drivers/ata/Kconfig
index 43e6626969..990de72309 100644
--- drivers/ata/Kconfig
+++ drivers/ata/Kconfig
@@ -72,6 +72,12 @@ config FSL_SATA
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 LIBATA
diff --git include/configs/edminiv2.h include/configs/edminiv2.h
index 17d23839b8..2b7a5d7c5c 100644
--- include/configs/edminiv2.h
+++ include/configs/edminiv2.h
@@ -140,7 +140,6 @@
#define __io
#define CONFIG_IDE_PREINIT
/* ED Mini V has an IDE-compatible SATA connector for port 1 */
-#define CONFIG_MVSATA_IDE
#define CONFIG_MVSATA_IDE_USE_PORT1
/* Needs byte-swapping for ATA data register */
#define CONFIG_IDE_SWAP_IO
diff --git scripts/config_whitelist.txt scripts/config_whitelist.txt
index b65eb0936c..a533af5e61 100644
--- scripts/config_whitelist.txt
+++ scripts/config_whitelist.txt
@@ -1457,7 +1457,6 @@ CONFIG_MVGBE
CONFIG_MVGBE_PORTS
CONFIG_MVMFP_V2
CONFIG_MVS
-CONFIG_MVSATA_IDE
CONFIG_MVSATA_IDE_USE_PORT0
CONFIG_MVSATA_IDE_USE_PORT1
CONFIG_MV_ETH_RXQ
--
2.15.0
More information about the U-Boot
mailing list