From fe6b395e9ef857a10f3dcc30be3936813146969b Mon Sep 17 00:00:00 2001 From: gevaerts Date: Sat, 1 Mar 2008 16:33:54 +0000 Subject: [PATCH] remove the #ifdef CONFIG_CPU == PP5020 around DEV_INIT2 |= INIT_USB. It shouldn't be needed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16465 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/usb-fw-pp502x.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index e0558a190..aa557cbbe 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c @@ -44,9 +44,7 @@ void usb_init_device(void) DEV_RS |= DEV_USB1; DEV_RS &=~DEV_USB1; -#if CONFIG_CPU == PP5020 DEV_INIT2 |= INIT_USB; -#endif while ((inl(0x70000028) & 0x80) == 0); outl(inl(0x70000028) | 0x2, 0x70000028); @@ -55,9 +53,7 @@ void usb_init_device(void) /* disable USB-devices until USB is detected via GPIO */ DEV_EN &= ~DEV_USB0; DEV_EN &= ~DEV_USB1; -#if CONFIG_CPU == PP5020 DEV_INIT2 &= ~INIT_USB; -#endif #if defined(IPOD_COLOR) || defined(IPOD_4G) \ || defined(IPOD_MINI) || defined(IPOD_MINI2G) @@ -75,9 +71,7 @@ void usb_enable(bool on) DEV_RS &=~DEV_USB0; DEV_EN |= DEV_USB1; DEV_RS &=~DEV_USB1; -#if CONFIG_CPU == PP5020 DEV_INIT2 |= INIT_USB; -#endif usb_core_init(); } else { @@ -85,9 +79,7 @@ void usb_enable(bool on) /* Disable USB devices */ DEV_EN &=~ DEV_USB0; DEV_EN &=~ DEV_USB1; -#if CONFIG_CPU == PP5020 DEV_INIT2 &=~ INIT_USB; -#endif } } -- 2.11.4.GIT