clk: ingenic: Make PLL clock enable_bit and stable_bit optional
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Wed, 26 Oct 2022 19:43:41 +0000 (20:43 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 27 Oct 2022 18:59:05 +0000 (11:59 -0700)
commitd84bf9d6308e2606b60bb5b4577f8b9ac295cf0b
tree59d577cecc7305a7e1feb1842916614816b6442e
parent83b975b5aa9522b6d72b2a8c0f3c209726ceb6b3
clk: ingenic: Make PLL clock enable_bit and stable_bit optional

When the enable bit is undefined, the clock is assumed to be always
on and enable/disable is a no-op. When the stable bit is undefined,
the PLL stable check is a no-op.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20221026194345.243007-3-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