diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-07-08 16:38:55 +1000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-14 02:49:07 +0000 |
commit | 004d06ad7631ec995168add25df31926d0540593 (patch) | |
tree | 0b9080dd89cfecfb62c0095b2737ee57c29f4a55 /zephyr/shim | |
parent | 4c0ae8814a68f2c2655ebb0b3b80ec4529d07cb3 (diff) | |
download | chrome-ec-004d06ad7631ec995168add25df31926d0540593.tar.gz |
ps8xxx: add support for PS8745
The PS8745 is broadly identical to the PS8815, to the point that some
firmware versions of PS8745.A2 claim to be PS8815.A2. A workaround is
included to check whether a device is PS8815 or PS8745 and correct the
device IDs if needed.
BUG=b:236761058,b:237593618
TEST=PS8745-A2 now reports correct IDs on Nereid and USB port
still works.
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I5d0542ef00956414854e6a38b1d127294cb3df0b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3752425
Reviewed-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr/shim')
-rw-r--r-- | zephyr/shim/include/config_chip.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index deb6340dd5..f2864dddb3 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -1307,6 +1307,16 @@ extern struct jump_data mock_jump_data; #define CONFIG_USB_PD_TCPM_NCT38XX #endif +#undef CONFIG_USB_PD_TCPM_PS8745 +#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8745 +#define CONFIG_USB_PD_TCPM_PS8745 +#endif + +#undef CONFIG_USB_PD_TCPM_PS8745_FORCE_ID +#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8745_FORCE_ID +#define CONFIG_USB_PD_TCPM_PS8745_FORCE_ID +#endif + #undef CONFIG_USB_PD_TCPM_PS8751 #ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8751 #define CONFIG_USB_PD_TCPM_PS8751 |