clk: rs9: Replace model check with bitshift from chip data
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 13 Nov 2023 22:18:53 +0000 (23:18 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sun, 17 Dec 2023 23:26:24 +0000 (15:26 -0800)
commitcd9a5c97dfdaeb9c8ac02e14d7ccbd445e8b5265
tree90c2f45bca0ddfdbe043c25b8f3237aac2e67ac1
parent780da7f11a81aab64b90c2c978e2a574c0a59c83
clk: rs9: Replace model check with bitshift from chip data

Adjust rs9_calc_dif() to special-case the 9FGV0241 where DIFx bits
start at 1, encode this shift into chip data and drop the model
check entirely.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Link: https://lore.kernel.org/r/20231113221949.111964-3-marek.vasut+renesas@mailbox.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-renesas-pcie.c