Skip to contentSkip to conversation

lpc32xx: remove duplicated DMA_CLK_ENABLE bit definition

PATCH In review Vladimir Zapolskiy 3 participants 3 messages Aug 27, 2015 – Sep 12, 2015

Subsystems (2)
lore
Share & tools
lore

Vladimir Zapolskiy

author maintainer
#0 lore raw

PATCH 1/1 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.

---
The change fixes a missed review comment from https://patchwork.ozlabs.org/patch/505602/

 arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 3 +--
 arch/arm/include/asm/arch-lpc32xx/clk.h  | 3 ---
 2 files changed, 1 insertion(+), 5 deletions(-)
arch/arm/cpu/arm926ejs/lpc32xx/devices.c +1 -2
index d9fa280..b1c3f8f 100644
@@ -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)
arch/arm/include/asm/arch-lpc32xx/clk.h +0 -3
index d21310e..303ff1c 100644
@@ -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)
 
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 lpc32xx: remove duplicated DMA_CLK_ENABLE bit definition

Quoted 29 lines

-----Original Message-----
From: Vladimir Zapolskiy [mailto:vz at mleia.com]
Sent: 26-Aug-15 8:17 PM

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.

---
The change fixes a missed review comment from https://urldefense.proofpoint.com/v2/url?u=https-
3A__patchwork.ozlabs.org_patch_505602_&d=BQIBAg&c=0YGvTs3tT-VMy8_v51yLDw&r=wQJtM_tLxuQC97M- Lmzkek8zkzOmmSH5aGpH9XICxMY&m=_h1D4ysIu0Z-R8-jYuIET- Eo2akhhC_vyMJLHs7y5Gw&s=Xik_VBujVWd4PbkiE5sARa0KwLkSLQs0w6wj1p2e7Cw&e=

 arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 3 +--
 arch/arm/include/asm/arch-lpc32xx/clk.h  | 3 ---
 2 files changed, 1 insertion(+), 5 deletions(-)
arch/arm/cpu/arm926ejs/lpc32xx/devices.c +0 -0
index d9fa280..b1c3f8f 100644
@@ -44,8 +44,7 @@ void lpc32xx_uart_init(unsigned int uart_id)
 void lpc32xx_dma_init(void)
 {

[...]

________________________________

This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.

#2 lore raw
In reply to Vladimir Zapolskiy
Quoted 9 lines · Vladimir Zapolskiy

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150912/dd5ee0b7/attachment.sig>