From 387cf90cf8ec1a5e20795c5b79c41fc635f70dfc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 26 Sep 2014 23:27:25 +0200 Subject: [PATCH] host and device communicate with OOB, now need to fix ctrl --- lib/sata/k7sataphy/clocking.py | 4 ++-- lib/sata/k7sataphy/gtx.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sata/k7sataphy/clocking.py b/lib/sata/k7sataphy/clocking.py index 70d49e3a..2192acae 100644 --- a/lib/sata/k7sataphy/clocking.py +++ b/lib/sata/k7sataphy/clocking.py @@ -63,10 +63,10 @@ class K7SATAPHYClocking(Module): i_CLKIN1=mmcm_clk_i, i_CLKFBIN=mmcm_fb, o_CLKFBOUT=mmcm_fb, # CLK0 - p_CLKOUT0_DIVIDE_F=4.000, p_CLKOUT0_PHASE=0.000, o_CLKOUT0=mmcm_clk0_o, + p_CLKOUT0_DIVIDE_F=2.000, p_CLKOUT0_PHASE=0.000, o_CLKOUT0=mmcm_clk0_o, # CLK1 - p_CLKOUT1_DIVIDE=8, p_CLKOUT1_PHASE=0.000, o_CLKOUT1=mmcm_clk1_o, + p_CLKOUT1_DIVIDE=4, p_CLKOUT1_PHASE=0.000, o_CLKOUT1=mmcm_clk1_o, ), Instance("BUFG", i_I=mmcm_clk0_o, o_O=self.cd_sata_tx.clk), Instance("BUFG", i_I=mmcm_clk1_o, o_O=self.cd_sata.clk), diff --git a/lib/sata/k7sataphy/gtx.py b/lib/sata/k7sataphy/gtx.py index edd52538..c59f24ff 100644 --- a/lib/sata/k7sataphy/gtx.py +++ b/lib/sata/k7sataphy/gtx.py @@ -209,7 +209,7 @@ class K7SATAPHYGTX(Module): # PMA Attributes "p_OUTREFCLK_SEL_INV":0b11, - "p_PMA_RSV":0, + "p_PMA_RSV":0x00018480, "p_PMA_RSV2":0x2050, "p_PMA_RSV3":0, "p_PMA_RSV4":0, @@ -230,7 +230,7 @@ class K7SATAPHYGTX(Module): "p_PCS_PCIE_EN":"FALSE", # PCS Attributes - "p_PCS_RSVD_ATTR":0, + "p_PCS_RSVD_ATTR":0x100, # RX Buffer Attributes "p_RXBUF_ADDR_MODE":"FAST", -- 2.30.2