usb3503.h 422 B

123456789101112131415161718192021222324
  1. #ifndef __USB3503_H__
  2. #define __USB3503_H__
  3. #define USB3503_I2C_NAME "usb3503"
  4. #define USB3503_OFF_PORT1 (1 << 1)
  5. #define USB3503_OFF_PORT2 (1 << 2)
  6. #define USB3503_OFF_PORT3 (1 << 3)
  7. enum usb3503_mode {
  8. USB3503_MODE_UNKNOWN,
  9. USB3503_MODE_HUB,
  10. USB3503_MODE_STANDBY,
  11. };
  12. struct usb3503_platform_data {
  13. enum usb3503_mode initial_mode;
  14. u8 port_off_mask;
  15. int gpio_intn;
  16. int gpio_connect;
  17. int gpio_reset;
  18. };
  19. #endif