blob: e85860f2db92992b90e14b9329efcb215fc5e8e6 (
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
35
36
37
|
/*
* Copyright 2019 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.
*/
/* Nuvoton Type-C port controller */
#ifndef __CROS_EC_USB_PD_TCPM_NCT38XX_H
#define __CROS_EC_USB_PD_TCPM_NCT38XX_H
/* I2C interface */
#define NCT38xx_I2C_ADDR1_1_FLAGS 0x70
#define NCT38xx_I2C_ADDR1_2_FLAGS 0x71
#define NCT38xx_I2C_ADDR1_3_FLAGS 0x72
#define NCT38xx_I2C_ADDR1_4_FLAGS 0x73
#define NCT38xx_I2C_ADDR2_1_FLAGS 0x74
#define NCT38xx_I2C_ADDR2_2_FLAGS 0x75
#define NCT38xx_I2C_ADDR2_3_FLAGS 0x76
#define NCT38xx_I2C_ADDR2_4_FLAGS 0x77
#define NCT38XX_REG_VENDOR_ID_L 0x00
#define NCT38XX_REG_VENDOR_ID_H 0x01
#define NCT38XX_VENDOR_ID 0x0416
#define NCT38XX_PRODUCT_ID 0xC301
#define NCT38XX_REG_CTRL_OUT_EN 0xD2
#define NCT38XX_REG_CTRL_OUT_EN_SRCEN (1 << 0)
#define NCT38XX_REG_CTRL_OUT_EN_FASTEN (1 << 1)
#define NCT38XX_REG_CTRL_OUT_EN_SNKEN (1 << 2)
#define NCT38XX_REG_CTRL_OUT_EN_CONNDIREN (1 << 6)
extern const struct tcpm_drv nct38xx_tcpm_drv;
#endif /* defined(__CROS_EC_USB_PD_TCPM_NCT38XX_H) */
|