aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorDavid VomLehn <dvomlehn@cisco.com>2010-08-02 21:40:58 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:26:34 -0400
commit0d365753d0b7c26043fdfa97790411606fb40112 (patch)
tree8ad3a06bf6c5299151a611d55c7e5b2a5d63fec6 /arch/mips/include
parent5089ca9d31b0250f42ccd0e0a41b3547f22a20a0 (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')
-rw-r--r--arch/mips/include/asm/mach-powertv/asic.h17
-rw-r--r--arch/mips/include/asm/mach-powertv/asic_regs.h1
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);
71extern int platform_supports_pcie(void); 72extern int platform_supports_pcie(void);
72extern int platform_supports_display(void); 73extern int platform_supports_display(void);
73extern void configure_platform(void); 74extern void configure_platform(void);
74extern void platform_configure_usb_ehci(void);
75extern void platform_unconfigure_usb_ehci(void);
76extern void platform_configure_usb_ohci(void);
77extern 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
81extern struct resource *asic_resource_get(const char *name); 78extern struct resource *asic_resource_get(const char *name);
82extern void platform_release_memory(void *baddr, int size); 79extern void platform_release_memory(void *baddr, int size);
83 80
81/* USB configuration */
82struct usb_hcd; /* Forward reference */
83extern void platform_configure_usb_ehci(void);
84extern void platform_unconfigure_usb_ehci(void);
85extern void platform_configure_usb_ohci(void);
86extern void platform_unconfigure_usb_ohci(void);
87
88/* Resource for ASIC registers */
89extern struct resource asic_resource;
90extern int platform_usb_devices_init(struct platform_device **echi_dev,
91 struct platform_device **ohci_dev);
92
84/* Reboot Cause */ 93/* Reboot Cause */
85extern void set_reboot_cause(char code, unsigned int data, unsigned int data2); 94extern void set_reboot_cause(char code, unsigned int data, unsigned int data2);
86extern void set_locked_reboot_cause(char code, unsigned int data, 95extern 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
103extern struct register_map _asic_register_map; 103extern struct register_map _asic_register_map;
104extern 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