Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ASMARM_ARCH_OHCI_H
0003 #define ASMARM_ARCH_OHCI_H
0004 
0005 struct device;
0006 
0007 struct pxaohci_platform_data {
0008     int (*init)(struct device *);
0009     void (*exit)(struct device *);
0010 
0011     unsigned long flags;
0012 #define ENABLE_PORT1        (1 << 0)
0013 #define ENABLE_PORT2        (1 << 1)
0014 #define ENABLE_PORT3        (1 << 2)
0015 #define ENABLE_PORT_ALL     (ENABLE_PORT1 | ENABLE_PORT2 | ENABLE_PORT3)
0016 
0017 #define POWER_SENSE_LOW     (1 << 3)
0018 #define POWER_CONTROL_LOW   (1 << 4)
0019 #define NO_OC_PROTECTION    (1 << 5)
0020 #define OC_MODE_GLOBAL      (0 << 6)
0021 #define OC_MODE_PERPORT     (1 << 6)
0022 
0023     int power_on_delay; /* Power On to Power Good time - in ms
0024                  * HCD must wait for this duration before
0025                  * accessing a powered on port
0026                  */
0027     int port_mode;
0028 #define PMM_NPS_MODE           1
0029 #define PMM_GLOBAL_MODE        2
0030 #define PMM_PERPORT_MODE       3
0031 
0032     int power_budget;
0033 };
0034 
0035 extern void pxa_set_ohci_info(struct pxaohci_platform_data *info);
0036 
0037 #endif