Skip to content

Commit

Permalink
USB: add Cypress c67x00 OTG controller HCD driver
Browse files Browse the repository at this point in the history
This patch adds HCD support for the Cypress c67x00 family of devices.

Signed-off-by: Peter Korsgaard <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jacmet authored and gregkh committed May 2, 2008
1 parent b02b371 commit e9b29ff
Show file tree
Hide file tree
Showing 9 changed files with 1,836 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ obj-$(CONFIG_USB_SL811_HCD) += host/
obj-$(CONFIG_USB_U132_HCD) += host/
obj-$(CONFIG_USB_R8A66597_HCD) += host/

obj-$(CONFIG_USB_C67X00_HCD) += c67x00/

obj-$(CONFIG_USB_ACM) += class/
obj-$(CONFIG_USB_PRINTER) += class/

Expand Down
9 changes: 9 additions & 0 deletions drivers/usb/c67x00/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Makefile for Cypress C67X00 USB Controller
#

ccflags-$(CONFIG_USB_DEBUG) += -DDEBUG

obj-$(CONFIG_USB_C67X00_HCD) += c67x00.o

c67x00-objs := c67x00-drv.o c67x00-ll-hpi.o c67x00-hcd.o c67x00-sched.o
13 changes: 13 additions & 0 deletions drivers/usb/c67x00/c67x00-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <linux/usb/c67x00.h>

#include "c67x00.h"
#include "c67x00-hcd.h"

static void c67x00_probe_sie(struct c67x00_sie *sie,
struct c67x00_device *dev, int sie_num)
Expand All @@ -51,6 +52,10 @@ static void c67x00_probe_sie(struct c67x00_sie *sie,
sie->mode = c67x00_sie_config(dev->pdata->sie_config, sie_num);

switch (sie->mode) {
case C67X00_SIE_HOST:
c67x00_hcd_probe(sie);
break;

case C67X00_SIE_UNUSED:
dev_info(sie_dev(sie),
"Not using SIE %d as requested\n", sie->sie_num);
Expand All @@ -66,6 +71,14 @@ static void c67x00_probe_sie(struct c67x00_sie *sie,

static void c67x00_remove_sie(struct c67x00_sie *sie)
{
switch (sie->mode) {
case C67X00_SIE_HOST:
c67x00_hcd_remove(sie);
break;

default:
break;
}
}

static irqreturn_t c67x00_irq(int irq, void *__dev)
Expand Down
Loading

0 comments on commit e9b29ff

Please sign in to comment.