Convert CONFIG_DMA_LPC32XX to Kconfig
This converts the following to Kconfig:
CONFIG_DMA_LPC32XX
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig
index 2d4d665..9c886a1 100644
--- a/configs/devkit3250_defconfig
+++ b/configs/devkit3250_defconfig
@@ -42,6 +42,7 @@
CONFIG_VERSION_VARIABLE=y
CONFIG_SYS_I2C_LEGACY=y
CONFIG_SPL_SYS_I2C_LEGACY=y
+CONFIG_DMA_LPC32XX=y
CONFIG_SYS_I2C_LPC32XX=y
# CONFIG_MMC is not set
CONFIG_MTD=y
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index e81ae96..ff5b834 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -35,6 +35,16 @@
This driver support data transfer from devices to
memory and from memory to devices.
+config DMA_LPC32XX
+ bool "LPC32XX DMA driver"
+ select DMA_LEGACY
+ help
+ Enable some legacy DMA code for lpc32xx. It provides some direct
+ functions likes lpc32xx_dma_wait_status() which can be called from
+ other code.
+
+ This should be converted to use driver model and UCLASS_DMA.
+
config TI_EDMA3
bool "TI EDMA3 driver"
select DMA_LEGACY
@@ -49,6 +59,7 @@
help
Enable APBH DMA driver.
+
if APBH_DMA
config APBH_DMA_BURST
bool "Enable DMA BURST"
diff --git a/include/configs/devkit3250.h b/include/configs/devkit3250.h
index 4ef61e9..f32e18b 100644
--- a/include/configs/devkit3250.h
+++ b/include/configs/devkit3250.h
@@ -26,9 +26,6 @@
/*
* DMA
*/
-#if !defined(CONFIG_SPL_BUILD)
-#define CONFIG_DMA_LPC32XX
-#endif
/*
* GPIO
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 9f8fd15..0dbcc16 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -223,7 +223,6 @@
CONFIG_DM9000_USE_16BIT
CONFIG_DMA_COHERENT
CONFIG_DMA_COHERENT_SIZE
-CONFIG_DMA_LPC32XX
CONFIG_DMA_NONCOHERENT
CONFIG_DNET_AUTONEG_TIMEOUT
CONFIG_DP_DDR_CTRL