summaryrefslogtreecommitdiff
path: root/firmware/target/arm/samsung/power-yh82x_yh92x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/samsung/power-yh82x_yh92x.c')
-rw-r--r--firmware/target/arm/samsung/power-yh82x_yh92x.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/firmware/target/arm/samsung/power-yh82x_yh92x.c b/firmware/target/arm/samsung/power-yh82x_yh92x.c
index 021ddade4d..b6c18c5fd0 100644
--- a/firmware/target/arm/samsung/power-yh82x_yh92x.c
+++ b/firmware/target/arm/samsung/power-yh82x_yh92x.c
@@ -20,7 +20,7 @@
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22/* Created from power.c using some iPod code, and some custom stuff based on 22/* Created from power.c using some iPod code, and some custom stuff based on
23 GPIO analysis 23 GPIO analysis
24*/ 24*/
25 25
26#include "config.h" 26#include "config.h"
@@ -32,9 +32,26 @@
32#include "power.h" 32#include "power.h"
33#include "logf.h" 33#include "logf.h"
34#include "usb.h" 34#include "usb.h"
35#include "fmradio_3wire.h"
36
37#if CONFIG_TUNER
38bool tuner_power(bool status)
39{
40 GPIO_SET_BITWISE(GPIOL_ENABLE, 0x04);
41 GPIO_SET_BITWISE(GPIOL_OUTPUT_EN, 0x04);
42 if (status)
43 GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 0x04);
44 else
45 GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 0x04);
46 return status;
47}
48#endif
35 49
36void power_init(void) 50void power_init(void)
37{ 51{
52#if CONFIG_TUNER
53 fmradio_3wire_init();
54#endif
38} 55}
39 56
40unsigned int power_input_status(void) 57unsigned int power_input_status(void)