Sergei Shtylyov | 6a82e2a | 2013-06-02 01:52:28 +0400 | [diff] [blame] | 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 | |
| 10 | #ifndef __USB_RCAR_PHY_H |
| 11 | #define __USB_RCAR_PHY_H |
| 12 | |
| 13 | #include <linux/types.h> |
| 14 | |
| 15 | struct rcar_phy_platform_data { |
Sergei Shtylyov | 54407f1 | 2013-06-09 00:34:36 +0400 | [diff] [blame] | 16 | bool ferrite_bead:1; /* (R8A7778 only) */ |
| 17 | |
Sergei Shtylyov | 6a82e2a | 2013-06-02 01:52:28 +0400 | [diff] [blame] | 18 | bool port1_func:1; /* true: port 1 used by function, false: host */ |
| 19 | unsigned penc1:1; /* Output of the PENC1 pin in function mode */ |
| 20 | struct { /* Overcurrent pin control for ports 0..2 */ |
| 21 | bool select_3_3v:1; /* true: USB_OVCn pin, false: OVCn pin */ |
| 22 | /* Set to false on port 1 in function mode */ |
| 23 | bool active_high:1; /* true: active high, false: active low */ |
| 24 | /* Set to true on port 1 in function mode */ |
Sergei Shtylyov | 54407f1 | 2013-06-09 00:34:36 +0400 | [diff] [blame] | 25 | } ovc_pin[3]; /* (R8A7778 only has 2 ports) */ |
Sergei Shtylyov | 6a82e2a | 2013-06-02 01:52:28 +0400 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | #endif /* __USB_RCAR_PHY_H */ |