diff options
Diffstat (limited to 'firmware/target/arm/philips/hdd1630/power-hdd1630.c')
-rwxr-xr-x | firmware/target/arm/philips/hdd1630/power-hdd1630.c | 19 |
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 | ||
44 | unsigned int power_input_status(void) | 51 | unsigned 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 | ||
89 | bool 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 | ||