mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
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>
This commit is contained in:
parent
5089ca9d31
commit
0d365753d0
5 changed files with 432 additions and 229 deletions
|
@ -20,6 +20,7 @@
|
|||
#define _ASM_MACH_POWERTV_ASIC_H
|
||||
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <asm/mach-powertv/asic_regs.h>
|
||||
|
||||
#define DVR_CAPABLE (1<<0)
|
||||
|
@ -71,16 +72,24 @@ extern int platform_supports_ffs(void);
|
|||
extern int platform_supports_pcie(void);
|
||||
extern int platform_supports_display(void);
|
||||
extern void configure_platform(void);
|
||||
extern void platform_configure_usb_ehci(void);
|
||||
extern void platform_unconfigure_usb_ehci(void);
|
||||
extern void platform_configure_usb_ohci(void);
|
||||
extern void platform_unconfigure_usb_ohci(void);
|
||||
|
||||
/* Platform Resources */
|
||||
#define ASIC_RESOURCE_GET_EXISTS 1
|
||||
extern struct resource *asic_resource_get(const char *name);
|
||||
extern void platform_release_memory(void *baddr, int size);
|
||||
|
||||
/* USB configuration */
|
||||
struct usb_hcd; /* Forward reference */
|
||||
extern void platform_configure_usb_ehci(void);
|
||||
extern void platform_unconfigure_usb_ehci(void);
|
||||
extern void platform_configure_usb_ohci(void);
|
||||
extern void platform_unconfigure_usb_ohci(void);
|
||||
|
||||
/* Resource for ASIC registers */
|
||||
extern struct resource asic_resource;
|
||||
extern int platform_usb_devices_init(struct platform_device **echi_dev,
|
||||
struct platform_device **ohci_dev);
|
||||
|
||||
/* Reboot Cause */
|
||||
extern void set_reboot_cause(char code, unsigned int data, unsigned int data2);
|
||||
extern void set_locked_reboot_cause(char code, unsigned int data,
|
||||
|
|
|
@ -101,6 +101,7 @@ static inline void register_map_virtualize(struct register_map *map)
|
|||
}
|
||||
|
||||
extern struct register_map _asic_register_map;
|
||||
extern unsigned long asic_phy_base;
|
||||
|
||||
/*
|
||||
* Macros to interface to registers through their ioremapped address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue