blk: Enable CONFIG_BLK for all media
authorSimon Glass <sjg@chromium.org>
Fri, 12 Aug 2022 01:34:41 +0000 (19:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 16 Sep 2022 15:05:00 +0000 (11:05 -0400)
Enable this option on all boards which support block devices. Drop the
related depencies on BLK since these are not needed anymore.

Disable BLOCK_CACHE on M5253DEMO as this causes a build error.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig
configs/M5253DEMO_defconfig
drivers/ata/Kconfig
drivers/block/Kconfig
drivers/nvme/Kconfig
drivers/scsi/Kconfig
drivers/virtio/Kconfig

index 3649222..03169eb 100644 (file)
@@ -1026,7 +1026,6 @@ config ARCH_NPCM
 config ARCH_APPLE
        bool "Apple SoCs"
        select ARM64
-       select BLK
        select CLK
        select CMD_USB
        select DM
index 79382eb..a73aca0 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_MAC_PARTITION=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+# CONFIG_BLOCK_CACHE is not set
 CONFIG_SYS_IDE_MAXBUS=1
 CONFIG_SYS_ATA_STRIDE=4
 CONFIG_SYS_ATA_DATA_OFFSET=0xA0
index 7715c40..7d2315b 100644 (file)
@@ -9,7 +9,6 @@ config AHCI
 
 config SATA
        bool "Support SATA controllers"
-       depends on BLK
        select HAVE_BLOCK_DEVICE
        help
          This enables support for SATA (Serial Advanced Technology
index b5b4820..df242df 100644 (file)
@@ -1,7 +1,8 @@
 config BLK
        bool "Support block devices"
        depends on DM
-       default y if DM_MMC || DM_USB
+       default y if MMC || USB || SCSI || NVME || IDE || AHCI || SATA
+       default y if EFI_MEDIA || VIRTIO_BLK || PVBLOCK
        help
          Enable support for block devices, such as SCSI, MMC and USB
          flash sticks. These provide a block-level interface which permits
index 0cb4651..2a103ab 100644 (file)
@@ -4,7 +4,6 @@
 
 config NVME
        bool "NVM Express device support"
-       depends on BLK
        select HAVE_BLOCK_DEVICE
        help
          This option enables support for NVM Express devices.
index c400e2d..19872fb 100644 (file)
@@ -10,7 +10,6 @@ config SCSI
 
 config DM_SCSI
        bool "Support SCSI controllers with driver model"
-       depends on BLK
        help
          This option enables the SCSI (Small Computer System Interface) uclass
          which supports SCSI and SATA HDDs. For every device configuration
index 586263e..852f673 100644 (file)
@@ -64,7 +64,6 @@ config VIRTIO_NET
 config VIRTIO_BLK
        bool "virtio block driver"
        depends on VIRTIO
-       depends on BLK
        help
          This is the virtual block driver for virtio. It can be used with
          QEMU based targets.