blob: b81b33cac35045b9d0ebf2da3afac33707acc4aa (
plain)
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
29
30
31
32
33
34
|
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* ITE IT5205 Type-C USB alternate mode mux.
*/
#ifndef __CROS_EC_IT5205_H
#define __CROS_EC_IT5205_H
/* I2C interface */
#define IT5205_I2C_ADDR1 (0x48 << 1)
#define IT5205_I2C_ADDR2 (0x58 << 1)
/* Chip ID registers */
#define IT5205_REG_CHIP_ID3 0x4
#define IT5205_REG_CHIP_ID2 0x5
#define IT5205_REG_CHIP_ID1 0x6
#define IT5205_REG_CHIP_ID0 0x7
/* MUX power down register */
#define IT5205_REG_MUXPDR 0x10
#define IT5205_MUX_POWER_DOWN BIT(0)
/* MUX control register */
#define IT5205_REG_MUXCR 0x11
#define IT5205_POLARITY_INVERTED BIT(4)
#define IT5205_DP_USB_CTRL_MASK 0x0f
#define IT5205_DP 0x0f
#define IT5205_DP_USB 0x03
#define IT5205_USB 0x07
#endif /* __CROS_EC_IT5205_H */
|