summaryrefslogtreecommitdiff
path: root/board/voxel/board.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-08-20 20:28:52 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-25 18:54:34 +0000
commite8873c81d0ea3ee44a649ec8cbc362a44459d373 (patch)
treebb827fa67b32fa81d837f7b7c8c48ad07aefe25a /board/voxel/board.c
parent81f396b4576d0ab6535dcbb0d06d76caa12d34ea (diff)
downloadchrome-ec-e8873c81d0ea3ee44a649ec8cbc362a44459d373.tar.gz
bb retimer: Use mutex to lock the access to shared NVM
If the BB retimer has a shared NVM we need 40ms delay after releasing the RESET line to synchronize, load and initialize both the retimers. On a non-shared NVM we need 20ms delay to load and initialize. In order to synchronize, instead of 40ms delay this CL uses a MUTEX to lock the access of another retimer by not releasing the RESET line until the first retimer completes initialization. BUG=b:165895649 BRANCH=none TEST=Tested on volteer(non shared NVM), tglrvpu_ite (shared NVM) Retimer is able to initialize (DP, USB, TBT, USB4 are detected) Change-Id: I709377c2e6401faa26871289143d71665ee516d1 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2368223 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voxel/board.c')
-rw-r--r--board/voxel/board.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/board/voxel/board.c b/board/voxel/board.c
index 66015c522d..a46bf3ee83 100644
--- a/board/voxel/board.c
+++ b/board/voxel/board.c
@@ -236,7 +236,6 @@ __override void board_cbi_init(void)
setup_mux();
/* Reassign USB_C0_RT_RST_ODL */
- bb_controls[USBC_PORT_C0].shared_nvm = false;
bb_controls[USBC_PORT_C0].usb_ls_en_gpio = GPIO_USB_C0_LS_EN;
bb_controls[USBC_PORT_C0].retimer_rst_gpio = GPIO_USB_C0_RT_RST_ODL;
}