Skip to contentSkip to conversation

at91: Fix AT91_PMC_MCKR_PLLADIV_ defines

PATCH New Alexander Stein 2 participants 3 messages Jun 14, 2010 – Jun 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 at91: Fix AT91_PMC_MCKR_PLLADIV_ defines

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

---
 arch/arm/include/asm/arch-at91/at91_pmc.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-at91/at91_pmc.h +2 -2
index 5b1a85d..502da2b 100644
@@ -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
Signature · 1 line
1.6.4.4
#1 lore raw

PATCH 1/1 at91: Fix AT91_PMC_MCKR_PLLADIV_ defines

Dear Alexander Stein,

Quoted 2 lines · In message <1276521853-13779-1-git-send-email-alexander.stein@systec-electronic…

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

--^^^^^^^^^^^

Dividing by what?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If a group of N persons implements a COBOL compiler,  there  will  be
N-1 passes. Someone in the group has to be the manager. - T. Cheatham
#2 lore raw

PATCH 1/1 at91: Fix AT91_PMC_MCKR_PLLADIV_ defines

Dear Wolfgang,

Am Montag, 14. Juni 2010 21:01:27 schrieb Wolfgang Denk:

Quoted 1 line

In message <1276521853-13779-1-git-send-email-alexander.stein@systec-

Quoted 6 lines · electronic.com> you wrote:
Quoted 2 lines

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

--^^^^^^^^^^^

Dividing by what?

Oops, that should be 'dividing by 1'.

Best regards
Alexander