diff options
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index 2547c11cb0..4e5d347d54 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -62,25 +62,23 @@ 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 defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) | 65 | #if IRIVER_H100_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); | ||
75 | or_l(0x80000000, &GPIO_ENABLE); | 74 | or_l(0x80000000, &GPIO_ENABLE); |
76 | or_l(0x80000000, &GPIO_FUNCTION); | 75 | or_l(0x80000000, &GPIO_FUNCTION); |
77 | #ifdef HAVE_SPDIF_POWER | 76 | #ifdef HAVE_SPDIF_POWER |
78 | spdif_power_enable(false); | 77 | spdif_power_enable(false); |
79 | #endif | 78 | #endif |
80 | #ifdef IRIVER_H300_SERIES | 79 | #elif defined(IRIVER_H300_SERIES) |
81 | pcf50606_init(); | 80 | pcf50606_init(); |
82 | #endif | 81 | #endif |
83 | #endif | ||
84 | #elif CONFIG_CPU == PP5020 | 82 | #elif CONFIG_CPU == PP5020 |
85 | /* TODO: Implement power_init() */ | 83 | /* TODO: Implement power_init() */ |
86 | #else | 84 | #else |