ahci: qoriq: Add platform dependencies
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 8 Mar 2023 12:49:34 +0000 (13:49 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 23 Mar 2023 01:29:26 +0000 (10:29 +0900)
The Freescale QorIQ AHCI SATA controller is only present on Freescale
Layerscape SoCs.  Add platform dependencies to the AHCI_QORIQ config
symbol, to avoid asking the user about it when configuring a kernel
without Layerscape support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/Kconfig

index b56fba76b43f48f7ccd29f094149282ce4fb612a..42b51c9812a0ebab52d2dfd4cb94e563c8312f17 100644 (file)
@@ -276,6 +276,7 @@ config AHCI_XGENE
 config AHCI_QORIQ
        tristate "Freescale QorIQ AHCI SATA support"
        depends on OF
+       depends on SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST
        select SATA_HOST
        help
          This option enables support for the Freescale QorIQ AHCI SoC's