host and device communicate with OOB, now need to fix ctrl
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 26 Sep 2014 21:27:25 +0000 (23:27 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 26 Sep 2014 21:30:30 +0000 (23:30 +0200)
lib/sata/k7sataphy/clocking.py
lib/sata/k7sataphy/gtx.py

index 70d49e3a5ab250d9e3b383435adc11ee7f5b8a36..2192acaefe3a1e9ffeee768560d1feabc22f98fd 100644 (file)
@@ -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),
index edd52538824f2d4b5395d68e72766bc1c8b2ab9f..c59f24ff07a0811e1c6b0b5a15583bcffc2fa39e 100644 (file)
@@ -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",