1
0
Fork 0
forked from len0rd/rockbox

iPod: Remove/reduce the udelay()s in the button driver. They were in the IPL source, but do not appear to be needed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8530 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-02-02 11:24:32 +00:00
parent fddefdcee2
commit 1023cedb79

View file

@ -121,7 +121,10 @@ static int ipod_4g_button_read(void)
int new_wheel_value;
int btn = BUTTON_NONE;
udelay(250);
/* The ipodlinux source had a udelay(250) here, but testing has shown that
it is not needed - tested on Nano, Color/Photo and Video. */
/* udelay(250);*/
reg = 0x7000c104;
if ((inl(0x7000c104) & 0x4000000) != 0) {
reg = reg + 0x3C; /* 0x7000c140 */
@ -204,7 +207,9 @@ static int ipod_4g_button_read(void)
void ipod_4g_button_int(void)
{
CPU_HI_INT_CLR = I2C_MASK;
udelay(250);
/* The following delay was 250 in the ipodlinux source, but 10 seems to
work fine - tested on Nano, Color/Photo and Video. */
udelay(10);
outl(0x0, 0x7000c140);
int_btn = ipod_4g_button_read();
outl(inl(0x7000c104) | 0xC000000, 0x7000c104);