diff options
Diffstat (limited to 'arch/mips/include')
-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 |