diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-27 12:35:05 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-27 12:35:05 +0000 |
commit | 285079138b0baa5cf03221f8abcdaaec8e35f112 (patch) | |
tree | e73ba981e762f781ce7a5ea2d5ba24b07a4b2292 /firmware/drivers/i2c-pp5020.c | |
parent | 0bdf0c6342fe1529a1a2f7a9a5086d088f51bc19 (diff) | |
download | rockbox-285079138b0baa5cf03221f8abcdaaec8e35f112.tar.gz rockbox-285079138b0baa5cf03221f8abcdaaec8e35f112.zip |
Patch #3060 from Andrew Scott - iPod mini button driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8857 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/i2c-pp5020.c')
-rw-r--r-- | firmware/drivers/i2c-pp5020.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
161 | { | 161 | { |
162 | /* From ipodlinux */ | 162 | /* From ipodlinux */ |
163 | 163 | ||
164 | #if defined(APPLE_IPODMINI) | ||
165 | /* GPIO port C disable port 0x10 */ | ||
166 | GPIOC_ENABLE &= ~0x10; | ||
167 | |||
168 | /* GPIO port C disable port 0x20 */ | ||
169 | GPIOC_ENABLE &= ~0x20; | ||
170 | #endif | ||
171 | |||
164 | outl(inl(0x6000600c) | 0x1000, 0x6000600c); /* enable 12 */ | 172 | outl(inl(0x6000600c) | 0x1000, 0x6000600c); /* enable 12 */ |
165 | outl(inl(0x60006004) | 0x1000, 0x60006004); /* start reset 12 */ | 173 | outl(inl(0x60006004) | 0x1000, 0x60006004); /* start reset 12 */ |
166 | outl(inl(0x60006004) & ~0x1000, 0x60006004); /* end reset 12 */ | 174 | outl(inl(0x60006004) & ~0x1000, 0x60006004); /* end reset 12 */ |