ohci.h 886 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef ASMARM_ARCH_OHCI_H
  2. #define ASMARM_ARCH_OHCI_H
  3. struct device;
  4. struct pxaohci_platform_data {
  5. int (*init)(struct device *);
  6. void (*exit)(struct device *);
  7. unsigned long flags;
  8. #define ENABLE_PORT1 (1 << 0)
  9. #define ENABLE_PORT2 (1 << 1)
  10. #define ENABLE_PORT3 (1 << 2)
  11. #define ENABLE_PORT_ALL (ENABLE_PORT1 | ENABLE_PORT2 | ENABLE_PORT3)
  12. #define POWER_SENSE_LOW (1 << 3)
  13. #define POWER_CONTROL_LOW (1 << 4)
  14. #define NO_OC_PROTECTION (1 << 5)
  15. #define OC_MODE_GLOBAL (0 << 6)
  16. #define OC_MODE_PERPORT (1 << 6)
  17. int power_on_delay; /* Power On to Power Good time - in ms
  18. * HCD must wait for this duration before
  19. * accessing a powered on port
  20. */
  21. int port_mode;
  22. #define PMM_NPS_MODE 1
  23. #define PMM_GLOBAL_MODE 2
  24. #define PMM_PERPORT_MODE 3
  25. int power_budget;
  26. };
  27. extern void pxa_set_ohci_info(struct pxaohci_platform_data *info);
  28. #endif