Merge pull request #419 from trabucayre/tang_primer_20k_fix_clkdiv

targets/sipeed_tang_primer_20k: fix CLKDIV (disable reset and calibration)
This commit is contained in:
enjoy-digital 2022-08-31 21:54:28 +02:00 committed by GitHub
commit 60c427ad83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ class _CRG(Module):
video_pll.create_clkout(self.cd_hdmi5x, 125e6) video_pll.create_clkout(self.cd_hdmi5x, 125e6)
self.specials += Instance("CLKDIV", self.specials += Instance("CLKDIV",
p_DIV_MODE= "5", p_DIV_MODE= "5",
i_RESETN = 1, # disable reset signal
i_CALIB = 0, # no calibration
i_HCLKIN = self.cd_hdmi5x.clk, i_HCLKIN = self.cd_hdmi5x.clk,
o_CLKOUT = self.cd_hdmi.clk o_CLKOUT = self.cd_hdmi.clk
) )