ctrl: drive txcomwake and not gtx.txcomwake in K7SATAPHYDeviceCtrl
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 16 Oct 2014 08:38:26 +0000 (10:38 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 16 Oct 2014 08:38:26 +0000 (10:38 +0200)
lib/sata/k7sataphy/ctrl.py

index 8c2d1ebac5562565b7b73e6318366155c629b1e0..d790d384493ba8d7ecb6ced7a01b0db3d339a44e 100644 (file)
@@ -131,7 +131,7 @@ class K7SATAPHYHostCtrl(Module):
                        gtx.txcomwake.eq(txcomwake & ~txcomwake_d),
                ]
 
-               self.comb +=  align_detect.eq(self.rxdata == ALIGN_VAL);        
+               self.comb +=  align_detect.eq(self.rxdata == ALIGN_VAL);
                self.sync += \
                        If(fsm.ongoing("RESET"),
                                align_timeout_cnt.eq(us(873, clk_freq))
@@ -190,7 +190,7 @@ class K7SATAPHYDeviceCtrl(Module):
                        If(gtx.rxcominitdet,
                                NextState("COMINIT")
                        )
-               )       
+               )
                fsm.act("COMINIT",
                        gtx.txelecidle.eq(1),
                        txcominit.eq(1),
@@ -220,7 +220,7 @@ class K7SATAPHYDeviceCtrl(Module):
                )
                fsm.act("COMWAKE",
                        gtx.txelecidle.eq(1),
-                       gtx.txcomwake.eq(1),
+                       txcomwake.eq(1),
                        If(gtx.txcomfinish,
                                NextState("RESET_CRG")
                        )