summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-06-24 16:37:50 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-08 03:18:42 +0000
commitff6603b54621276b7236139c050504c74e7ee4cb (patch)
treedbec2d7418303a8d5a10bbd49c62500f0e549b34 /driver
parenta673a273a6a84d6b1df141c3d74d43a0624762f2 (diff)
downloadchrome-ec-ff6603b54621276b7236139c050504c74e7ee4cb.tar.gz
anx7447: expose public header
move i2c device register address and function declarations into public header. BUG=b:227359727 TEST=zmake BRANCH=none Change-Id: I6abf44ed35c48a5a8ff087130867b67c1cc5ec8c Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3721943 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver')
-rw-r--r--driver/tcpm/anx7447.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/driver/tcpm/anx7447.h b/driver/tcpm/anx7447.h
index e2752142d8..761c0e7cbf 100644
--- a/driver/tcpm/anx7447.h
+++ b/driver/tcpm/anx7447.h
@@ -4,6 +4,7 @@
*/
#include "usb_mux.h"
+#include "driver/tcpm/anx7447_public.h"
/* USB Power delivery port management */
@@ -150,16 +151,6 @@ struct anx7447_i2c_addr {
uint16_t spi_addr_flags;
};
-#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
-
/*
* Time TEST_R must be held high for a reset
*/
@@ -176,8 +167,6 @@ int anx7447_board_charging_enable(int port, int enable);
void anx7447_hpd_mode_en(int port);
void anx7447_hpd_output_en(int port);
-extern const struct tcpm_drv anx7447_tcpm_drv;
-extern const struct usb_mux_driver anx7447_usb_mux_driver;
void anx7447_tcpc_clear_hpd_status(int port);
void anx7447_tcpc_update_hpd_status(const struct usb_mux *me,
mux_state_t mux_state, bool *ack_required);