From: Simon Glass Date: Sun, 8 Aug 2021 18:20:21 +0000 (-0600) Subject: Convert CONFIG_DMA_LPC32XX to Kconfig X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a7ebc6925b43c9488c421218cbbcb243e6420720;p=u-boot.git Convert CONFIG_DMA_LPC32XX to Kconfig This converts the following to Kconfig: CONFIG_DMA_LPC32XX Signed-off-by: Simon Glass --- diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig index 2d4d665f29..9c886a13cc 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 e81ae96673..ff5b834a91 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 4ef61e94c6..f32e18b762 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 9f8fd15137..0dbcc165a6 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