From 2be3bdd748e886c1b566d4fd6f4e6ef4e49596ec Mon Sep 17 00:00:00 2001 From: Kevin Chiu Date: Fri, 2 Mar 2018 11:51:28 +0800 Subject: google/snappy: enhance CCD type-A USB 2.0 phy strength Alan(11")/BigDaddy(14") right type-A(port#2), CCD(port#4) are occasionally undetectable. USB 2.0 phy needs an override to enhance drive strength. right type-A port#2 PERPORTPETXISET: 4 PERPORTTXISET: 4 IUSBTXEMPHASISEN: 1 PERPORTTXPEHALF: 0 CCD port#4 PERPORTPETXISET: 7 PERPORTTXISET: 7 IUSBTXEMPHASISEN: 1 PERPORTTXPEHALF: 0 BUG=b:72922816 BRANCH=reef TEST=emerge-snappy coreboot Change-Id: I2b18c11709280d00ec3a6ef10f93a416acb4fb45 Signed-off-by: Kevin Chiu Reviewed-on: https://review.coreboot.org/24969 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- .../google/reef/variants/snappy/mainboard.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/reef/variants/snappy/mainboard.c b/src/mainboard/google/reef/variants/snappy/mainboard.c index 990f483e22..a625c60b6b 100644 --- a/src/mainboard/google/reef/variants/snappy/mainboard.c +++ b/src/mainboard/google/reef/variants/snappy/mainboard.c @@ -89,12 +89,33 @@ void mainboard_devtree_update(struct device *dev) sku_id = variant_board_sku(); switch (sku_id) { + case SKU_ALAN: + cfg->usb2eye[2].Usb20PerPortPeTxiSet = 4; + cfg->usb2eye[2].Usb20PerPortTxiSet = 4; + cfg->usb2eye[2].Usb20IUsbTxEmphasisEn = 1; + cfg->usb2eye[2].Usb20PerPortTxPeHalf = 0; + + cfg->usb2eye[4].Usb20PerPortPeTxiSet = 7; + cfg->usb2eye[4].Usb20PerPortTxiSet = 7; + cfg->usb2eye[4].Usb20IUsbTxEmphasisEn = 1; + cfg->usb2eye[4].Usb20PerPortTxPeHalf = 0; + break; case SKU_BIGDADDY_KBDBKLIGHT: case SKU_BIGDADDY: cfg->usb2eye[1].Usb20PerPortPeTxiSet = 7; cfg->usb2eye[1].Usb20PerPortTxiSet = 1; cfg->usb2eye[1].Usb20IUsbTxEmphasisEn = 3; cfg->usb2eye[1].Usb20PerPortTxPeHalf = 0; + + cfg->usb2eye[2].Usb20PerPortPeTxiSet = 4; + cfg->usb2eye[2].Usb20PerPortTxiSet = 4; + cfg->usb2eye[2].Usb20IUsbTxEmphasisEn = 1; + cfg->usb2eye[2].Usb20PerPortTxPeHalf = 0; + + cfg->usb2eye[4].Usb20PerPortPeTxiSet = 7; + cfg->usb2eye[4].Usb20PerPortTxiSet = 7; + cfg->usb2eye[4].Usb20IUsbTxEmphasisEn = 1; + cfg->usb2eye[4].Usb20PerPortTxPeHalf = 0; break; default: break; -- cgit v1.2.3