summaryrefslogtreecommitdiff
path: root/firmware/target/arm/philips/hdd1630/power-hdd1630.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/philips/hdd1630/power-hdd1630.c')
-rwxr-xr-xfirmware/target/arm/philips/hdd1630/power-hdd1630.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/target/arm/philips/hdd1630/power-hdd1630.c b/firmware/target/arm/philips/hdd1630/power-hdd1630.c
index 4e7172ef6f..22e11c803a 100755
--- a/firmware/target/arm/philips/hdd1630/power-hdd1630.c
+++ b/firmware/target/arm/philips/hdd1630/power-hdd1630.c
@@ -39,6 +39,13 @@ void power_init(void)
39 /* charger inserted bit */ 39 /* charger inserted bit */
40 GPIOE_ENABLE |= 0x20; 40 GPIOE_ENABLE |= 0x20;
41 GPIOE_INPUT_VAL |= 0x20; 41 GPIOE_INPUT_VAL |= 0x20;
42
43#if CONFIG_TUNER
44 /* fm antenna? */
45 GPIOE_ENABLE |= 0x40;
46 GPIOE_OUTPUT_EN |= 0x40;
47 GPIOE_OUTPUT_VAL &= ~0x40; /* off */
48#endif
42} 49}
43 50
44unsigned int power_input_status(void) 51unsigned int power_input_status(void)
@@ -77,3 +84,15 @@ void power_off(void)
77 GPIOB_OUTPUT_VAL &= ~0x80; 84 GPIOB_OUTPUT_VAL &= ~0x80;
78 GPIOB_OUTPUT_EN |= 0x80; 85 GPIOB_OUTPUT_EN |= 0x80;
79} 86}
87
88#if CONFIG_TUNER
89bool tuner_power(bool status)
90{
91 if (status)
92 GPIOE_OUTPUT_VAL |= 0x40;
93 else
94 GPIOE_OUTPUT_VAL &= ~0x40;
95
96 return status;
97}
98#endif