summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/genesyslogic/gl9763e/gl9763e.c8
-rw-r--r--src/drivers/genesyslogic/gl9763e/gl9763e.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/drivers/genesyslogic/gl9763e/gl9763e.c b/src/drivers/genesyslogic/gl9763e/gl9763e.c
index 48e520bde2..d19cc4ae46 100644
--- a/src/drivers/genesyslogic/gl9763e/gl9763e.c
+++ b/src/drivers/genesyslogic/gl9763e/gl9763e.c
@@ -12,6 +12,8 @@
static void gl9763e_init(struct device *dev)
{
+ uint32_t ver;
+
printk(BIOS_INFO, "GL9763E: init\n");
pci_dev_init(dev);
@@ -25,6 +27,12 @@ static void gl9763e_init(struct device *dev)
pci_update_config32(dev, PLL_CTL_2, ~PLL_CTL_2_MAX_SSC_MASK, MAX_SSC_30000PPM);
/* Enable SSC */
pci_or_config32(dev, PLL_CTL, PLL_CTL_SSC);
+ /* Check chip version */
+ ver = pci_read_config32(dev, HW_VER_2);
+ if ((ver & HW_VER_MASK) == REVISION_03) {
+ /* Set clock source for RX path */
+ pci_update_config32(dev, SD_CLKRX_DLY, ~CLK_SRC_MASK, AFTER_OUTPUT_BUFF);
+ }
/* Set VHS to read-only */
pci_update_config32(dev, VHS, ~VHS_REV_MASK, VHS_REV_R);
}
diff --git a/src/drivers/genesyslogic/gl9763e/gl9763e.h b/src/drivers/genesyslogic/gl9763e/gl9763e.h
index fd9c6ba5c2..5cdaa68b10 100644
--- a/src/drivers/genesyslogic/gl9763e/gl9763e.h
+++ b/src/drivers/genesyslogic/gl9763e/gl9763e.h
@@ -21,3 +21,11 @@
#define PLL_CTL_2 0x93C
#define PLL_CTL_2_MAX_SSC_MASK (0xFFFF << 16)
#define MAX_SSC_30000PPM (0xF5C3 << 16)
+
+#define HW_VER_2 0x8F8
+#define HW_VER_MASK 0xFFFF
+#define REVISION_03 0x0011
+
+#define SD_CLKRX_DLY 0x934
+#define CLK_SRC_MASK (0x3 << 24)
+#define AFTER_OUTPUT_BUFF (0x0 << 24)