Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [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 { |
| 16 | bool ferrite_bead:1; /* (R8A7778 only) */ |
| 17 | |
| 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 */ |
| 25 | } ovc_pin[3]; /* (R8A7778 only has 2 ports) */ |
| 26 | }; |
| 27 | |
| 28 | #endif /* __USB_RCAR_PHY_H */ |