]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ata: Correct two dependency issues
authorTom Rini <trini@konsulko.com>
Wed, 2 Jul 2025 01:04:29 +0000 (19:04 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 10 Jul 2025 14:41:03 +0000 (08:41 -0600)
First, the SATA_MV driver can only build on kirkwood or mvebu platforms
due to header requirements, so add that as a dependency here. Second,
SYS_SATA_MAX_DEVICE is also used by the API code so allow it to be
configured in that case.

Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/ata/Kconfig

index 29ceab849c02e13f30cce0d67ec6e5fe897c0afb..da9c72a99d03cc1b0c3e41b41e62b3cbfd48792d 100644 (file)
@@ -131,6 +131,7 @@ config FSL_SATA_V2
 
 config SATA_MV
        bool "Enable Marvell SATA controller driver support"
+       depends on ARCH_KIRKWOOD || ARCH_MVEBU
        select AHCI
        select LIBATA
        help
@@ -148,7 +149,7 @@ config SATA_SIL
 
 config SYS_SATA_MAX_DEVICE
        int "Maximum number of SATA devices"
-       depends on !AHCI || FSL_SATA || SATA_MV
+       depends on !AHCI || FSL_SATA || SATA_MV || API
        help
          Sets the maximum number of SATA devices which can be supported
          by U-Boot.