]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
make MPU and DDR clocks configurable
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 3 Aug 2012 12:42:52 +0000 (14:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 3 Aug 2012 12:42:52 +0000 (14:42 +0200)
arch/arm/include/asm/arch-am33xx/clocks_am33xx.h

index a60bacc7054e040a3c6b9f8744f6548a0c675833..1c28fce729beac740f7ee170e375e92b7fe8244b 100644 (file)
 
 #define OSC    24
 
-/* MAIN PLL Fdll = 700 MHZ, */
-#define MPUPLL_M       700
+/* MAIN PLL */
+#ifndef CONFIG_SYS_MPU_CLK
+/* default to 500 MHz */
+#define MPUPLL_M       500
+#else
+#define MPUPLL_M       CONFIG_SYS_MPU_CLK
+#endif
 #define MPUPLL_N       23
 #define MPUPLL_M2      1
 
 
 /* DDR Freq is 266 MHZ for now */
 /* Set Fdll = 400 MHZ , Fdll = M * 2 * CLKINP/ N + 1; clkout = Fdll /(2 * M2) */
+#ifndef CONFIG_SYS_DDR_CLK
 #define DDRPLL_M       266
+#else
+#define DDRPLL_M       CONFIG_SYS_DDR_CLK
+#endif
 #define DDRPLL_N       23
 #define DDRPLL_M2      1
 
-#define DISPPLL_M      400
+#define DISPPLL_M      200
 #define DISPPLL_N      23
 #define DISPPLL_M2     1