diff options
author | David VomLehn <dvomlehn@cisco.com> | 2010-08-02 21:40:58 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:34 -0400 |
commit | 0d365753d0b7c26043fdfa97790411606fb40112 (patch) | |
tree | 8ad3a06bf6c5299151a611d55c7e5b2a5d63fec6 /arch/mips/include/asm | |
parent | 5089ca9d31b0250f42ccd0e0a41b3547f22a20a0 (diff) |
MIPS: PowerTV: Separate PowerTV USB support from non-USB code
Separate USB code into a file separate from asic/asic_devices.
Separating the USB code from everything else in asic/asic_devices.c goes
a long way toward reducing the use of that file as a dumping ground for
everything that didn't seem to fit anywhere else.
Signed-off-by: David VomLehn <dvomlehn@cisco.com>
To: linux-mips@linux-mips.org
Cc: greg@kroah.com
Cc: linux-usb@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/1522/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/mach-powertv/asic.h | 17 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-powertv/asic_regs.h | 1 |
2 files changed, 14 insertions, 4 deletions
diff --git a/arch/mips/include/asm/mach-powertv/asic.h b/arch/mips/include/asm/mach-powertv/asic.h index df33d93e4f56..c7077a64b9a7 100644 --- a/arch/mips/include/asm/mach-powertv/asic.h +++ b/arch/mips/include/asm/mach-powertv/asic.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #define _ASM_MACH_POWERTV_ASIC_H | 20 | #define _ASM_MACH_POWERTV_ASIC_H |
21 | 21 | ||
22 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
23 | #include <linux/platform_device.h> | ||
23 | #include <asm/mach-powertv/asic_regs.h> | 24 | #include <asm/mach-powertv/asic_regs.h> |
24 | 25 | ||
25 | #define DVR_CAPABLE (1<<0) | 26 | #define DVR_CAPABLE (1<<0) |
@@ -71,16 +72,24 @@ extern int platform_supports_ffs(void); | |||
71 | extern int platform_supports_pcie(void); | 72 | extern int platform_supports_pcie(void); |
72 | extern int platform_supports_display(void); | 73 | extern int platform_supports_display(void); |
73 | extern void configure_platform(void); | 74 | extern void configure_platform(void); |
74 | extern void platform_configure_usb_ehci(void); | ||
75 | extern void platform_unconfigure_usb_ehci(void); | ||
76 | extern void platform_configure_usb_ohci(void); | ||
77 | extern void platform_unconfigure_usb_ohci(void); | ||
78 | 75 | ||
79 | /* Platform Resources */ | 76 | /* Platform Resources */ |
80 | #define ASIC_RESOURCE_GET_EXISTS 1 | 77 | #define ASIC_RESOURCE_GET_EXISTS 1 |
81 | extern struct resource *asic_resource_get(const char *name); | 78 | extern struct resource *asic_resource_get(const char *name); |
82 | extern void platform_release_memory(void *baddr, int size); | 79 | extern void platform_release_memory(void *baddr, int size); |
83 | 80 | ||
81 | /* USB configuration */ | ||
82 | struct usb_hcd; /* Forward reference */ | ||
83 | extern void platform_configure_usb_ehci(void); | ||
84 | extern void platform_unconfigure_usb_ehci(void); | ||
85 | extern void platform_configure_usb_ohci(void); | ||
86 | extern void platform_unconfigure_usb_ohci(void); | ||
87 | |||
88 | /* Resource for ASIC registers */ | ||
89 | extern struct resource asic_resource; | ||
90 | extern int platform_usb_devices_init(struct platform_device **echi_dev, | ||
91 | struct platform_device **ohci_dev); | ||
92 | |||
84 | /* Reboot Cause */ | 93 | /* Reboot Cause */ |
85 | extern void set_reboot_cause(char code, unsigned int data, unsigned int data2); | 94 | extern void set_reboot_cause(char code, unsigned int data, unsigned int data2); |
86 | extern void set_locked_reboot_cause(char code, unsigned int data, | 95 | extern void set_locked_reboot_cause(char code, unsigned int data, |
diff --git a/arch/mips/include/asm/mach-powertv/asic_regs.h b/arch/mips/include/asm/mach-powertv/asic_regs.h index 2657ae6a7ec7..deecb26a077e 100644 --- a/arch/mips/include/asm/mach-powertv/asic_regs.h +++ b/arch/mips/include/asm/mach-powertv/asic_regs.h | |||
@@ -101,6 +101,7 @@ static inline void register_map_virtualize(struct register_map *map) | |||
101 | } | 101 | } |
102 | 102 | ||
103 | extern struct register_map _asic_register_map; | 103 | extern struct register_map _asic_register_map; |
104 | extern unsigned long asic_phy_base; | ||
104 | 105 | ||
105 | /* | 106 | /* |
106 | * Macros to interface to registers through their ioremapped address | 107 | * Macros to interface to registers through their ioremapped address |