]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lpc32xx: remove duplicated DMA_CLK_ENABLE bit definition
authorVladimir Zapolskiy <vz@mleia.com>
Thu, 27 Aug 2015 00:16:48 +0000 (03:16 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 11 Sep 2015 18:05:35 +0000 (14:05 -0400)
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: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Sylvain Lemieux <slemieux@tycoint.com>
arch/arm/cpu/arm926ejs/lpc32xx/devices.c
arch/arm/include/asm/arch-lpc32xx/clk.h

index d9fa2807d7a74c4bed436ec86dbf5610fba8163f..b1c3f8f4ad8d722234d87cad5bee61d591ce4074 100644 (file)
@@ -44,8 +44,7 @@ void lpc32xx_uart_init(unsigned int uart_id)
 void lpc32xx_dma_init(void)
 {
        /* Enable DMA interface */
-       writel(DMA_CLK_ENABLE, &clk->dmaclk_ctrl);
-
+       writel(CLK_DMA_ENABLE, &clk->dmaclk_ctrl);
 }
 
 void lpc32xx_mac_init(void)
index d21310e1945261234bf867a37bf2448110d878da..303ff1cdb73f05a19fd40595c8ecb1fd27e3e444 100644 (file)
@@ -158,9 +158,6 @@ struct clk_pm_regs {
 #define CLK_NAND_SLC_SELECT            (1 << 2)
 #define CLK_NAND_MLC_INT               (1 << 5)
 
-/* DMA Clock Control Register bits */
-#define DMA_CLK_ENABLE                 (1 << 0)
-
 /* SSP Clock Control Register bits */
 #define CLK_SSP0_ENABLE_CLOCK          (1 << 0)