summaryrefslogtreecommitdiff
path: root/firmware/drivers/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r--firmware/drivers/power.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index f96b600b6f..4e5d347d54 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -24,6 +24,8 @@
24#include "system.h" 24#include "system.h"
25#include "power.h" 25#include "power.h"
26#include "hwcompat.h" 26#include "hwcompat.h"
27#include "logf.h"
28#include "pcf50606.h"
27 29
28#ifdef HAVE_CHARGE_CTRL 30#ifdef HAVE_CHARGE_CTRL
29bool charger_enabled; 31bool charger_enabled;
@@ -60,6 +62,7 @@ int radio_get_status(void)
60void power_init(void) 62void power_init(void)
61{ 63{
62#if CONFIG_CPU == MCF5249 64#if CONFIG_CPU == MCF5249
65#if IRIVER_H100_SERIES
63 or_l(0x00080000, &GPIO1_OUT); 66 or_l(0x00080000, &GPIO1_OUT);
64 or_l(0x00080000, &GPIO1_ENABLE); 67 or_l(0x00080000, &GPIO1_ENABLE);
65 or_l(0x00080000, &GPIO1_FUNCTION); 68 or_l(0x00080000, &GPIO1_FUNCTION);
@@ -73,6 +76,9 @@ void power_init(void)
73#ifdef HAVE_SPDIF_POWER 76#ifdef HAVE_SPDIF_POWER
74 spdif_power_enable(false); 77 spdif_power_enable(false);
75#endif 78#endif
79#elif defined(IRIVER_H300_SERIES)
80 pcf50606_init();
81#endif
76#elif CONFIG_CPU == PP5020 82#elif CONFIG_CPU == PP5020
77 /* TODO: Implement power_init() */ 83 /* TODO: Implement power_init() */
78#else 84#else