File: usb-rcar-phy.h

package info (click to toggle)
linux-tools 3.16-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 73,776 kB
  • sloc: ansic: 962,256; perl: 14,061; makefile: 6,629; sh: 5,629; cpp: 5,599; python: 4,547; asm: 4,106; yacc: 2,566; lex: 1,436; pascal: 80; awk: 6
file content (28 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (C) 2013 Renesas Solutions Corp.
 * Copyright (C) 2013 Cogent Embedded, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __USB_RCAR_PHY_H
#define __USB_RCAR_PHY_H

#include <linux/types.h>

struct rcar_phy_platform_data {
	bool ferrite_bead:1;	/* (R8A7778 only)			*/

	bool port1_func:1;	/* true: port 1 used by function, false: host */
	unsigned penc1:1;	/* Output of the PENC1 pin in function mode */
	struct {		/* Overcurrent pin control for ports 0..2 */
		bool select_3_3v:1; /* true: USB_OVCn pin, false: OVCn pin */
				/* Set to false on port 1 in function mode */
		bool active_high:1; /* true: active  high, false: active low */
				/* Set to true  on port 1 in function mode */
	} ovc_pin[3];		/* (R8A7778 only has 2 ports)		*/
};

#endif /* __USB_RCAR_PHY_H */