usb-ohci-pxa27x.h 925 B

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