mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-27 06:39:51 +00:00
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 1427/1482] 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",
|