summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config-c200.h4
-rw-r--r--firmware/target/arm/sandisk/power-c200_e200.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h
index 1d91228d8d..6397dd8338 100644
--- a/firmware/export/config-c200.h
+++ b/firmware/export/config-c200.h
@@ -100,8 +100,8 @@
100#define AB_REPEAT_ENABLE 1 100#define AB_REPEAT_ENABLE 1
101 101
102/* FM Tuner */ 102/* FM Tuner */
103/* TODO: #define CONFIG_TUNER LV24020LP */ 103#define CONFIG_TUNER LV24020LP
104/* TODO: #define HAVE_TUNER_PWR_CTRL */ 104#define HAVE_TUNER_PWR_CTRL
105 105
106/* Define this for LCD backlight available */ 106/* Define this for LCD backlight available */
107#define HAVE_BACKLIGHT 107#define HAVE_BACKLIGHT
diff --git a/firmware/target/arm/sandisk/power-c200_e200.c b/firmware/target/arm/sandisk/power-c200_e200.c
index cb85b117c4..910c3aaead 100644
--- a/firmware/target/arm/sandisk/power-c200_e200.c
+++ b/firmware/target/arm/sandisk/power-c200_e200.c
@@ -82,7 +82,11 @@ bool tuner_power_nolock(bool status)
82 if (status) 82 if (status)
83 { 83 {
84 /* init mystery amplification device */ 84 /* init mystery amplification device */
85#if defined(SANSA_E200)
85 outl(inl(0x70000084) | 0x1, 0x70000084); 86 outl(inl(0x70000084) | 0x1, 0x70000084);
87#else /* SANSA_C200 */
88 DEV_INIT &= ~0x800;
89#endif
86 udelay(5); 90 udelay(5);
87 91
88 /* When power up, host should initialize the 3-wire bus 92 /* When power up, host should initialize the 3-wire bus
@@ -113,7 +117,11 @@ bool tuner_power_nolock(bool status)
113 GPIOH_ENABLE &= ~((1 << 5) | (1 << 3) | (1 << 4)); 117 GPIOH_ENABLE &= ~((1 << 5) | (1 << 3) | (1 << 4));
114 118
115 /* turn off mystery amplification device */ 119 /* turn off mystery amplification device */
120#if defined (SANSA_E200)
116 outl(inl(0x70000084) & ~0x1, 0x70000084); 121 outl(inl(0x70000084) & ~0x1, 0x70000084);
122#else
123 DEV_INIT |= 0x800;
124#endif
117 } 125 }
118 126
119 powered = status; 127 powered = status;