diff options
author | ren kuo <ren.kuo@quantatw.com> | 2017-10-23 14:44:31 +0800 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-10-23 15:12:10 +0000 |
commit | 2f1b7aaa3ef69ff6c79bedc9025dcb437535cd16 (patch) | |
tree | 80b59168f68474ef8e3a58c3b13633ed3cbc7840 /src/mainboard/google | |
parent | bb98b38b93d1f01fd3cd71c9e27ddbf4d3f1d244 (diff) | |
download | coreboot-2f1b7aaa3ef69ff6c79bedc9025dcb437535cd16.tar.xz |
mainboard/google/coral: Add USB2 phy setting override for Astronaut
In order to pass type C USB2 eye diagram for sku Astronaut,
USB2 port#1 PHY register needs to be overridden.
sku ID:0,1 Astronaut (USB)
port#1:
PERPORTPETXISET = 7
PERPORTTXISET = 2
sku ID:61,62 Astronaut (LTE)
port#1:
PERPORTPETXISET = 7
PERPORTTXISET = 5
BUG=b:68120012
BRANCH=master
TEST=emerge-coral coreboot chromeos-bootimage
Change-Id: Icf5c9e5f4dae15630ec4d6ca6648cae78ca910c6
Signed-off-by: Ren Kuo <ren.kuo@quantatw.com>
Reviewed-on: https://review.coreboot.org/22135
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/reef/variants/coral/mainboard.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c index 805c153330..853276ede0 100644 --- a/src/mainboard/google/reef/variants/coral/mainboard.c +++ b/src/mainboard/google/reef/variants/coral/mainboard.c @@ -21,8 +21,12 @@ #include <soc/intel/common/vbt.h> enum { + SKU_0_ASTRONAUT = 0, + SKU_1_ASTRONAUT = 1, SKU_2_SANTA = 2, SKU_3_SANTA = 3, + SKU_61_ASTRONAUT = 61, + SKU_62_ASTRONAUT = 62, SKU_160_NASHER = 160, SKU_161_NASHER = 161, SKU_162_NASHER = 162, @@ -60,11 +64,21 @@ void mainboard_devtree_update(struct device *dev) sku_id = variant_board_sku(); switch (sku_id) { + case SKU_0_ASTRONAUT: + case SKU_1_ASTRONAUT: + cfg->usb2eye[1].Usb20PerPortPeTxiSet = 7; + cfg->usb2eye[1].Usb20PerPortTxiSet = 2; + break; case SKU_2_SANTA: case SKU_3_SANTA: cfg->usb2eye[1].Usb20PerPortPeTxiSet = 7; cfg->usb2eye[1].Usb20PerPortTxiSet = 2; break; + case SKU_61_ASTRONAUT: + case SKU_62_ASTRONAUT: + cfg->usb2eye[1].Usb20PerPortPeTxiSet = 7; + cfg->usb2eye[1].Usb20PerPortTxiSet = 5; + break; default: break; } |