From 3ba0e05ab5b731e09478ed089ff954ad3580be63 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Tue, 15 Nov 2011 20:37:47 +0000 Subject: Commit FS#12352 by Stanislav Chizhik. Add support for the PCF50635. Enables detection of USB power sources. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30992 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/pcf50635.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/pcf50635.c b/firmware/drivers/pcf50635.c index 9ccf5e2..38104b8 100644 --- a/firmware/drivers/pcf50635.c +++ b/firmware/drivers/pcf50635.c @@ -102,9 +102,9 @@ void pcf50635_init(void) PCF5063X_REG_GPIO3CFG, 0x0, /* IRQ masks (OF values in brackets) */ - PCF5063X_REG_INT1M, 0xff, /* (0x8a enable alarm, usbins, adpins) */ + PCF5063X_REG_INT1M, 0xfa, /* (0x8a enable alarm, usbins, adpins) */ PCF5063X_REG_INT2M, 0xff, /* (0xff all masked) */ - PCF5063X_REG_INT3M, 0xff, /* (0x7f enable onkey1s) */ + PCF5063X_REG_INT3M, 0x7f, /* (0x7f enable onkey1s) */ PCF5063X_REG_INT4M, 0xff, /* (0xfd enable lowbat) */ PCF5063X_REG_INT5M, 0xff, /* (0xff all masked) */ -- cgit v1.1