summaryrefslogtreecommitdiff
path: root/driver/tcpm/tusb422.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-30 15:59:04 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-07 04:13:11 +0000
commitf171bb5d3b0749d63e5fa49d0e16faa518fb0347 (patch)
tree4d507c7fce0a4493edcc10a3c93cc9edee1dddb5 /driver/tcpm/tusb422.h
parentd8646a8aae7dcd621018472cf8166422f9b66d07 (diff)
downloadchrome-ec-f171bb5d3b0749d63e5fa49d0e16faa518fb0347.tar.gz
Create public headers for a few PPC/TCPM drivers
At present boards includes the private header of some of the drivers. This is not ideal but it works. For Zephyr we don't really want to access headers in private driver directories. Instead, create public headers for the five drivers needed by the Zephyr volteer build. For now, include the public header in the private header (the one included by the EC code), so that fewer code changes are required. BUG=b:175434113 BRANCH=none TEST=make buildall -j30 (way too verbose to see what is happening) build volteer on zephyr Change-Id: I5b810f53cdf545a885f3977849f9f2ca1d04d60a Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2607506 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/tcpm/tusb422.h')
-rw-r--r--driver/tcpm/tusb422.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/driver/tcpm/tusb422.h b/driver/tcpm/tusb422.h
index 54ae0c7e02..3d2006b2c3 100644
--- a/driver/tcpm/tusb422.h
+++ b/driver/tcpm/tusb422.h
@@ -8,8 +8,7 @@
#ifndef __CROS_EC_USB_PD_TCPM_TUSB422_H
#define __CROS_EC_USB_PD_TCPM_TUSB422_H
-/* I2C interface */
-#define TUSB422_I2C_ADDR_FLAGS 0x20
+#include "driver/tcpm/tusb422_public.h"
#define TUSB422_REG_VENDOR_INTERRUPTS_STATUS 0x90
#define TUSB422_REG_VENDOR_INTERRUPTS_STATUS_FRS_RX BIT(0)
@@ -23,6 +22,4 @@
#define TUSB422_REG_PHY_BMC_RX_CTRL 0x96
#define TUSB422_REG_PHY_BMC_RX_CTRL_FRS_RX_EN BIT(3)
-extern const struct tcpm_drv tusb422_tcpm_drv;
-
#endif /* defined(__CROS_EC_USB_PD_TCPM_TUSB422_H) */