diff options
author | Marianne Arnold <pixelma@rockbox.org> | 2007-10-02 21:04:10 +0000 |
---|---|---|
committer | Marianne Arnold <pixelma@rockbox.org> | 2007-10-02 21:04:10 +0000 |
commit | af97e9369a5ecbe4438a1a5df14269fa56320fa3 (patch) | |
tree | aa9f6c3df7f0eaee880caf10366ec9e8ef036e31 /firmware | |
parent | 51a8a1e3f3e390c55f2661ef5b4b681121156eee (diff) | |
download | rockbox-af97e9369a5ecbe4438a1a5df14269fa56320fa3.tar.gz rockbox-af97e9369a5ecbe4438a1a5df14269fa56320fa3.zip |
Commit FS #7881 by Mark Arigo - enable radio on the Sansa c200. It seems that many (if not all) c200s have the radio hardware even if you can't use it with the original firmware...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14963 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config-c200.h | 4 | ||||
-rw-r--r-- | firmware/target/arm/sandisk/power-c200_e200.c | 8 |
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; |