[coreboot-gerrit] Change in coreboot[master]: mainboard/google/coral: Add USB2 phy setting override for Santa

Tim Chen (Code Review) gerrit at coreboot.org
Fri Aug 25 05:05:08 CEST 2017


Tim Chen has uploaded this change for review. ( https://review.coreboot.org/21199


Change subject: mainboard/google/coral: Add USB2 phy setting override for Santa
......................................................................

mainboard/google/coral: Add USB2 phy setting override for Santa

In order to pass type C USB2 eye diagram for sku Santa,
USB2 port#1 PHY register needs to be overridden.

port#1:
PERPORTPETXISET = 7
PERPORTTXISET = 2

BUG=b:64880573
BRANCH=master
TEST=emerge-coral coreboot chromeos-bootimage

Change-Id: I07c0b7b0f08263a348befb7d6fd8d01028314470
Signed-off-by: Tim Chen <Tim-Chen at quantatw.com>
---
M src/mainboard/google/reef/variants/coral/mainboard.c
1 file changed, 21 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/21199/1

diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c
index 3da5456..a6f9f81 100644
--- a/src/mainboard/google/reef/variants/coral/mainboard.c
+++ b/src/mainboard/google/reef/variants/coral/mainboard.c
@@ -16,6 +16,8 @@
 #include <stdint.h>
 #include <ec/google/chromeec/ec.h>
 #include "baseboard/variants.h"
+#include <soc/cpu.h>
+#include <soc/intel/apollolake/chip.h>
 
 uint8_t variant_board_sku(void)
 {
@@ -31,3 +33,22 @@
 	*oem_table_id = CONFIG_VARIANT_DIR;
 	*oem_revision = variant_board_sku();
 }
+
+void mainboard_devtree_update(struct device *dev)
+{
+       /* Override dev tree settings per board */
+	struct soc_intel_apollolake_config *cfg = dev->chip_info;
+	uint8_t sku_id;
+
+	sku_id = variant_board_sku();
+
+	switch(sku_id)	{
+	case 2:	//SANTA
+	case 3:	//SANTA
+		cfg->usb2eye[1].Usb20PerPortPeTxiSet = 7;
+		cfg->usb2eye[1].Usb20PerPortTxiSet = 2;
+		break;
+	default:
+		break;
+	}
+}

-- 
To view, visit https://review.coreboot.org/21199
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I07c0b7b0f08263a348befb7d6fd8d01028314470
Gerrit-Change-Number: 21199
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Chen <Tim-Chen at quantatw.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170825/fedc366e/attachment-0001.html>


More information about the coreboot-gerrit mailing list