File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ void CruBar::configure(bool force)
629629 gbt.calibrateGbt (mLinkMap );
630630 Cru::fpllref (mLinkMap , mPdaBar , 2 );
631631 Cru::fpllcal (mLinkMap , mPdaBar );
632+ gbt.resetFifo ();
632633 }
633634 }
634635
Original file line number Diff line number Diff line change @@ -287,5 +287,11 @@ uint32_t Gbt::getTxClockFrequency(Link link) //In Hz
287287 return mPdaBar ->readRegister (address / 4 );
288288}
289289
290+ void Gbt::resetFifo ()
291+ {
292+ mPdaBar ->writeRegister (Cru::Registers::BSP_USER_CONTROL.index , 0x80 );
293+ mPdaBar ->writeRegister (Cru::Registers::BSP_USER_CONTROL.index , 0x0 );
294+ }
295+
290296} // namespace roc
291297} // namespace AliceO2
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class Gbt
4747 LinkStatus getStickyBit (Link link);
4848 uint32_t getRxClockFrequency (Link link);
4949 uint32_t getTxClockFrequency (Link link);
50+ void resetFifo ();
5051
5152 private:
5253 uint32_t getSourceSelectAddress (Link link);
You can’t perform that action at this time.
0 commit comments