Remove some unused code in the Philips SA9200 port.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19573 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mark Arigo 2008-12-24 03:45:32 +00:00
parent bd43105436
commit be26da8662
2 changed files with 2 additions and 88 deletions

View file

@ -63,71 +63,3 @@ void ide_power_enable(bool on)
{
(void)on;
}
#if CONFIG_TUNER
/** Tuner **/
static bool powered = false;
bool tuner_power(bool status)
{
bool old_status;
lv24020lp_lock();
old_status = powered;
if (status != old_status)
{
if (status)
{
/* init mystery amplification device */
#if defined(SANSA_E200)
GPO32_ENABLE |= 0x1;
#else /* SANSA_C200 */
DEV_INIT2 &= ~0x800;
#endif
udelay(5);
/* When power up, host should initialize the 3-wire bus
in host read mode: */
/* 1. Set direction of the DATA-line to input-mode. */
GPIOH_OUTPUT_EN &= ~(1 << 5);
GPIOH_ENABLE |= (1 << 5);
/* 2. Drive NR_W low */
GPIOH_OUTPUT_VAL &= ~(1 << 3);
GPIOH_OUTPUT_EN |= (1 << 3);
GPIOH_ENABLE |= (1 << 3);
/* 3. Drive CLOCK high */
GPIOH_OUTPUT_VAL |= (1 << 4);
GPIOH_OUTPUT_EN |= (1 << 4);
GPIOH_ENABLE |= (1 << 4);
lv24020lp_power(true);
}
else
{
lv24020lp_power(false);
/* set all as inputs */
GPIOH_OUTPUT_EN &= ~((1 << 5) | (1 << 3) | (1 << 4));
GPIOH_ENABLE &= ~((1 << 3) | (1 << 4));
/* turn off mystery amplification device */
#if defined (SANSA_E200)
GPO32_ENABLE &= ~0x1;
#else
DEV_INIT2 |= 0x800;
#endif
}
powered = status;
}
lv24020lp_unlock();
return old_status;
}
#endif /* CONFIG_TUNER */