From a7ebc6925b43c9488c421218cbbcb243e6420720 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 8 Aug 2021 12:20:21 -0600 Subject: [PATCH] Convert CONFIG_DMA_LPC32XX to Kconfig This converts the following to Kconfig: CONFIG_DMA_LPC32XX Signed-off-by: Simon Glass --- 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 2d4d665..9c886a1 100644 --- a/configs/devkit3250_defconfig +++ b/configs/devkit3250_defconfig @@ -42,6 +42,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y 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 @@ 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 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_NO_SROM 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 -- 2.7.4