clk: ingenic: Support overriding PLLs M/N/OD calc algorithm
authorPaul Cercueil <paul@crapouillou.net>
Sun, 30 May 2021 16:49:22 +0000 (17:49 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 28 Jun 2021 02:49:18 +0000 (19:49 -0700)
commitb60b0b55926bea93c0f00000ac884fa1b3c9a492
tree87c2ec2a48364d55fceaf8f965159376cb71ebb9
parent037f1ffd0f0a6bad89e17aa4698c97ef430c6ad1
clk: ingenic: Support overriding PLLs M/N/OD calc algorithm

SoC-specific code can now provide a callback if they need to compute the
M/N/OD values in a specific way.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: 周琰杰 (Zhou Yanjie)<zhouyanjie@wanyeetech.com> # on CU1000-neo/X1000E
Link: https://lore.kernel.org/r/20210530164923.18134-6-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c
drivers/clk/ingenic/cgu.h