From af97e9369a5ecbe4438a1a5df14269fa56320fa3 Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Tue, 2 Oct 2007 21:04:10 +0000 Subject: 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 --- firmware/export/config-c200.h | 4 ++-- firmware/target/arm/sandisk/power-c200_e200.c | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'firmware') 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 @@ #define AB_REPEAT_ENABLE 1 /* FM Tuner */ -/* TODO: #define CONFIG_TUNER LV24020LP */ -/* TODO: #define HAVE_TUNER_PWR_CTRL */ +#define CONFIG_TUNER LV24020LP +#define HAVE_TUNER_PWR_CTRL /* Define this for LCD backlight available */ #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) if (status) { /* init mystery amplification device */ +#if defined(SANSA_E200) outl(inl(0x70000084) | 0x1, 0x70000084); +#else /* SANSA_C200 */ + DEV_INIT &= ~0x800; +#endif udelay(5); /* When power up, host should initialize the 3-wire bus @@ -113,7 +117,11 @@ bool tuner_power_nolock(bool status) GPIOH_ENABLE &= ~((1 << 5) | (1 << 3) | (1 << 4)); /* turn off mystery amplification device */ +#if defined (SANSA_E200) outl(inl(0x70000084) & ~0x1, 0x70000084); +#else + DEV_INIT |= 0x800; +#endif } powered = status; -- cgit v1.2.3