mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
From cf5aa374252dee2469c011fa517ff43148da6e42 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Fri, 24 Feb 2023 14:12:50 +0100
|
|
Subject: [PATCH 0563/1085] 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,
|
|
};
|
|
|