aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
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