From 980db8ca43066dc094517df01fe560ccac87ecfb Mon Sep 17 00:00:00 2001 From: Sylvain Lemieux Date: Mon, 10 Aug 2015 08:16:31 -0400 Subject: dma: lpc32xx: add DMA driver Incorporate DMA driver from legacy LPCLinux NXP BSP. The files taken from the legacy patch are: - lpc32xx DMA driver - lpc3250 header file DMA registers definition. The legacy driver was updated and clean-up as part of the integration with the latest u-boot. Signed-off-by: Sylvain Lemieux Acked-by: Marek Vasut Tested-by: Vladimir Zapolskiy --- arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/arm/cpu/arm926ejs/lpc32xx') diff --git a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c index c0c9c6c..f0af851 100644 --- a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c +++ b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c @@ -41,6 +41,13 @@ void lpc32xx_uart_init(unsigned int uart_id) &clk->u3clk + (uart_id - 3)); } +void lpc32xx_dma_init(void) +{ + /* Enable DMA interface */ + writel(DMA_CLK_ENABLE, &clk->dmaclk_ctrl); + +} + void lpc32xx_mac_init(void) { /* Enable MAC interface */ -- cgit v1.1