clk: bcm: rpi: Add variant structure
authorMaxime Ripard <maxime@cerno.tech>
Mon, 17 Jan 2022 16:19:30 +0000 (17:19 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 22 Apr 2022 09:17:27 +0000 (10:17 +0100)
commit104210f8b6827a33b63c5785c76f114ef71938db
tree3af51a763276c18868e19b56574f5635f4249079
parent1a5a3768ce8ebc3819c53b6fcd92e615a990cb09
clk: bcm: rpi: Add variant structure

We only export a bunch of firmware clocks, and some of them require
special treatment.

This has been do so far using some tests on the clock id in various
places, but this is fairly hard to extend and doesn't scale very well.

Since we'll need some more cases in the next patches, let's switch to a
variant structure that defines the behaviour we need to have for a given
clock.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/clk/bcm/clk-raspberrypi.c