aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-09-25 15:14:02 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 13:21:27 -0500
commite5d3d252d5e06e846d767166e254831b711ee243 (patch)
treefb0d4b75058abf03365d4e056e2d997e86c08d5a /arch/arm/mach-davinci/include
parent371b53e02546dd49249e8a4ffdafcc649b348357 (diff)
davinci: DA8xx: OHCI platform device
Add the function to register the OHCI platform device, given the root hub related platform data passed from the board specific code. The platfrom data provide for overriding the OHCI port power and over-current bits at the board level. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include')
-rw-r--r--arch/arm/mach-davinci/include/mach/da8xx.h2
-rw-r--r--arch/arm/mach-davinci/include/mach/usb.h20
2 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h
index abb8a5b2c692..3b7527324bf4 100644
--- a/arch/arm/mach-davinci/include/mach/da8xx.h
+++ b/arch/arm/mach-davinci/include/mach/da8xx.h
@@ -19,6 +19,7 @@
19#include <mach/emac.h> 19#include <mach/emac.h>
20#include <mach/asp.h> 20#include <mach/asp.h>
21#include <mach/mmc.h> 21#include <mach/mmc.h>
22#include <mach/usb.h>
22 23
23extern void __iomem *da8xx_syscfg_base; 24extern void __iomem *da8xx_syscfg_base;
24 25
@@ -78,6 +79,7 @@ void __init da850_init(void);
78int da8xx_register_edma(void); 79int da8xx_register_edma(void);
79int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata); 80int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata);
80int da8xx_register_watchdog(void); 81int da8xx_register_watchdog(void);
82int da8xx_register_usb11(struct da8xx_ohci_root_hub *pdata);
81int da8xx_register_emac(void); 83int da8xx_register_emac(void);
82int da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata); 84int da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata);
83int da8xx_register_mmcsd0(struct davinci_mmc_config *config); 85int da8xx_register_mmcsd0(struct davinci_mmc_config *config);
diff --git a/arch/arm/mach-davinci/include/mach/usb.h b/arch/arm/mach-davinci/include/mach/usb.h
index d0fb412a9edd..435f2284238a 100644
--- a/arch/arm/mach-davinci/include/mach/usb.h
+++ b/arch/arm/mach-davinci/include/mach/usb.h
@@ -34,4 +34,24 @@
34#define CFGCHIP2_REFFREQ_24MHZ (2 << 0) 34#define CFGCHIP2_REFFREQ_24MHZ (2 << 0)
35#define CFGCHIP2_REFFREQ_48MHZ (3 << 0) 35#define CFGCHIP2_REFFREQ_48MHZ (3 << 0)
36 36
37struct da8xx_ohci_root_hub;
38
39typedef void (*da8xx_ocic_handler_t)(struct da8xx_ohci_root_hub *hub,
40 unsigned port);
41
42/* Passed as the platform data to the OHCI driver */
43struct da8xx_ohci_root_hub {
44 /* Switch the port power on/off */
45 int (*set_power)(unsigned port, int on);
46 /* Read the port power status */
47 int (*get_power)(unsigned port);
48 /* Read the port over-current indicator */
49 int (*get_oci)(unsigned port);
50 /* Over-current indicator change notification (pass NULL to disable) */
51 int (*ocic_notify)(da8xx_ocic_handler_t handler);
52
53 /* Time from power on to power good (in 2 ms units) */
54 u8 potpgt;
55};
56
37#endif /* ifndef __ASM_ARCH_USB_H */ 57#endif /* ifndef __ASM_ARCH_USB_H */