diff options
-rw-r--r-- | firmware/drivers/power.c | 6 |
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 @@ #include "system.h" #include "power.h" #include "hwcompat.h" +#include "logf.h" +#include "pcf50606.h" #ifdef HAVE_CHARGE_CTRL bool charger_enabled; @@ -60,6 +62,7 @@ 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); @@ -73,6 +76,9 @@ void power_init(void) #ifdef HAVE_SPDIF_POWER spdif_power_enable(false); #endif +#elif defined(IRIVER_H300_SERIES) + pcf50606_init(); +#endif #elif CONFIG_CPU == PP5020 /* TODO: Implement power_init() */ #else |