mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 08:00:42 +04:00
ath79: move the clock driver to drivers/clk
Move the ath79 PLL clock code from arch/mips/ath79/clock.c to drivers/clk/clk-ath79.c. With the QCA956x timer workaround and the bootstrap reference clock now in setup.c, it only uses the clk API and its own PLL and SRIF registers. Copy the register definitions it needs from ar71xx_regs.h into the driver, so it no longer depends on the mach headers. It stays a CLK_OF_DECLARE driver for the MIPS timer. COMMON_CLK_ATH79 defaults to ATH79 and is set in the target config. Tested on an Archer C7 v2, together with the PCIe PLL clock on top: CPU/DDR/AHB/ref stay at 960/800/266.7/40 MHz, the timer runs and ath10k probes. COMPILE_TEST builds for other architectures are not tested. Assisted-by: LLM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4fQYZAVx9sEHVTUpfBFRM Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26304 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
1 parent
6745b44c86
commit
1b83fdb563
2 files changed
+1506
No files matched your search
@@ -19,6 +19,7 @@ CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
|
||||
CONFIG_CMDLINE_BOOL=y
|
||||
# CONFIG_CMDLINE_OVERRIDE is not set
|
||||
CONFIG_COMMON_CLK=y
|
||||
CONFIG_COMMON_CLK_ATH79=y
|
||||
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
|
||||
CONFIG_COMPAT_32BIT_TIME=y
|
||||
CONFIG_CPU_BIG_ENDIAN=y
|
||||
|
||||
+1505
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user