clk: rs9: Support device specific dif bit calculation
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Fri, 10 Mar 2023 07:55:34 +0000 (08:55 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 27 Mar 2023 17:50:57 +0000 (10:50 -0700)
commit603df193ec5174ff81c32cf1a78b7819ce984b8c
tree56de12ab5b65fbbc49638be0e8298f2c2bfb59b5
parent51f2be462f70d9c3ef06f6028c21ac8ca00fed1d
clk: rs9: Support device specific dif bit calculation

The calculation DIFx is BIT(n) +1 is only true for 9FGV0241. With
additional devices this is getting more complicated.
Support a base bit for the DIF calculation, currently only devices
with consecutive bits are supported, e.g. the 6-channel device needs
additional logic.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20230310075535.3476580-3-alexander.stein@ew.tq-group.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-renesas-pcie.c