[U-Boot] [PATCH] ARM: S3C64XX: fix clock setup

Darius Augulis augulis.darius at gmail.com
Fri Nov 12 19:05:52 CET 2010


Fix pll divider values to standard ones described
in "S3C6410X RISC Microprocessor User's Manual,
Revision 1.20", p. 3-21.

Signed-off-by: Darius Augulis <augulis.darius at gmail.com>
---
 arch/arm/include/asm/arch-s3c64xx/s3c6400.h |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/arch/arm/include/asm/arch-s3c64xx/s3c6400.h b/arch/arm/include/asm/arch-s3c64xx/s3c6400.h
index 10b3324..a197b4e 100644
--- a/arch/arm/include/asm/arch-s3c64xx/s3c6400.h
+++ b/arch/arm/include/asm/arch-s3c64xx/s3c6400.h
@@ -762,24 +762,19 @@
 #define TIMER3_ON		(TCON_3_ONOFF * 1)
 #define TIMER3_OFF		(FClrBit(TCON, TCON_3_ONOFF))
 
-#if defined(CONFIG_CLK_400_100_50)
+#if defined(CONFIG_CLK_400_133_66)
 #define STARTUP_AMDIV		400
 #define STARTUP_MDIV		400
-#define STARTUP_PDIV		6
-#define STARTUP_SDIV		1
-#elif defined(CONFIG_CLK_400_133_66)
-#define STARTUP_AMDIV		400
-#define STARTUP_MDIV		533
-#define STARTUP_PDIV		6
-#define STARTUP_SDIV		1
+#define STARTUP_PDIV		3
+#define STARTUP_SDIV		2
 #elif defined(CONFIG_CLK_533_133_66)
 #define STARTUP_AMDIV		533
-#define STARTUP_MDIV		533
-#define STARTUP_PDIV		6
+#define STARTUP_MDIV		266
+#define STARTUP_PDIV		3
 #define STARTUP_SDIV		1
 #elif defined(CONFIG_CLK_667_133_66)
 #define STARTUP_AMDIV		667
-#define STARTUP_MDIV		533
+#define STARTUP_MDIV		333
 #define STARTUP_PDIV		6
 #define STARTUP_SDIV		1
 #endif



More information about the U-Boot mailing list