Message ID | 20220428065743.94967-4-iivanov@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | clk: bcm: rpi: Add support for three more clocks | expand |
On Thu, Apr 28, 2022 at 09:57:43AM +0300, Ivan T. Ivanov wrote: > From: Dom Cobley <popcornmix@gmail.com> > > Platform driver clk-bcm2835 gets an inaccurate clock for VEC (107MHz). > Export VEC clock trough clk-raspberrypi which uses the right PLL to > get an accurate 108MHz. > > Signed-off-by: Dom Cobley <popcornmix@gmail.com> > [iivanov: Adapted on top of v5.17-rc6] > Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> Acked-by: Maxime Ripard <maxime@cerno.tech> Maxime
diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index 530820d13104..d1dd01580573 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -33,6 +33,7 @@ enum rpi_firmware_clk_id { RPI_FIRMWARE_EMMC2_CLK_ID, RPI_FIRMWARE_M2MC_CLK_ID, RPI_FIRMWARE_PIXEL_BVB_CLK_ID, + RPI_FIRMWARE_VEC_CLK_ID, RPI_FIRMWARE_NUM_CLK_ID, }; @@ -51,6 +52,7 @@ static char *rpi_firmware_clk_names[] = { [RPI_FIRMWARE_EMMC2_CLK_ID] = "emmc2", [RPI_FIRMWARE_M2MC_CLK_ID] = "m2mc", [RPI_FIRMWARE_PIXEL_BVB_CLK_ID] = "pixel-bvb", + [RPI_FIRMWARE_VEC_CLK_ID] = "vec", }; #define RPI_FIRMWARE_STATE_ENABLE_BIT BIT(0) @@ -138,6 +140,9 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] = { [RPI_FIRMWARE_PIXEL_BVB_CLK_ID] = { .export = true, }, + [RPI_FIRMWARE_VEC_CLK_ID] = { + .export = true, + }, }; /*