usb-rcar-phy.h 867 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2013 Renesas Solutions Corp.
  3. * Copyright (C) 2013 Cogent Embedded, Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __USB_RCAR_PHY_H
  10. #define __USB_RCAR_PHY_H
  11. #include <linux/types.h>
  12. struct rcar_phy_platform_data {
  13. bool port1_func:1; /* true: port 1 used by function, false: host */
  14. unsigned penc1:1; /* Output of the PENC1 pin in function mode */
  15. struct { /* Overcurrent pin control for ports 0..2 */
  16. bool select_3_3v:1; /* true: USB_OVCn pin, false: OVCn pin */
  17. /* Set to false on port 1 in function mode */
  18. bool active_high:1; /* true: active high, false: active low */
  19. /* Set to true on port 1 in function mode */
  20. } ovc_pin[3];
  21. };
  22. #endif /* __USB_RCAR_PHY_H */