aboutsummaryrefslogtreecommitdiff
path: root/include/dt-bindings/usb/typec.h
blob: 82ea851a0fb1064826fdfee3f12ca461d07ac017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (C) 2018 Google, Inc.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 */

#ifndef _DT_BINDINGS_USB_TYPEC
#define _DT_BINDINGS_USB_TYPEC

#define TYPEC_PORT_DFP	0x0
#define TYPEC_PORT_UFP	0x1
#define TYPEC_PORT_DRP	0x2

#define PDO_TYPE_FIXED	0x0
#define PDO_TYPE_BATT	0x1
#define PDO_TYPE_VAR	0x2

#define TYPEC_SINK	0x0
#define TYPEC_SOURCE	0x1

#endif /* _DT_BINDINGS_USB_TYPEC */