diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-06-01 17:52:28 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-11 03:10:48 -0400 |
commit | 6a82e2a83e568dc121326b4bab24035ce7a2f50e (patch) | |
tree | 43a0193fbe852dd0ccc0058eca9c40d692b74a63 /include/linux/platform_data/usb-rcar-phy.h | |
parent | 725bf9dcafe16aa69c8ab34c63ba36c6eb4492f2 (diff) |
phy-rcar-usb: add platform data
Currently the driver hard-codes USBPCTRL0 register to 0. It is wrong since this
register contains board-specific USB ports configuration and so its value should
be somehow passed via the platform data. Add the global header file containing
'struct rcar_phy_platform_data' consisting of the various bit fields describing
USB ports' pin configuration.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'include/linux/platform_data/usb-rcar-phy.h')
-rw-r--r-- | include/linux/platform_data/usb-rcar-phy.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/platform_data/usb-rcar-phy.h b/include/linux/platform_data/usb-rcar-phy.h new file mode 100644 index 000000000000..c49f35ab14c7 --- /dev/null +++ b/include/linux/platform_data/usb-rcar-phy.h | |||
@@ -0,0 +1,26 @@ | |||
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 port1_func:1; /* true: port 1 used by function, false: host */ | ||
17 | unsigned penc1:1; /* Output of the PENC1 pin in function mode */ | ||
18 | struct { /* Overcurrent pin control for ports 0..2 */ | ||
19 | bool select_3_3v:1; /* true: USB_OVCn pin, false: OVCn pin */ | ||
20 | /* Set to false on port 1 in function mode */ | ||
21 | bool active_high:1; /* true: active high, false: active low */ | ||
22 | /* Set to true on port 1 in function mode */ | ||
23 | } ovc_pin[3]; | ||
24 | }; | ||
25 | |||
26 | #endif /* __USB_RCAR_PHY_H */ | ||