[U-Boot] [PATCH] at91: Fix AT91_PMC_MCKR_PLLADIV_ defines

Alexander Stein alexander.stein at systec-electronic.com
Mon Jun 14 15:24:13 CEST 2010


Only Bit 12 is used for Processor Clock Division. Writing a 0 means
dividing by and writing a 1 means dividing by 2. See AT91SAM9G20
Preliminary p. 307f

This was transfered wrongly in 5d8e359c38d3ab80015e47d0cab792efe75cacf9

Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
 arch/arm/include/asm/arch-at91/at91_pmc.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h
index 5b1a85d..502da2b 100644
--- a/arch/arm/include/asm/arch-at91/at91_pmc.h
+++ b/arch/arm/include/asm/arch-at91/at91_pmc.h
@@ -94,8 +94,8 @@ typedef struct at91_pmc {
 #define AT91_PMC_MCKR_MDIV_4		0x00000200
 #define AT91_PMC_MCKR_MDIV_MASK		0x00000300
 
-#define AT91_PMC_MCKR_PLLADIV_1		0x00001000
-#define AT91_PMC_MCKR_PLLADIV_2		0x00002000
+#define AT91_PMC_MCKR_PLLADIV_1		0x00000000
+#define AT91_PMC_MCKR_PLLADIV_2		0x00001000
 
 #define AT91_PMC_IXR_MOSCS		0x00000001
 #define AT91_PMC_IXR_LOCKA		0x00000002
-- 
1.6.4.4



More information about the U-Boot mailing list