Allwinner clock changes for 4.16

Fixed-post-divider support is added for two types of our clocks.
 This in turn is used to support odd clocks on some of our SoCs.
 On the A64, the MMC module clocks have a hidden post-divider.
 On the A83T, a post-divider is needed to support programming
 sigma-delta modulation with known fixed parameters from the
 BSP kernel for the audio PLL.
 
 There's also a small cleanup to use the shorter PTR_ERR_OR_ZERO
 macro in various functions.
 -----BEGIN PGP SIGNATURE-----
 
 iQJCBAABCgAsFiEE2nN1m/hhnkhOWjtHOJpUIZwPJDAFAlpEkeEOHHdlbnNAY3Np
 ZS5vcmcACgkQOJpUIZwPJDBpwhAAlWd2kbzI/lLevi69wXOsVH2keWfnD8Pr8DxJ
 4aONajdldN9RfCCaeJtYhqCDW5rEvAJH88msVH0IYwy8NbeWSPAxDyQX5WW3Ugj8
 UUmm+fWcoTY9ePJ3lFDgx2LzI7zyolzsSuqk93lVZi8fi1xUYQ4e/Z7fHj9ONNXD
 1xjPmHU1SXwtrufJ2qIE35K2zCmCnlgIITO8uGPwppg03sLfkSnOLvrCzYhlKv1r
 xqfncyLQdg/XOONV9QYDtn3b2M9A+CYqV6eojqbZFFFbOkqqaSyfGJ8T7o/nEd4n
 k+QmDwg5AqQadWPPScddw+AIeyDD2FhMFhWu7+3A09iMHom+BrMm5QRChRBDwnmI
 sFoLoMmfjCjVvrvZI/R4tGfKyAJFyQ6fEwz6yuCNt8DWwfkE1yrOmK8uZUiQMZeq
 0R1AOVbTzM5a0X35OWJK5wV5Pa1rwu4bSup9QVYYzIjYW4ZWVVaQBYONmuUlVPhI
 lavgvD+C5BoiW2QFr54yJrDwTPifuh9k5I6rKMCUSbktmgE/3xuRX04RuGvyFO30
 vJP2QxA2D+0I6ItqAAz7CaGzb2QOB4eBk0ayXNT5Sjcp8dU1pClVZtPVUCpgpJ/F
 2/CzPqr1qnUPJJ+W6hy1AXl6mVah5eAIlmRDAwVDrHlYrNVNtU1AbxQrZaymAu87
 3ntffVk=
 =IevL
 -----END PGP SIGNATURE-----

Merge tag 'sunxi-clk-for-4.16' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-allwinner

Pull Allwinner clock changes from Chen-Yu Tsai:

 "Fixed-post-divider support is added for two types of our clocks.
  This in turn is used to support odd clocks on some of our SoCs.
  On the A64, the MMC module clocks have a hidden post-divider.
  On the A83T, a post-divider is needed to support programming
  sigma-delta modulation with known fixed parameters from the
  BSP kernel for the audio PLL.

  There's also a small cleanup to use the shorter PTR_ERR_OR_ZERO
  macro in various functions."

* tag 'sunxi-clk-for-4.16' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
  clk: sunxi-ng: sun8i: a83t: Use sigma-delta modulation for audio PLL
  clk: sunxi-ng: sun8i: a83t: Add /2 fixed post divider to audio PLL
  clk: sunxi-ng: Support fixed post-dividers on NM style clocks
  clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks
  clk: sunxi-ng: Support fixed post-dividers on MP style clocks
  clk: sunxi: Use PTR_ERR_OR_ZERO()
This commit is contained in:
Stephen Boyd 2017-12-28 10:46:56 -08:00
commit d96f2cf937
7 changed files with 134 additions and 42 deletions