mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 15:36:48 +00:00

The A523/T527 SoCs have clock/reset controls in the PRCM part, like many previous SoCs. For a change, the whole PRCM is documented in the A523 manual, including the system bus tree, so we can describe all those clocks correctly based on that. There layout seems to be derived from the H6 and H616 PRCM CCUs, though there are more clocks, and many clocks have subtly changed. Describe all the mod and gate clocks, including the three bus clocks (R_AHB, R_APB0, and R_APB1). Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20250307002628.10684-15-andre.przywara@arm.com Signed-off-by: Chen-Yu Tsai <wens@csie.org>
15 lines
309 B
C
15 lines
309 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright 2024 Arm Ltd.
|
|
*/
|
|
|
|
#ifndef _CCU_SUN55I_A523_R_H
|
|
#define _CCU_SUN55I_A523_R_H
|
|
|
|
#include <dt-bindings/clock/sun55i-a523-r-ccu.h>
|
|
#include <dt-bindings/reset/sun55i-a523-r-ccu.h>
|
|
|
|
#define CLK_NUMBER (CLK_BUS_R_CPUCFG + 1)
|
|
|
|
#endif /* _CCU_SUN55I_A523_R_H */
|