aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r--arch/arm/mach-omap1/board-h2.c3
-rw-r--r--arch/arm/mach-omap1/board-osk.c3
-rw-r--r--arch/arm/mach-omap1/pm.c6
3 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c
index fd90cafc2e36..65d2acb31498 100644
--- a/arch/arm/mach-omap1/board-h2.c
+++ b/arch/arm/mach-omap1/board-h2.c
@@ -318,6 +318,9 @@ static void __init h2_init_smc91x(void)
318 318
319static int tps_setup(struct i2c_client *client, void *context) 319static int tps_setup(struct i2c_client *client, void *context)
320{ 320{
321 if (!IS_BUILTIN(CONFIG_TPS65010))
322 return -ENOSYS;
323
321 tps65010_config_vregs1(TPS_LDO2_ENABLE | TPS_VLDO2_3_0V | 324 tps65010_config_vregs1(TPS_LDO2_ENABLE | TPS_VLDO2_3_0V |
322 TPS_LDO1_ENABLE | TPS_VLDO1_3_0V); 325 TPS_LDO1_ENABLE | TPS_VLDO1_3_0V);
323 326
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index d68909b095f1..3a0262156e93 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -191,6 +191,9 @@ static struct platform_device osk5912_tps_leds = {
191 191
192static int osk_tps_setup(struct i2c_client *client, void *context) 192static int osk_tps_setup(struct i2c_client *client, void *context)
193{ 193{
194 if (!IS_BUILTIN(CONFIG_TPS65010))
195 return -ENOSYS;
196
194 /* Set GPIO 1 HIGH to disable VBUS power supply; 197 /* Set GPIO 1 HIGH to disable VBUS power supply;
195 * OHCI driver powers it up/down as needed. 198 * OHCI driver powers it up/down as needed.
196 */ 199 */
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c
index 40a1ae319610..dbee729e3b6d 100644
--- a/arch/arm/mach-omap1/pm.c
+++ b/arch/arm/mach-omap1/pm.c
@@ -71,7 +71,11 @@ static unsigned int mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_SIZE];
71static unsigned int mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_SIZE]; 71static unsigned int mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_SIZE];
72static unsigned int mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_SIZE]; 72static unsigned int mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_SIZE];
73 73
74#ifdef CONFIG_OMAP_32K_TIMER 74#ifndef CONFIG_OMAP_32K_TIMER
75
76static unsigned short enable_dyn_sleep = 0;
77
78#else
75 79
76static unsigned short enable_dyn_sleep = 1; 80static unsigned short enable_dyn_sleep = 1;
77 81