Path: blob/master/arch/arm/mach-pxa/include/mach/ohci.h
10820 views
#ifndef ASMARM_ARCH_OHCI_H1#define ASMARM_ARCH_OHCI_H23struct device;45struct pxaohci_platform_data {6int (*init)(struct device *);7void (*exit)(struct device *);89unsigned long flags;10#define ENABLE_PORT1 (1 << 0)11#define ENABLE_PORT2 (1 << 1)12#define ENABLE_PORT3 (1 << 2)13#define ENABLE_PORT_ALL (ENABLE_PORT1 | ENABLE_PORT2 | ENABLE_PORT3)1415#define POWER_SENSE_LOW (1 << 3)16#define POWER_CONTROL_LOW (1 << 4)17#define NO_OC_PROTECTION (1 << 5)18#define OC_MODE_GLOBAL (0 << 6)19#define OC_MODE_PERPORT (1 << 6)2021int power_on_delay; /* Power On to Power Good time - in ms22* HCD must wait for this duration before23* accessing a powered on port24*/25int port_mode;26#define PMM_NPS_MODE 127#define PMM_GLOBAL_MODE 228#define PMM_PERPORT_MODE 32930int power_budget;31};3233extern void pxa_set_ohci_info(struct pxaohci_platform_data *info);3435#endif363738