mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
tcpm: anx74xx: Improve CC eye diagram
BUG=None TEST=Observe improvement on CC eye diagram BRANCH=None Change-Id: Ic7ab68427eb235c889c547a7d2a485047edce77d Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/358104 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
3f9ee35859
commit
e186c770f7
@@ -778,6 +778,14 @@ int anx74xx_tcpm_init(int port)
|
||||
/* HPD pin output enable*/
|
||||
rv |= tcpc_write(port, ANX74XX_REG_HPD_CTRL_0, ANX74XX_REG_HPD_DEFAULT);
|
||||
|
||||
if (rv)
|
||||
return EC_ERROR_UNKNOWN;
|
||||
|
||||
/* Decrease BMC TX lowest swing voltage */
|
||||
rv |= tcpc_read(port, ANX74XX_REG_ANALOG_CTRL_11, ®);
|
||||
if (rv)
|
||||
return EC_ERROR_UNKNOWN;
|
||||
rv = tcpc_write(port, ANX74XX_REG_ANALOG_CTRL_11, (reg & 0x3f) | 0x40);
|
||||
if (rv)
|
||||
return EC_ERROR_UNKNOWN;
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@
|
||||
#define ANX74XX_REG_AUX_SWAP_SET_CC1 0x30
|
||||
#define ANX74XX_REG_AUX_SWAP_SET_CC2 0xc0
|
||||
|
||||
#define ANX74XX_REG_ANALOG_CTRL_11 0x4c
|
||||
|
||||
#define ANX74XX_REG_MUX_DP_MODE_ACE_CC1 0x49
|
||||
#define ANX74XX_REG_MUX_DP_MODE_ACE_CC2 0x86
|
||||
#define ANX74XX_REG_MUX_DP_MODE_BDF_CC1 0x61
|
||||
|
||||
Reference in New Issue
Block a user