Skip to contentSkip to conversation

at91: sama5: fix incorrect PMC pcr div definition

PATCH New Josh Wu 4 participants 4 messages May 23, 2013 – May 24, 2013

Subsystems (3)
lore
Share & tools
lore

Josh Wu

author
#0 lore raw

PATCH 1/1 at91: sama5: fix incorrect PMC pcr div definition

---
 arch/arm/mach-at91/include/mach/at91_pmc.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-at91/include/mach/at91_pmc.h +3 -3
index 31df120..2bd7f51 100644
@@ -179,9 +179,9 @@ extern void __iomem *at91_pmc_base;
 #define		AT91_PMC_PCR_CMD	(0x1  <<  12)		/* Command (read=0, write=1) */
 #define		AT91_PMC_PCR_DIV(n)	((n)  <<  16)		/* Divisor Value */
 #define			AT91_PMC_PCR_DIV0	0x0			/* Peripheral clock is MCK */
-#define			AT91_PMC_PCR_DIV2	0x2			/* Peripheral clock is MCK/2 */
-#define			AT91_PMC_PCR_DIV4	0x4			/* Peripheral clock is MCK/4 */
-#define			AT91_PMC_PCR_DIV8	0x8			/* Peripheral clock is MCK/8 */
+#define			AT91_PMC_PCR_DIV2	0x1			/* Peripheral clock is MCK/2 */
+#define			AT91_PMC_PCR_DIV4	0x2			/* Peripheral clock is MCK/4 */
+#define			AT91_PMC_PCR_DIV8	0x3			/* Peripheral clock is MCK/8 */
 #define		AT91_PMC_PCR_EN		(0x1  <<  28)		/* Enable */
 
 #endif
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/1 at91: sama5: fix incorrect PMC pcr div definition

Quoted 2 lines · Josh Wu

Best Regards,
J.

Quoted 24 lines
---
 arch/arm/mach-at91/include/mach/at91_pmc.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-at91/include/mach/at91_pmc.h +3 -3
index 31df120..2bd7f51 100644
@@ -179,9 +179,9 @@ extern void __iomem *at91_pmc_base;
 #define		AT91_PMC_PCR_CMD	(0x1  <<  12)		/* Command (read=0, write=1) */
 #define		AT91_PMC_PCR_DIV(n)	((n)  <<  16)		/* Divisor Value */
 #define			AT91_PMC_PCR_DIV0	0x0			/* Peripheral clock is MCK */
-#define			AT91_PMC_PCR_DIV2	0x2			/* Peripheral clock is MCK/2 */
-#define			AT91_PMC_PCR_DIV4	0x4			/* Peripheral clock is MCK/4 */
-#define			AT91_PMC_PCR_DIV8	0x8			/* Peripheral clock is MCK/8 */
+#define			AT91_PMC_PCR_DIV2	0x1			/* Peripheral clock is MCK/2 */
+#define			AT91_PMC_PCR_DIV4	0x2			/* Peripheral clock is MCK/4 */
+#define			AT91_PMC_PCR_DIV8	0x3			/* Peripheral clock is MCK/8 */
 #define		AT91_PMC_PCR_EN		(0x1  <<  28)		/* Enable */
 
 #endif
Signature · 1 line
1.7.10
#2 lore raw

PATCH 1/1 at91: sama5: fix incorrect PMC pcr div definition

In reply to Josh Wu
Quoted 2 lines · Josh Wu

Nice catch, thanks Josh.

Ludovic

Quoted 24 lines
---
 arch/arm/mach-at91/include/mach/at91_pmc.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-at91/include/mach/at91_pmc.h +3 -3
index 31df120..2bd7f51 100644
@@ -179,9 +179,9 @@ extern void __iomem *at91_pmc_base;
 #define		AT91_PMC_PCR_CMD	(0x1  <<  12)		/* Command (read=0, write=1) */
 #define		AT91_PMC_PCR_DIV(n)	((n)  <<  16)		/* Divisor Value */
 #define			AT91_PMC_PCR_DIV0	0x0			/* Peripheral clock is MCK */
-#define			AT91_PMC_PCR_DIV2	0x2			/* Peripheral clock is MCK/2 */
-#define			AT91_PMC_PCR_DIV4	0x4			/* Peripheral clock is MCK/4 */
-#define			AT91_PMC_PCR_DIV8	0x8			/* Peripheral clock is MCK/8 */
+#define			AT91_PMC_PCR_DIV2	0x1			/* Peripheral clock is MCK/2 */
+#define			AT91_PMC_PCR_DIV4	0x2			/* Peripheral clock is MCK/4 */
+#define			AT91_PMC_PCR_DIV8	0x3			/* Peripheral clock is MCK/8 */
 #define		AT91_PMC_PCR_EN		(0x1  <<  28)		/* Enable */
 
 #endif
Signature · 1 line
1.7.10
#3 lore raw

PATCH 1/1 at91: sama5: fix incorrect PMC pcr div definition

In reply to Josh Wu

On 23/05/2013 12:18, Josh Wu :

Quoted 2 lines

And stacked on top of at91-3.10-fixes.

Thanks for catching this! Bye.

Quoted 22 lines
---
  arch/arm/mach-at91/include/mach/at91_pmc.h |    6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-at91/include/mach/at91_pmc.h +3 -3
index 31df120..2bd7f51 100644
@@ -179,9 +179,9 @@ extern void __iomem *at91_pmc_base;
  #define		AT91_PMC_PCR_CMD	(0x1  <<  12)		/* Command (read=0, write=1) */
  #define		AT91_PMC_PCR_DIV(n)	((n)  <<  16)		/* Divisor Value */
  #define			AT91_PMC_PCR_DIV0	0x0			/* Peripheral clock is MCK */
-#define			AT91_PMC_PCR_DIV2	0x2			/* Peripheral clock is MCK/2 */
-#define			AT91_PMC_PCR_DIV4	0x4			/* Peripheral clock is MCK/4 */
-#define			AT91_PMC_PCR_DIV8	0x8			/* Peripheral clock is MCK/8 */
+#define			AT91_PMC_PCR_DIV2	0x1			/* Peripheral clock is MCK/2 */
+#define			AT91_PMC_PCR_DIV4	0x2			/* Peripheral clock is MCK/4 */
+#define			AT91_PMC_PCR_DIV8	0x3			/* Peripheral clock is MCK/8 */
  #define		AT91_PMC_PCR_EN		(0x1  <<  28)		/* Enable */
 
  #endif
Signature · 1 line
Nicolas Ferre