usb-rcar-phy.h 948 B

12345678910111213141516171819202122232425262728
  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 ferrite_bead:1; /* (R8A7778 only) */
  14. bool port1_func:1; /* true: port 1 used by function, false: host */
  15. unsigned penc1:1; /* Output of the PENC1 pin in function mode */
  16. struct { /* Overcurrent pin control for ports 0..2 */
  17. bool select_3_3v:1; /* true: USB_OVCn pin, false: OVCn pin */
  18. /* Set to false on port 1 in function mode */
  19. bool active_high:1; /* true: active high, false: active low */
  20. /* Set to true on port 1 in function mode */
  21. } ovc_pin[3]; /* (R8A7778 only has 2 ports) */
  22. };
  23. #endif /* __USB_RCAR_PHY_H */