summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2012-03-02 18:33:05 +0800
committerLily Zhang <r58066@freescale.com>2012-03-02 19:09:27 +0800
commit2706397c1c0da569ee74dbb3d16189ef7702e471 (patch)
treebe4a8e660466818e60d1a15924f6048fce0417ae /board
parent6d9c499ea010283d67727fc5bb84d1e59798e9cc (diff)
downloadu-boot-imx-2706397c1c0da569ee74dbb3d16189ef7702e471.zip
u-boot-imx-2706397c1c0da569ee74dbb3d16189ef7702e471.tar.gz
u-boot-imx-2706397c1c0da569ee74dbb3d16189ef7702e471.tar.bz2
ENGR00175981-1 mx53 smd: add CPU 1.2GHz configuration
CONFIG_CPU_1_2G is used to enable 1.2GHz@1.3V. To enable 1.2GHz by default, enable CONFIG_CPU_1_2G into config file. For example, uncomment CONFIG_CPU_1_2G in mx53_smd.h or mx53_smd_android.h. Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx53_smd/mx53_smd.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/board/freescale/mx53_smd/mx53_smd.c b/board/freescale/mx53_smd/mx53_smd.c
index e493ea5..240b596 100644
--- a/board/freescale/mx53_smd/mx53_smd.c
+++ b/board/freescale/mx53_smd/mx53_smd.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
+ * Copyright (C) 2010-2012 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -827,8 +827,14 @@ void setup_pmic_voltages(void)
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
da9053_i2c_startup_reset();
+
+#ifdef CONFIG_CPU_1_2G
+ /* Increase VDDGP as 1.3V for 1.2GHz */
+ value = 0x60;
+#else
/* increase VDDGP as 1.25V for 1GHZ */
value = 0x5e;
+#endif
do {
if (0 != i2c_write_da9053(0x48, 0x2e, 1, &value, 1)) {
printf("da9052_i2c_is_connected - i2c write failed.....\n");
@@ -1425,9 +1431,14 @@ int board_late_init(void)
i2c_bus_recovery();
/* Increase VDDGP voltage */
setup_pmic_voltages();
+#ifdef CONFIG_CPU_1_2G
+ /* Switch to 1.2GHz */
+ clk_config(CONFIG_REF_CLK_FREQ, 1200, CPU_CLK);
+#else
/* Switch to 1GHZ */
clk_config(CONFIG_REF_CLK_FREQ, 1000, CPU_CLK);
#endif
+#endif
return 0;
}