summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs
diff options
context:
space:
mode:
authorSylvain Lemieux <slemieux@tycoint.com>2015-08-10 08:16:31 -0400
committerTom Rini <trini@konsulko.com>2015-08-18 13:45:55 -0400
commit980db8ca43066dc094517df01fe560ccac87ecfb (patch)
treea213600492c3a924871932e97c945e1bc0f60c04 /arch/arm/cpu/arm926ejs
parent952bd79b53f002740634977edfc0c4d744908032 (diff)
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 <slemieux@tycoint.com> Acked-by: Marek Vasut <marex@denx.de> Tested-by: Vladimir Zapolskiy <vz@mleia.com>
Diffstat (limited to 'arch/arm/cpu/arm926ejs')
-rw-r--r--arch/arm/cpu/arm926ejs/lpc32xx/devices.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
index c0c9c6c312..f0af851b5e 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 */