Skip to content
Snippets Groups Projects
Commit bab8d1e2 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Tom Rini
Browse files

lpc32xx: remove duplicated DMA_CLK_ENABLE bit definition


Because there is an originally defined CLK_DMA_ENABLE macro in clk.h,
no reason to add another DMA_CLK_ENABLE macro with the same value.

Remove DMA_CLK_ENABLE, since it does not follow naming convention from
the code, this implies renaming of DMA_CLK_ENABLE to CLK_DMA_ENABLE in
lpc32xx/devices.c file.

Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Tested-by: default avatarSylvain Lemieux <slemieux@tycoint.com>
parent c12e0d93
No related branches found
No related tags found
No related merge requests found
...@@ -44,8 +44,7 @@ void lpc32xx_uart_init(unsigned int uart_id) ...@@ -44,8 +44,7 @@ void lpc32xx_uart_init(unsigned int uart_id)
void lpc32xx_dma_init(void) void lpc32xx_dma_init(void)
{ {
/* Enable DMA interface */ /* Enable DMA interface */
writel(DMA_CLK_ENABLE, &clk->dmaclk_ctrl); writel(CLK_DMA_ENABLE, &clk->dmaclk_ctrl);
} }
void lpc32xx_mac_init(void) void lpc32xx_mac_init(void)
......
...@@ -158,9 +158,6 @@ struct clk_pm_regs { ...@@ -158,9 +158,6 @@ struct clk_pm_regs {
#define CLK_NAND_SLC_SELECT (1 << 2) #define CLK_NAND_SLC_SELECT (1 << 2)
#define CLK_NAND_MLC_INT (1 << 5) #define CLK_NAND_MLC_INT (1 << 5)
/* DMA Clock Control Register bits */
#define DMA_CLK_ENABLE (1 << 0)
/* SSP Clock Control Register bits */ /* SSP Clock Control Register bits */
#define CLK_SSP0_ENABLE_CLOCK (1 << 0) #define CLK_SSP0_ENABLE_CLOCK (1 << 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment