diff options
author | Simon Glass <sjg@chromium.org> | 2021-04-13 09:20:22 +1200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-13 05:08:30 +0000 |
commit | b228100c852e47be7171bff2abee4be46b5f3d7b (patch) | |
tree | 4026995edb06866bb228bf5e2e44199afb25451f | |
parent | 2a326d781afaedc10c67012cd5f135f8e1f4e0f0 (diff) | |
download | chrome-ec-b228100c852e47be7171bff2abee4be46b5f3d7b.tar.gz |
Export even more symbols from ps8xxx
It turns out we need more symbols for some boards, such as when the
board_get_ps8xxx_product_id() function is implemented.
Export some more things.
BUG=b:183296099
BRANCH=none
TEST=make BOARD=lazor -j30
Build lazor on zephyr
Change-Id: Iccef72582f6033a1a34abe28a636ebe254f1bd5a
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822390
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | driver/tcpm/ps8xxx.h | 9 | ||||
-rw-r--r-- | include/driver/tcpm/ps8xxx_public.h | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/driver/tcpm/ps8xxx.h b/driver/tcpm/ps8xxx.h index eb5bd3e82d..1f3d2d9b88 100644 --- a/driver/tcpm/ps8xxx.h +++ b/driver/tcpm/ps8xxx.h @@ -44,15 +44,6 @@ #define PS8XXX_P1_REG_MUX_USB_DCI_CFG 0x4B -/* NOTE: The Product ID will read as 0x8803 if the firmware has malfunctioned in - * 8705, 8755 and 8805. - */ -#define PS8705_PRODUCT_ID 0x8705 -#define PS8751_PRODUCT_ID 0x8751 -#define PS8755_PRODUCT_ID 0x8755 -#define PS8805_PRODUCT_ID 0x8805 -#define PS8815_PRODUCT_ID 0x8815 - #if defined(CONFIG_USB_PD_TCPM_PS8751) /* Vendor defined registers */ #define PS8XXX_REG_VENDOR_ID_L 0x00 diff --git a/include/driver/tcpm/ps8xxx_public.h b/include/driver/tcpm/ps8xxx_public.h index f12e009670..d84b63eb9a 100644 --- a/include/driver/tcpm/ps8xxx_public.h +++ b/include/driver/tcpm/ps8xxx_public.h @@ -41,6 +41,15 @@ struct usb_mux; */ #define PS8815_FW_INIT_DELAY_MS 40 +/* NOTE: The Product ID will read as 0x8803 if the firmware has malfunctioned in + * 8705, 8755 and 8805. + */ +#define PS8705_PRODUCT_ID 0x8705 +#define PS8751_PRODUCT_ID 0x8751 +#define PS8755_PRODUCT_ID 0x8755 +#define PS8805_PRODUCT_ID 0x8805 +#define PS8815_PRODUCT_ID 0x8815 + extern const struct tcpm_drv ps8xxx_tcpm_drv; /** |