Convert CONFIG_CADENCE_QSPI to Kconfig
authorTom Rini <trini@konsulko.com>
Tue, 16 Jun 2020 23:06:31 +0000 (19:06 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 27 Jun 2020 12:00:33 +0000 (08:00 -0400)
This converts the following to Kconfig:
   CONFIG_CADENCE_QSPI

Signed-off-by: Tom Rini <trini@konsulko.com>
configs/k2g_evm_defconfig
configs/k2g_hs_evm_defconfig
drivers/spi/Makefile
include/configs/k2g_evm.h

index 766cae3d5b5b0021539dcc6320ffd20a49c01d4d..69cd22c7c8b2c17aa88a87427a71f77572412a4f 100644 (file)
@@ -74,6 +74,7 @@ CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
+CONFIG_CADENCE_QSPI=y
 CONFIG_DAVINCI_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
index f089be4f563a6db0937c23b31321d1acae85dbca..adedfddf4f506f624ed178b9c93780a52c24ebf7 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
+CONFIG_CADENCE_QSPI=y
 CONFIG_DAVINCI_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
index 9559e938d26281ed4de00715f4d37ada13f1f7a5..4e7461771f2b4bc310c56aa847721ae15ff3badf 100644 (file)
@@ -6,6 +6,7 @@
 # There are many options which enable SPI, so make this library available
 ifdef CONFIG_$(SPL_TPL_)DM_SPI
 obj-y += spi-uclass.o
+obj-$(CONFIG_CADENCE_QSPI) += cadence_qspi.o cadence_qspi_apb.o
 obj-$(CONFIG_SANDBOX) += spi-emul-uclass.o
 obj-$(CONFIG_SOFT_SPI) += soft_spi.o
 obj-$(CONFIG_SPI_MEM) += spi-mem.o
@@ -22,7 +23,6 @@ obj-$(CONFIG_ATMEL_SPI) += atmel_spi.o
 obj-$(CONFIG_BCM63XX_HSSPI) += bcm63xx_hsspi.o
 obj-$(CONFIG_BCM63XX_SPI) += bcm63xx_spi.o
 obj-$(CONFIG_BCMSTB_SPI) += bcmstb_spi.o
-obj-$(CONFIG_CADENCE_QSPI) += cadence_qspi.o cadence_qspi_apb.o
 obj-$(CONFIG_CF_SPI) += cf_spi.o
 obj-$(CONFIG_DAVINCI_SPI) += davinci_spi.o
 obj-$(CONFIG_DESIGNWARE_SPI) += designware_spi.o
index 25f3959533c6abb3a17670ae9c4adca6b5fe30b5..83466b9e0cfa9e6d375b7763c67a14cbcddf382b 100644 (file)
@@ -82,7 +82,6 @@
 #define PHY_ANEG_TIMEOUT       10000 /* PHY needs longer aneg time */
 
 #ifndef CONFIG_SPL_BUILD
-#define CONFIG_CADENCE_QSPI
 #define CONFIG_CQSPI_REF_CLK 384000000
 #endif