diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2012-07-14 14:01:09 -0400 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-08-30 14:15:52 -0400 |
commit | 22df90f6bb687db58298084a200782dd0148d247 (patch) | |
tree | d344148a22e2959f922395e337f5b72c72aa4093 /arch/mips/include/asm/mach-bcm63xx | |
parent | 5fd66c2b2b7ce5cfc660cc75abbb3bf248ba3e9b (diff) |
MIPS: BCM63XX: Create platform_device for USBD
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Reviewed-by: Jonas Gorski <jonas.gorski@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/4111/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/include/asm/mach-bcm63xx')
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_usb_usbd.h | 17 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 5 |
2 files changed, 22 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_usb_usbd.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_usb_usbd.h new file mode 100644 index 000000000000..5d6d6986f40b --- /dev/null +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_usb_usbd.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef BCM63XX_DEV_USB_USBD_H_ | ||
2 | #define BCM63XX_DEV_USB_USBD_H_ | ||
3 | |||
4 | /* | ||
5 | * usb device platform data | ||
6 | */ | ||
7 | struct bcm63xx_usbd_platform_data { | ||
8 | /* board can only support full speed (USB 1.1) */ | ||
9 | int use_fullspeed; | ||
10 | |||
11 | /* 0-based port index, for chips with >1 USB PHY */ | ||
12 | int port_no; | ||
13 | }; | ||
14 | |||
15 | int bcm63xx_usbd_register(const struct bcm63xx_usbd_platform_data *pd); | ||
16 | |||
17 | #endif /* BCM63XX_DEV_USB_USBD_H_ */ | ||
diff --git a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h index 474daaa53497..b0dd4bb53f7e 100644 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/gpio.h> | 5 | #include <linux/gpio.h> |
6 | #include <linux/leds.h> | 6 | #include <linux/leds.h> |
7 | #include <bcm63xx_dev_enet.h> | 7 | #include <bcm63xx_dev_enet.h> |
8 | #include <bcm63xx_dev_usb_usbd.h> | ||
8 | #include <bcm63xx_dev_dsp.h> | 9 | #include <bcm63xx_dev_dsp.h> |
9 | 10 | ||
10 | /* | 11 | /* |
@@ -44,6 +45,7 @@ struct board_info { | |||
44 | unsigned int has_pccard:1; | 45 | unsigned int has_pccard:1; |
45 | unsigned int has_ohci0:1; | 46 | unsigned int has_ohci0:1; |
46 | unsigned int has_ehci0:1; | 47 | unsigned int has_ehci0:1; |
48 | unsigned int has_usbd:1; | ||
47 | unsigned int has_dsp:1; | 49 | unsigned int has_dsp:1; |
48 | unsigned int has_uart0:1; | 50 | unsigned int has_uart0:1; |
49 | unsigned int has_uart1:1; | 51 | unsigned int has_uart1:1; |
@@ -52,6 +54,9 @@ struct board_info { | |||
52 | struct bcm63xx_enet_platform_data enet0; | 54 | struct bcm63xx_enet_platform_data enet0; |
53 | struct bcm63xx_enet_platform_data enet1; | 55 | struct bcm63xx_enet_platform_data enet1; |
54 | 56 | ||
57 | /* USB config */ | ||
58 | struct bcm63xx_usbd_platform_data usbd; | ||
59 | |||
55 | /* DSP config */ | 60 | /* DSP config */ |
56 | struct bcm63xx_dsp_platform_data dsp; | 61 | struct bcm63xx_dsp_platform_data dsp; |
57 | 62 | ||