diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:15:59 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:15:59 +0000 |
commit | df0e5effc550db484ca0d377b9f3547fed27cd66 (patch) | |
tree | d54a173927a2091263787f62c9c59fe0c0f57aaa /firmware/drivers/power.c | |
parent | 59825952f3d98d29e03b094642655968d7abcc02 (diff) | |
download | rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.tar.gz rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.zip |
Cleaned up bootloader linker control file and added the H300 target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index 4e5d347d54..2547c11cb0 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c @@ -62,23 +62,25 @@ int radio_get_status(void) void power_init(void) { #if CONFIG_CPU == MCF5249 -#if IRIVER_H100_SERIES - or_l(0x00080000, &GPIO1_OUT); - or_l(0x00080000, &GPIO1_ENABLE); - or_l(0x00080000, &GPIO1_FUNCTION); +#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) +// or_l(0x00080000, &GPIO1_OUT); +// or_l(0x00080000, &GPIO1_ENABLE); +// or_l(0x00080000, &GPIO1_FUNCTION); #ifndef BOOTLOADER /* The boot loader controls the power */ - ide_power_enable(true); +// ide_power_enable(true); #endif + or_l(0x80000000, &GPIO_OUT); or_l(0x80000000, &GPIO_ENABLE); or_l(0x80000000, &GPIO_FUNCTION); #ifdef HAVE_SPDIF_POWER spdif_power_enable(false); #endif -#elif defined(IRIVER_H300_SERIES) +#ifdef IRIVER_H300_SERIES pcf50606_init(); #endif +#endif #elif CONFIG_CPU == PP5020 /* TODO: Implement power_init() */ #else |