blob: 5ea1eebd35549d30c6694890dd93cc2cff92e765 (
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
|
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Analogix Type-C port controller */
#ifndef __CROS_EC_DRIVER_TCPM_ANX7447_PUBLIC_H
#define __CROS_EC_DRIVER_TCPM_ANX7447_PUBLIC_H
#include "usb_mux.h"
#define AN7447_TCPC0_I2C_ADDR_FLAGS 0x2C
#define AN7447_TCPC1_I2C_ADDR_FLAGS 0x2B
#define AN7447_TCPC2_I2C_ADDR_FLAGS 0x2A
#define AN7447_TCPC3_I2C_ADDR_FLAGS 0x29
#define AN7447_SPI0_I2C_ADDR_FLAGS 0x3F
#define AN7447_SPI1_I2C_ADDR_FLAGS 0x37
#define AN7447_SPI2_I2C_ADDR_FLAGS 0x32
#define AN7447_SPI3_I2C_ADDR_FLAGS 0x31
extern const struct tcpm_drv anx7447_tcpm_drv;
extern const struct usb_mux_driver anx7447_usb_mux_driver;
void anx7447_tcpc_update_hpd_status(const struct usb_mux *me,
mux_state_t mux_state, bool *ack_required);
#endif /* __CROS_EC_DRIVER_TCPM_ANX7447_PUBLIC_H */
|