summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-11-14 20:49:21 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-11-14 20:49:21 +0000
commitb6c0f9596024baa5265e29734cc5d8686d81e950 (patch)
tree36d173c450dbadad9f1de3b46ad9204d709ee88b /firmware/drivers
parent63dc8c14b03d6fb3a2e8193fd2d976563496b9e5 (diff)
Added pcf50606 init
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7881 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-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 @@
#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