Page MenuHomeFreeBSD

jz4780: fix clk_gen divider calculation and rounding
ClosedPublic

Authored by jmcneill on Dec 14 2016, 1:49 AM.
Tags
Referenced Files
F169484808: D8784.id23119.diff
Tue, Sep 1, 4:18 PM
F169453702: D8784.id22896.diff
Tue, Sep 1, 2:11 PM
Unknown Object (File)
Sun, Aug 30, 9:04 PM
Unknown Object (File)
Sat, Aug 29, 2:06 PM
Unknown Object (File)
Sat, Aug 29, 1:33 PM
Unknown Object (File)
Fri, Aug 28, 5:44 PM
Unknown Object (File)
Fri, Aug 21, 7:53 PM
Unknown Object (File)
Thu, Aug 20, 4:00 PM
Subscribers

Details

Summary

jz4780_clk_gen_set_freq always sets a frequency >= target. Included:

  • By default choose the closest matching divider instead of one that results in a frequency >= target
  • Fix inverted rounding logic

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmcneill retitled this revision from to jz4780: fix clk_gen divider calculation and rounding.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added a reviewer: kan.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added a project: MIPS.

I just can say that I saw some problem in that area configuring MMC device for X1000 processor a month ago and was thinking about similar change.

kan edited edge metadata.
This revision is now accepted and ready to land.Dec 17 2016, 9:29 PM
This revision was automatically updated to reflect the committed changes.