mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
fbe2f7db86
All patches automatically rebased Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <therealgraysky@proton.me>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 8cef8cceb28fc9c5521633cfe45bd6971753023b Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Tue, 19 Oct 2021 14:13:53 +0100
|
|
Subject: [PATCH] clk-raspberrypi: Support VEC clock
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/clk/bcm/clk-raspberrypi.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- 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)
|
|
@@ -278,6 +280,7 @@ static int raspberrypi_discover_clocks(s
|
|
case RPI_FIRMWARE_V3D_CLK_ID:
|
|
case RPI_FIRMWARE_HEVC_CLK_ID:
|
|
case RPI_FIRMWARE_PIXEL_BVB_CLK_ID:
|
|
+ case RPI_FIRMWARE_VEC_CLK_ID:
|
|
hw = raspberrypi_clk_register(rpi, clks->parent,
|
|
clks->id);
|
|
if (IS_ERR(hw))
|