From c6b6bad18fcd68182574086c2eb2a1da30d36d25 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 17 Mar 2008 00:19:23 +0000 Subject: iAudio M3: ADC driver, making buttons and battery voltage reading work. * Disable the multi-colour LED for now to save power. Proper handling will be added later. * Make reboot on button press work on iAudio X5, M5, M3 in panicf(), and on M3 in UIE(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16684 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iaudio/m3/power-m3.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/target/coldfire/iaudio/m3/power-m3.c') diff --git a/firmware/target/coldfire/iaudio/m3/power-m3.c b/firmware/target/coldfire/iaudio/m3/power-m3.c index 7b5af43026..52a5de3460 100644 --- a/firmware/target/coldfire/iaudio/m3/power-m3.c +++ b/firmware/target/coldfire/iaudio/m3/power-m3.c @@ -36,6 +36,10 @@ void power_init(void) /* Charger detect */ and_l(~0x00000020, &GPIO1_ENABLE); or_l(0x00000020, &GPIO1_FUNCTION); + + /* FIXME: Just disable the multi-colour LED for now. */ + and_l(~0x00000210, &GPIO1_OUT); + and_l(~0x00008000, &GPIO_OUT); } bool charger_inserted(void) -- cgit v1.2.3