blob: 8ec6964a32a5233aaf030c7530445c03a1c7a8ea [file] [log] [blame]
Sergei Shtylyov6a82e2a2013-06-02 01:52:28 +04001/*
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
15struct rcar_phy_platform_data {
Sergei Shtylyov54407f12013-06-09 00:34:36 +040016 bool ferrite_bead:1; /* (R8A7778 only) */
17
Sergei Shtylyov6a82e2a2013-06-02 01:52:28 +040018 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 Shtylyov54407f12013-06-09 00:34:36 +040025 } ovc_pin[3]; /* (R8A7778 only has 2 ports) */
Sergei Shtylyov6a82e2a2013-06-02 01:52:28 +040026};
27
28#endif /* __USB_RCAR_PHY_H */