From 285079138b0baa5cf03221f8abcdaaec8e35f112 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 27 Feb 2006 12:35:05 +0000 Subject: Patch #3060 from Andrew Scott - iPod mini button driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8857 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/i2c-pp5020.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/drivers/i2c-pp5020.c') diff --git a/firmware/drivers/i2c-pp5020.c b/firmware/drivers/i2c-pp5020.c index fccaffc571..9f26d3be6e 100644 --- a/firmware/drivers/i2c-pp5020.c +++ b/firmware/drivers/i2c-pp5020.c @@ -161,6 +161,14 @@ void i2c_init(void) { /* From ipodlinux */ +#if defined(APPLE_IPODMINI) + /* GPIO port C disable port 0x10 */ + GPIOC_ENABLE &= ~0x10; + + /* GPIO port C disable port 0x20 */ + GPIOC_ENABLE &= ~0x20; +#endif + outl(inl(0x6000600c) | 0x1000, 0x6000600c); /* enable 12 */ outl(inl(0x60006004) | 0x1000, 0x60006004); /* start reset 12 */ outl(inl(0x60006004) & ~0x1000, 0x60006004); /* end reset 12 */ -- cgit v1.2.3