summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-10-17 09:58:05 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-10-17 09:58:05 +0000
commit954e5888b15d9680129f89aaffa161687fede01b (patch)
tree4f03b15d1e922e249de1ce657f9296887867bec9
parent91f9350cbde2653034840fc930749e2b1f9af9c7 (diff)
downloadrockbox-954e5888b15d9680129f89aaffa161687fede01b.zip
rockbox-954e5888b15d9680129f89aaffa161687fede01b.tar.gz
rockbox-954e5888b15d9680129f89aaffa161687fede01b.tar.bz2
rockbox-954e5888b15d9680129f89aaffa161687fede01b.tar.xz
bugfix for OndioFM tuner power
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5297 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/power.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 35aceb5..3a69b37 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -39,11 +39,11 @@ void radio_set_status(int status)
#ifdef HAVE_TUNER_PWR_CTRL
if (status)
{
- and_b(~0x04, &PADR); /* drive PA2 low for tuner enable */
+ and_b(~0x04, &PADRL); /* drive PA2 low for tuner enable */
sleep(1); /* let the voltage settle */
}
else
- or_b(0x04, &PADR); /* drive PA2 high for tuner disable */
+ or_b(0x04, &PADRL); /* drive PA2 high for tuner disable */
#endif
}
@@ -63,9 +63,9 @@ void power_init(void)
charger_enable(false); /* Default to charger OFF */
#endif
#ifdef HAVE_TUNER_PWR_CTRL
- and_b(~0x30, &PACR2); /* GPIO for PA2 */
- or_b(0x04, &PADR); /* drive PA2 high for tuner disable */
- or_b(0x04, &PAIOR); /* output for PA2 */
+ PACR2 &= ~0x0030; /* GPIO for PA2 */
+ or_b(0x04, &PADRL); /* drive PA2 high for tuner disable */
+ or_b(0x04, &PAIORL); /* output for PA2 */
#endif
}