aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527/boards/ezkit.c
diff options
context:
space:
mode:
authorBryan Wu <cooloney@kernel.org>2008-10-08 01:39:40 -0400
committerBryan Wu <cooloney@kernel.org>2008-10-08 01:39:40 -0400
commit50041acbe4122817fed9d76a846e78ba6f06c0b5 (patch)
tree653d76726ad4dfe7166660257a016b4a39d0771a /arch/blackfin/mach-bf527/boards/ezkit.c
parent3fa8749e584b55f1180411ab1b51117190bac1e5 (diff)
Blackfin arch: use new platform data interface of musb to replace old one
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezkit.c')
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index 762f754c06cc..a756934482cf 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -42,9 +42,7 @@
42#include <linux/irq.h> 42#include <linux/irq.h>
43#include <linux/interrupt.h> 43#include <linux/interrupt.h>
44#include <linux/usb/sl811.h> 44#include <linux/usb/sl811.h>
45#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
46#include <linux/usb/musb.h> 45#include <linux/usb/musb.h>
47#endif
48#include <asm/cplb.h> 46#include <asm/cplb.h>
49#include <asm/dma.h> 47#include <asm/dma.h>
50#include <asm/bfin5xx_spi.h> 48#include <asm/bfin5xx_spi.h>
@@ -129,6 +127,16 @@ static struct resource musb_resources[] = {
129 }, 127 },
130}; 128};
131 129
130static struct musb_hdrc_config musb_config = {
131 .multipoint = 0,
132 .dyn_fifo = 0,
133 .soft_con = 1,
134 .dma = 1,
135 .num_eps = 7,
136 .dma_channels = 7,
137 .gpio_vrsel = GPIO_PG13,
138};
139
132static struct musb_hdrc_platform_data musb_plat = { 140static struct musb_hdrc_platform_data musb_plat = {
133#if defined(CONFIG_USB_MUSB_OTG) 141#if defined(CONFIG_USB_MUSB_OTG)
134 .mode = MUSB_OTG, 142 .mode = MUSB_OTG,
@@ -137,7 +145,7 @@ static struct musb_hdrc_platform_data musb_plat = {
137#elif defined(CONFIG_USB_GADGET_MUSB_HDRC) 145#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
138 .mode = MUSB_PERIPHERAL, 146 .mode = MUSB_PERIPHERAL,
139#endif 147#endif
140 .multipoint = 0, 148 .config = &musb_config,
141}; 149};
142 150
143static u64 musb_dmamask = ~(u32)0; 151static u64 musb_dmamask = ~(u32)0;