[PATCH 13/23] Convert CONFIG_DMA_LPC32XX to Kconfig

Simon Glass sjg at chromium.org
Sun Aug 8 20:20:21 CEST 2021


This converts the following to Kconfig:
   CONFIG_DMA_LPC32XX

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 configs/devkit3250_defconfig |  1 +
 drivers/dma/Kconfig          | 11 +++++++++++
 include/configs/devkit3250.h |  3 ---
 scripts/config_whitelist.txt |  1 -
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig
index 72f89579b4c..539caaf5c86 100644
--- a/configs/devkit3250_defconfig
+++ b/configs/devkit3250_defconfig
@@ -37,6 +37,7 @@ CONFIG_CMD_JFFS2=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=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 e81ae96673c..ff5b834a91e 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -35,6 +35,16 @@ config BCM6348_IUDMA
 	  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 @@ config APBH_DMA
 	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 33d71a7042b..b6ba7a0e0d9 100644
--- a/include/configs/devkit3250.h
+++ b/include/configs/devkit3250.h
@@ -33,9 +33,6 @@
 /*
  * DMA
  */
-#if !defined(CONFIG_SPL_BUILD)
-#define CONFIG_DMA_LPC32XX
-#endif
 
 /*
  * I2C
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index dc7806012bd..d2f116e3673 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -270,7 +270,6 @@ CONFIG_DM9000_NO_SROM
 CONFIG_DM9000_USE_16BIT
 CONFIG_DMA_COHERENT
 CONFIG_DMA_COHERENT_SIZE
-CONFIG_DMA_LPC32XX
 CONFIG_DMA_NONCOHERENT
 CONFIG_DMA_REQ_BIT
 CONFIG_DNET_AUTONEG_TIMEOUT
-- 
2.32.0.605.g8dce9f2422-goog



More information about the U-Boot mailing list