Skip to contentSkip to conversation

ppc4xx: Remove usbdev.c

PATCH New Stefan Roese 2 participants 2 messages Nov 18, 2011 – Dec 7, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Remove usbdev.c

As this "driver" doesn't seem to be really used, let's remove it completely.

---
 arch/powerpc/cpu/ppc4xx/Makefile   |    1 -
 arch/powerpc/cpu/ppc4xx/usb.c      |    5 -
 arch/powerpc/cpu/ppc4xx/usb_ohci.c |    7 -
 arch/powerpc/cpu/ppc4xx/usbdev.c   |  230 ------------------------------------
 arch/powerpc/cpu/ppc4xx/usbdev.h   |   31 -----
 5 files changed, 0 insertions(+), 274 deletions(-)
 delete mode 100644 arch/powerpc/cpu/ppc4xx/usbdev.c
 delete mode 100644 arch/powerpc/cpu/ppc4xx/usbdev.h
arch/powerpc/cpu/ppc4xx/Makefile +0 -1
index d97ca20..3d62255 100644
@@ -61,7 +61,6 @@ COBJS	+= tlb.o
 COBJS	+= traps.o
 COBJS	+= usb.o
 COBJS	+= usb_ohci.o
-COBJS	+= usbdev.o
 COBJS-$(CONFIG_XILINX_440) += xilinx_irq.o
 ifndef CONFIG_XILINX_440
 COBJS	+= 4xx_uart.o
arch/powerpc/cpu/ppc4xx/usb.c +0 -5
index 592efe7..8c71f75 100644
@@ -30,8 +30,6 @@
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
-#include "usbdev.h"
-
 int usb_cpu_init(void)
 {
 #ifdef CONFIG_4xx_DCACHE
@@ -39,9 +37,6 @@ int usb_cpu_init(void)
 	change_tlb(gd->bd->bi_memstart, gd->bd->bi_memsize, TLB_WORD2_I_ENABLE);
 #endif
 
-#if defined(CONFIG_440EP) || defined(CONFIG_440EPX)
-	usb_dev_init();
-#endif
 	return 0;
 }
 
arch/powerpc/cpu/ppc4xx/usb_ohci.c +0 -7
index 065730d..4fb7031 100644
@@ -44,8 +44,6 @@
 #include <usb.h>
 #include "usb_ohci.h"
 
-#include "usbdev.h"
-
 #define OHCI_USE_NPS		/* force NoPowerSwitching mode */
 #undef OHCI_VERBOSE_DEBUG	/* not always helpful */
 #undef DEBUG
@@ -1623,11 +1621,6 @@ int usb_lowlevel_init(void)
 	ohci_inited = 1;
 	urb_finished = 1;
 
-#if defined(CONFIG_440EP) || defined(CONFIG_440EPX)
-	/* init the device driver */
-	usb_dev_init();
-#endif
-
 	return 0;
 }
 
arch/powerpc/cpu/ppc4xx/usbdev.c deleted +0 -230

230 lines not on this page · raw message

arch/powerpc/cpu/ppc4xx/usbdev.h deleted +0 -31
deleted file mode 100644
index ef6a2da..0000000
@@ -1,31 +0,0 @@
-#include <config.h>
-
-/*Common Registers*/
-#define USB2D0_INTRIN_16   (CONFIG_SYS_USB_DEVICE | 0x100)
-#define USB2D0_POWER_8     (CONFIG_SYS_USB_DEVICE | 0x102)
-#define USB2D0_FADDR_8     (CONFIG_SYS_USB_DEVICE | 0x103)
-#define USB2D0_INTRINE_16  (CONFIG_SYS_USB_DEVICE | 0x104)
-#define USB2D0_INTROUT_16  (CONFIG_SYS_USB_DEVICE | 0x106)
-#define USB2D0_INTRUSBE_8  (CONFIG_SYS_USB_DEVICE | 0x108)
-#define USB2D0_INTRUSB_8   (CONFIG_SYS_USB_DEVICE | 0x109)
-#define USB2D0_INTROUTE_16 (CONFIG_SYS_USB_DEVICE | 0x10a)
-#define USB2D0_TSTMODE_8   (CONFIG_SYS_USB_DEVICE | 0x10c)
-#define USB2D0_INDEX_8     (CONFIG_SYS_USB_DEVICE | 0x10d)
-#define USB2D0_FRAME_16    (CONFIG_SYS_USB_DEVICE | 0x10e)
-
-/*Indexed Registers*/
-#define USB2D0_INCSR0_8    (CONFIG_SYS_USB_DEVICE | 0x110)
-#define USB2D0_INCSR_16    (CONFIG_SYS_USB_DEVICE | 0x110)
-#define USB2D0_INMAXP_16   (CONFIG_SYS_USB_DEVICE | 0x112)
-#define USB2D0_OUTCSR_16   (CONFIG_SYS_USB_DEVICE | 0x114)
-#define USB2D0_OUTMAXP_16  (CONFIG_SYS_USB_DEVICE | 0x116)
-#define USB2D0_OUTCOUNT0_8 (CONFIG_SYS_USB_DEVICE | 0x11a)
-#define USB2D0_OUTCOUNT_16 (CONFIG_SYS_USB_DEVICE | 0x11a)
-
-/*FIFOs*/
-#define USB2D0_FIFO_0 (CONFIG_SYS_USB_DEVICE | 0x120)
-#define USB2D0_FIFO_1 (CONFIG_SYS_USB_DEVICE | 0x124)
-#define USB2D0_FIFO_2 (CONFIG_SYS_USB_DEVICE | 0x128)
-#define USB2D0_FIFO_3 (CONFIG_SYS_USB_DEVICE | 0x12c)
-
-void usb_dev_init(void);
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 1/1 ppc4xx: Remove usbdev.c

Dear Stefan Roese,

Quoted 4 lines · In message <[email protected]> you wrote:

As this "driver" doesn't seem to be really used, let's remove it completely.

Quoted 9 lines
---
 arch/powerpc/cpu/ppc4xx/Makefile   |    1 -
 arch/powerpc/cpu/ppc4xx/usb.c      |    5 -
 arch/powerpc/cpu/ppc4xx/usb_ohci.c |    7 -
 arch/powerpc/cpu/ppc4xx/usbdev.c   |  230 ------------------------------------
 arch/powerpc/cpu/ppc4xx/usbdev.h   |   31 -----
 5 files changed, 0 insertions(+), 274 deletions(-)
 delete mode 100644 arch/powerpc/cpu/ppc4xx/usbdev.c
 delete mode 100644 arch/powerpc/cpu/ppc4xx/usbdev.h

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Some programming languages manage to  absorb  change,  but  withstand
progress.          -- Epigrams in Programming, ACM SIGPLAN Sept. 1982