clk: ingenic: Make PLL clock "od" field optional
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Wed, 26 Oct 2022 19:43:40 +0000 (20:43 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 27 Oct 2022 18:59:02 +0000 (11:59 -0700)
commit83b975b5aa9522b6d72b2a8c0f3c209726ceb6b3
tree49abd11af7151c02541c433e58bc036d6e5a207c
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
clk: ingenic: Make PLL clock "od" field optional

Add support for defining PLL clocks with od_bits = 0, meaning that
OD is fixed to 1 and there is no OD field in the register. In this
case od_max must also be 0, which is enforced with BUG_ON().

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20221026194345.243007-2-aidanmacdonald.0x0@gmail.com
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c
drivers/clk/ingenic/cgu.h