diff options
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) | |||
62 | void power_init(void) | 62 | void power_init(void) |
63 | { | 63 | { |
64 | #if CONFIG_CPU == MCF5249 | 64 | #if CONFIG_CPU == MCF5249 |
65 | #if IRIVER_H100_SERIES | 65 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
66 | or_l(0x00080000, &GPIO1_OUT); | 66 | // or_l(0x00080000, &GPIO1_OUT); |
67 | or_l(0x00080000, &GPIO1_ENABLE); | 67 | // or_l(0x00080000, &GPIO1_ENABLE); |
68 | or_l(0x00080000, &GPIO1_FUNCTION); | 68 | // or_l(0x00080000, &GPIO1_FUNCTION); |
69 | 69 | ||
70 | #ifndef BOOTLOADER | 70 | #ifndef BOOTLOADER |
71 | /* The boot loader controls the power */ | 71 | /* The boot loader controls the power */ |
72 | ide_power_enable(true); | 72 | // ide_power_enable(true); |
73 | #endif | 73 | #endif |
74 | or_l(0x80000000, &GPIO_OUT); | ||
74 | or_l(0x80000000, &GPIO_ENABLE); | 75 | or_l(0x80000000, &GPIO_ENABLE); |
75 | or_l(0x80000000, &GPIO_FUNCTION); | 76 | or_l(0x80000000, &GPIO_FUNCTION); |
76 | #ifdef HAVE_SPDIF_POWER | 77 | #ifdef HAVE_SPDIF_POWER |
77 | spdif_power_enable(false); | 78 | spdif_power_enable(false); |
78 | #endif | 79 | #endif |
79 | #elif defined(IRIVER_H300_SERIES) | 80 | #ifdef IRIVER_H300_SERIES |
80 | pcf50606_init(); | 81 | pcf50606_init(); |
81 | #endif | 82 | #endif |
83 | #endif | ||
82 | #elif CONFIG_CPU == PP5020 | 84 | #elif CONFIG_CPU == PP5020 |
83 | /* TODO: Implement power_init() */ | 85 | /* TODO: Implement power_init() */ |
84 | #else | 86 | #else |