spi: Migrate CONFIG_LPC32XX_SSP to Kconfig
Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig
index 0b9223f..fcc80b2 100644
--- a/configs/devkit3250_defconfig
+++ b/configs/devkit3250_defconfig
@@ -38,6 +38,7 @@
CONFIG_PHYLIB=y
CONFIG_DM_SERIAL=y
CONFIG_SYS_NS16550=y
+CONFIG_LPC32XX_SSP=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
diff --git a/configs/work_92105_defconfig b/configs/work_92105_defconfig
index fb287bd..2451b56 100644
--- a/configs/work_92105_defconfig
+++ b/configs/work_92105_defconfig
@@ -37,3 +37,4 @@
CONFIG_PHYLIB=y
CONFIG_DM_SERIAL=y
CONFIG_SYS_NS16550=y
+CONFIG_LPC32XX_SSP=y
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index a16faa6..79cd54e 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -257,6 +257,11 @@
Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
This driver support spi flash single, quad and memory reads.
+config LPC32XX_SSP
+ bool "LPC32XX SPI Driver"
+ help
+ Enable support for SPI on LPC32xx
+
config MPC8XX_SPI
bool "MPC8XX SPI Driver"
depends on 8xx
diff --git a/include/configs/devkit3250.h b/include/configs/devkit3250.h
index 71ca127..31fad7d 100644
--- a/include/configs/devkit3250.h
+++ b/include/configs/devkit3250.h
@@ -63,7 +63,6 @@
/*
* SSP/SPI
*/
-#define CONFIG_LPC32XX_SSP
#define CONFIG_LPC32XX_SSP_TIMEOUT 100000
/*
diff --git a/include/configs/work_92105.h b/include/configs/work_92105.h
index efb8901..cb77d18 100644
--- a/include/configs/work_92105.h
+++ b/include/configs/work_92105.h
@@ -124,7 +124,6 @@
* SSP/SPI/DISPLAY
*/
-#define CONFIG_LPC32XX_SSP
#define CONFIG_LPC32XX_SSP_TIMEOUT 100000
/*
* Environment
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index b340fc1..5358396 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -1249,7 +1249,6 @@
CONFIG_LPC32XX_NAND_SLC_WWIDTH
CONFIG_LPC32XX_SDRAM_
CONFIG_LPC32XX_SPL
-CONFIG_LPC32XX_SSP
CONFIG_LPC32XX_SSP_TIMEOUT
CONFIG_LPC_BASE
CONFIG_LPC_IO_BASE