mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-25 13:49:26 +00:00
3a5584e0df
Adds latest 6.6 patches from the Raspberry Pi repository. These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.6.y/ With the following command: git format-patch -N v6.6.67..HEAD (HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> (cherry picked from commit 692205305db14deeff1a2dc4a6d7f87e19fc418b)
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From d4e41ed9954fa86c4774f98d393aa401c81a68e7 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Wed, 13 Nov 2024 13:10:27 +0000
|
|
Subject: [PATCH] clk: rp1: Add RP1_CLK_DMA.
|
|
|
|
The DMA block has a clock, but wasn't defined in the driver. This
|
|
resulted in the parent being disabled as unused, and then DMA
|
|
stopped working.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/clk/clk-rp1.c | 21 +++++++++++++++++++++
|
|
1 file changed, 21 insertions(+)
|
|
|
|
--- a/drivers/clk/clk-rp1.c
|
|
+++ b/drivers/clk/clk-rp1.c
|
|
@@ -1874,6 +1874,27 @@ static const struct rp1_clk_desc clk_des
|
|
.flags = CLK_IS_CRITICAL,
|
|
),
|
|
|
|
+ [RP1_CLK_DMA] = REGISTER_CLK(
|
|
+ .name = "clk_dma",
|
|
+ .parents = {"pll_sys_pri_ph",
|
|
+ "pll_video",
|
|
+ "xosc",
|
|
+ "clksrc_gp0",
|
|
+ "clksrc_gp1",
|
|
+ "clksrc_gp2",
|
|
+ "clksrc_gp3",
|
|
+ "clksrc_gp4",
|
|
+ "clksrc_gp5"},
|
|
+ .num_std_parents = 0,
|
|
+ .num_aux_parents = 9,
|
|
+ .ctrl_reg = CLK_DMA_CTRL,
|
|
+ .div_int_reg = CLK_DMA_DIV_INT,
|
|
+ .sel_reg = CLK_DMA_SEL,
|
|
+ .div_int_max = DIV_INT_8BIT_MAX,
|
|
+ .max_freq = 100 * MHz,
|
|
+ .fc0_src = FC_NUM(2, 2),
|
|
+ ),
|
|
+
|
|
[RP1_CLK_UART] = REGISTER_CLK(
|
|
.name = "clk_uart",
|
|
.parents = {"pll_sys_pri_ph",
|