[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251220-06-k1-clk-common-v1-0-df28a0a91621@gentoo.org>
Date: Sat, 20 Dec 2025 09:11:18 +0800
From: Yixun Lan <dlan@...too.org>
To: Stephen Boyd <sboyd@...nel.org>,
Michael Turquette <mturquette@...libre.com>,
Philipp Zabel <p.zabel@...gutronix.de>
Cc: Alex Elder <elder@...cstar.com>, Guodong Xu <guodong@...cstar.com>,
Inochi Amaoto <inochiama@...il.com>, linux-kernel@...r.kernel.org,
linux-clk@...r.kernel.org, linux-riscv@...ts.infradead.org,
spacemit@...ts.linux.dev, Yixun Lan <dlan@...too.org>, Yao Zi <me@...ao.cc>
Subject: [PATCH 0/2] clk: spacemit: refactor common ccu driver
The goal here is to refactor the clock driver to extract common part, and
reuse it, so in the future, we can maximize the source code usage once
adding new clock driver (specifically, for the SpacemiT K3 SoC here)
Since reset driver register via auxiliary bus which requires a adjustment
of the auxiliary device id accordingly.
This patch will depend on Kconfig fix for building modules [1], and the idea
come from K3 clock's review[2]
Link: https://lore.kernel.org/all/20251219012819.440972-1-inochiama@gmail.com/ [1]
Link: https://lore.kernel.org/all/aTo8sCPpVM1o9PKX@pie [2]
Signed-off-by: Yixun Lan <dlan@...too.org>
---
Yixun Lan (2):
clk: spacemit: extract common ccu functions
reset: spacemit: fix auxiliary device id
drivers/clk/spacemit/ccu-k1.c | 176 +-------------------------------------
drivers/clk/spacemit/ccu_common.c | 171 ++++++++++++++++++++++++++++++++++++
drivers/clk/spacemit/ccu_common.h | 10 +++
drivers/reset/reset-spacemit.c | 2 +-
include/soc/spacemit/ccu.h | 21 +++++
include/soc/spacemit/k1-syscon.h | 12 +--
6 files changed, 205 insertions(+), 187 deletions(-)
---
base-commit: fb964a99ad6848a9022c6909365aad23e177387c
change-id: 20251217-06-k1-clk-common-8d1c57995047
prerequisite-message-id: 20251219012819.440972-1-inochiama@...il.com
prerequisite-patch-id: df430730ed961011cee5c5d47b7ace84b3c5ebb7
prerequisite-patch-id: 64003618c33be925602e46b7543f2c13d3f36474
Best regards,
--
Yixun Lan
Powered by blists - more mailing lists