mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
|
From c8fd69c6f567bd43ba084b95a987532940465ef5 Mon Sep 17 00:00:00 2001
|
||
|
From: Maxime Ripard <maxime@cerno.tech>
|
||
|
Date: Fri, 24 Feb 2023 14:12:50 +0100
|
||
|
Subject: [PATCH] clk: bcm: rpi: Add disp clock
|
||
|
|
||
|
BCM2712 has an extra clock exposed by the firmware called DISP, and used
|
||
|
by (at least) the HVS. Let's add it to the list of clocks to register in
|
||
|
Linux.
|
||
|
|
||
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||
|
---
|
||
|
drivers/clk/bcm/clk-raspberrypi.c | 5 +++++
|
||
|
include/soc/bcm2835/raspberrypi-firmware.h | 1 +
|
||
|
2 files changed, 6 insertions(+)
|
||
|
|
||
|
--- a/drivers/clk/bcm/clk-raspberrypi.c
|
||
|
+++ b/drivers/clk/bcm/clk-raspberrypi.c
|
||
|
@@ -34,6 +34,7 @@ static char *rpi_firmware_clk_names[] =
|
||
|
[RPI_FIRMWARE_M2MC_CLK_ID] = "m2mc",
|
||
|
[RPI_FIRMWARE_PIXEL_BVB_CLK_ID] = "pixel-bvb",
|
||
|
[RPI_FIRMWARE_VEC_CLK_ID] = "vec",
|
||
|
+ [RPI_FIRMWARE_DISP_CLK_ID] = "disp",
|
||
|
};
|
||
|
|
||
|
#define RPI_FIRMWARE_STATE_ENABLE_BIT BIT(0)
|
||
|
@@ -139,6 +140,10 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NU
|
||
|
.export = true,
|
||
|
.minimize = true,
|
||
|
},
|
||
|
+ [RPI_FIRMWARE_DISP_CLK_ID] = {
|
||
|
+ .export = true,
|
||
|
+ .minimize = true,
|
||
|
+ },
|
||
|
};
|
||
|
|
||
|
/*
|
||
|
--- a/include/soc/bcm2835/raspberrypi-firmware.h
|
||
|
+++ b/include/soc/bcm2835/raspberrypi-firmware.h
|
||
|
@@ -176,6 +176,7 @@ enum rpi_firmware_clk_id {
|
||
|
RPI_FIRMWARE_M2MC_CLK_ID,
|
||
|
RPI_FIRMWARE_PIXEL_BVB_CLK_ID,
|
||
|
RPI_FIRMWARE_VEC_CLK_ID,
|
||
|
+ RPI_FIRMWARE_DISP_CLK_ID,
|
||
|
RPI_FIRMWARE_NUM_CLK_ID,
|
||
|
};
|
||
|
|