omap3: pm: Using separate clk/volt setup_time for RET and OFF states
PATCH v7 3/8 omap3: pm: Using separate clk/volt setup_time for RET and OFF states
This patch has the changes to use separate clk/volt setup_time for RET and OFF state. Because the clocksetup voltsetup time1 used for RET & OFF is different.
Create separate copies of VC parameters for each Si in voltage.c. Since the voltage vales for each state is different in different OMAP Si.
Updates the VC setuptime struct during init based on the OMAP Si. Removes the VC setuptime struct from board files.
Signed-off-by Lesly A M <[email protected]>
Cc Nishanth Menon <[email protected]>
Cc David Derrick <[email protected]>
Cc Samuel Ortiz <[email protected]>
--- arch/arm/mach-omap2/board-3430sdp.c | 19 ------- arch/arm/mach-omap2/pm.h | 18 ------- arch/arm/mach-omap2/voltage.c | 93 +++++++++++++++++++++++++--------- arch/arm/mach-omap2/voltage.h | 25 +++++++++ 4 files changed, 93 insertions(+), 62 deletions(-)
arch/arm/mach-omap2/board-3430sdp.c +0 -19
@@ -47,7 +47,6 @@#include "sdram-qimonda-hyb18m512160af-6.h" #include "hsmmc.h" #include "pm.h" -#include "voltage.h" #include "omap3-opp.h" #include "smartreflex-class3.h"
@@ -77,23 +76,6 @@ static struct cpuidle_params omap3_cpuidle_params_table[] = { {1, 10000, 30000, 300000}, }; -/* FIXME: These are not the optimal setup values to be used on 3430sdp*/ -static struct prm_setup_vc omap3_setuptime_table = { - .clksetup =0xff , - .voltsetup_time1 =0xfff , - .voltsetup_time2 =0xfff , - .voltoffset =0xff , - .voltsetup2 =0xff , - .vdd0_on =0x30 , - .vdd0_onlp =0x20 , - .vdd0_ret =0x1e , - .vdd0_off =0x00 , - .vdd1_on =0x2c , - .vdd1_onlp =0x20 , - .vdd1_ret =0x1e , - .vdd1_off =0x00 , -}; -static int board_keymap[] = {KEY (0 ,0 ,KEY_LEFT ), KEY(0, 1, KEY_RIGHT),
@@ -347,7 +329,6 @@ static void __init omap_3430sdp_init_irq(void) omap_board_config_size =ARRAY_SIZE (sdp3430_config);omap3_pm_init_opp_table ();omap3_pm_init_cpuidle (omap3_cpuidle_params_table); -omap_voltage_init_vc (&omap3_setuptime_table);omap2_init_common_hw (hyb18m512160af6_sdrc_params,NULL );omap_init_irq ();omap_gpio_init ();
arch/arm/mach-omap2/pm.h +0 -18
@@ -40,24 +40,6 @@ inline void omap3_pm_init_cpuidle(struct cpuidle_params *cpuidle_board_params) }#endif -struct prm_setup_vc { -u16 clksetup; -u16 voltsetup_time1; -u16 voltsetup_time2; -u16 voltoffset; -u16 voltsetup2; -/* PRM_VC_CMD_VAL_0 specific bits */ -u16 vdd0_on; -u16 vdd0_onlp; -u16 vdd0_ret; -u16 vdd0_off; -/* PRM_VC_CMD_VAL_1 specific bits */ -u16 vdd1_on; -u16 vdd1_onlp; -u16 vdd1_ret; -u16 vdd1_off; -}; -extern int omap3_pm_get_suspend_state (struct powerdomain *pwrdm);extern int omap3_pm_set_suspend_state (struct powerdomain *pwrdm,int state);
arch/arm/mach-omap2/voltage.c +68 -25
125 lines not on this page · raw message
arch/arm/mach-omap2/voltage.h +25 -0
@@ -14,6 +14,31 @@#define VDD1 0#define VDD2 1 +struct setuptime_vc { +u16 clksetup; +u16 voltsetup1_vdd1; +u16 voltsetup1_vdd2; +u16 voltsetup2; +u16 voltoffset; +}; + +struct prm_setup_vc { +/* CLK & VOLT SETUPTIME for RET */ +struct setuptime_vc ret; +/* CLK & VOLT SETUPTIME for OFF */ +struct setuptime_vc off; +/* PRM_VC_CMD_VAL_0 specific bits */ +u16 vdd0_on; +u16 vdd0_onlp; +u16 vdd0_ret; +u16 vdd0_off; +/* PRM_VC_CMD_VAL_1 specific bits */ +u16 vdd1_on; +u16 vdd1_onlp; +u16 vdd1_ret; +u16 vdd1_off; +}; +#define VOLTSCALE_VPFORCEUPDATE 1#define VOLTSCALE_VCBYPASS 2
Signature · 1 line
1.7.0.4