diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2008-08-08 05:40:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 20:33:01 -0400 |
commit | ca6d1b1333bc2e61e37982de1f28d8604c232414 (patch) | |
tree | 6675d284fc932e9125fc7fd083eebb7f0a1d5695 /drivers/usb/musb/musb_core.h | |
parent | f362a47560070ec0aaf68ac6b45901eeed1c844f (diff) |
usb: musb: pass configuration specifics via pdata
Use platform_data to pass musb configuration-specific
details to musb driver.
This patch will prevent that other platforms selecting
HAVE_CLK and enabling musb won't break tree building.
The other parts of it will come when linux-omap merge
up more omap2/3 board-files.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_core.h')
-rw-r--r-- | drivers/usb/musb/musb_core.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 90035c12ab5..eade46d8170 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h | |||
@@ -56,18 +56,6 @@ struct musb_ep; | |||
56 | #include "musb_debug.h" | 56 | #include "musb_debug.h" |
57 | #include "musb_dma.h" | 57 | #include "musb_dma.h" |
58 | 58 | ||
59 | #ifdef CONFIG_USB_MUSB_SOC | ||
60 | /* | ||
61 | * Get core configuration from a header converted (by cfg_conv) | ||
62 | * from the Verilog config file generated by the core config utility | ||
63 | * | ||
64 | * For now we assume that header is provided along with other | ||
65 | * arch-specific files. Discrete chips will need a build tweak. | ||
66 | * So will using AHB IDs from silicon that provides them. | ||
67 | */ | ||
68 | #include <asm/arch/hdrc_cnf.h> | ||
69 | #endif | ||
70 | |||
71 | #include "musb_io.h" | 59 | #include "musb_io.h" |
72 | #include "musb_regs.h" | 60 | #include "musb_regs.h" |
73 | 61 | ||
@@ -440,6 +428,8 @@ struct musb { | |||
440 | struct usb_gadget_driver *gadget_driver; /* its driver */ | 428 | struct usb_gadget_driver *gadget_driver; /* its driver */ |
441 | #endif | 429 | #endif |
442 | 430 | ||
431 | struct musb_hdrc_config *config; | ||
432 | |||
443 | #ifdef MUSB_CONFIG_PROC_FS | 433 | #ifdef MUSB_CONFIG_PROC_FS |
444 | struct proc_dir_entry *proc_entry; | 434 | struct proc_dir_entry *proc_entry; |
445 | #endif | 435 | #endif |