diff options
author | Tom Rini <trini@ti.com> | 2012-11-29 15:48:22 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-22 10:14:40 -0500 |
commit | 05d212c0e101e6654bf8127275bac03fc0a7a382 (patch) | |
tree | 76df3dee8f9265097c5eb41de3f6af91c5fb7e80 | |
parent | c074bfaa7fe78727c5b4723a46d3b7bd67f32b73 (diff) |
am335x_evm: Add support for moving PG2.0 and later EVMs to 800MHz
Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r-- | arch/arm/include/asm/arch-am33xx/clocks_am33xx.h | 3 | ||||
-rw-r--r-- | board/ti/am335x/board.c | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h b/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h index b7b81549be7..eff04cd7e8e 100644 --- a/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h +++ b/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h @@ -21,7 +21,8 @@ #define OSC (V_OSCK/1000000) -/* MAIN PLL Fdll = 550MHz or 720MHz */ +/* MAIN PLL Fdll = 550MHz, 720MHz or 800MHz */ +#define MPUPLL_M_800 800 #define MPUPLL_M_720 720 #define MPUPLL_M_550 550 #define MPUPLL_N (OSC-1) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index d5c2d204244..f5bafbfc091 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -414,9 +414,12 @@ void am33xx_spl_board_init(void) return; if (!voltage_update(MPU, PMIC_OP_REG_SEL_1_2_6) && - !voltage_update(CORE, PMIC_OP_REG_SEL_1_1_3)) - /* Frequency switching for OPP 120 */ - mpu_pll_config(MPUPLL_M_720); + !voltage_update(CORE, PMIC_OP_REG_SEL_1_1_3)) { + if (board_is_evm_15_or_later()) + mpu_pll_config(MPUPLL_M_800); + else + mpu_pll_config(MPUPLL_M_720); + } } } #endif |