Date:2010-01-11 04:29:45 (10 years 4 months ago)
Author:Lars C.
Commit:7ddcf13ec88da95c6098c45d5fa40c8e42b4338e
Message:From ba0e3820ee1def7c358391df293551b726fb7014 Mon Sep 17 00:00:00 2001 Subject: [PATCH] /opt/Projects/openwrt/target/linux/xburst/patches-2.6.31/104-usb.patc h

Files: drivers/usb/gadget/Kconfig (1 diff)
drivers/usb/gadget/Makefile (1 diff)
drivers/usb/gadget/gadget_chips.h (2 diffs)

Change Details

drivers/usb/gadget/Kconfig
121121#
122122# Integrated controllers
123123#
124config USB_GADGET_JZ4740
125    boolean "JZ4740 UDC"
126    depends on SOC_JZ4740
127    select USB_GADGET_SELECTED
128    select USB_GADGET_DUALSPEED
129    help
130           Select this to support the Ingenic JZ4740 processor
131           high speed USB device controller.
132
133config USB_JZ4740
134    tristate
135    depends on USB_GADGET_JZ4740
136    default USB_GADGET
124137
125138config USB_GADGET_AT91
126139    boolean "Atmel AT91 USB Device Port"
127140    depends on ARCH_AT91 && !ARCH_AT91SAM9RL && !ARCH_AT91CAP9 && !ARCH_AT91SAM9G45
128141    select USB_GADGET_SELECTED
142
129143    help
130144       Many Atmel AT91 processors (such as the AT91RM2000) have a
131145       full speed USB Device Port with support for five configurable
drivers/usb/gadget/Makefile
2828obj-$(CONFIG_USB_CI13XXX) += ci13xxx_udc.o
2929obj-$(CONFIG_USB_S3C_HSOTG) += s3c-hsotg.o
3030obj-$(CONFIG_USB_LANGWELL) += langwell_udc.o
31obj-$(CONFIG_USB_JZ4740) += jz4740_udc.o
3132
3233#
3334# USB gadget drivers
drivers/usb/gadget/gadget_chips.h
1515#ifndef __GADGET_CHIPS_H
1616#define __GADGET_CHIPS_H
1717
18#ifdef CONFIG_USB_GADGET_JZ4740
19#define gadget_is_jz4740(g) !strcmp("ingenic_hsusb", (g)->name)
20#else
21#define gadget_is_jz4740(g) 0
22#endif
23
1824#ifdef CONFIG_USB_GADGET_NET2280
1925#define gadget_is_net2280(g) !strcmp("net2280", (g)->name)
2026#else
...... 
247253        return 0x24;
248254    else if (gadget_is_r8a66597(gadget))
249255        return 0x25;
256    else if (gadget_is_jz4740(gadget))
257        return 0x26;
258
250259    return -ENOENT;
251260}
252261

Archive Download the corresponding diff file



interactive