u-boot/arch/arm/include/asm/arch-meson/clock-a1.h
Igor Prusov 1fcf190e70 clk: Add clock driver for Amlogic A1
This patch adds basic clock driver for Amlogic A1 Family which supports
enabling/disabling some gates, getting frequencies and setting rate
with limited reparenting.

Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20230925155209.130671-3-ivprusov@salutedevices.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-10-12 13:39:41 +02:00

23 lines
531 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2018 - AmLogic, Inc.
* Copyright 2023 (C) SberDevices, Inc.
*/
#ifndef _ARCH_MESON_CLOCK_A1_H_
#define _ARCH_MESON_CLOCK_A1_H_
/*
* Clock controller register offsets
*/
#define A1_SYS_OSCIN_CTRL 0x0
#define A1_SYS_CLK_CTRL0 0x10
#define A1_SYS_CLK_EN0 0x1c
#define A1_SAR_ADC_CLK_CTR 0xc0
#define A1_SPIFC_CLK_CTRL 0xd8
#define A1_USB_BUSCLK_CTRL 0xdc
#define A1_SD_EMMC_CLK_CTRL 0xe0
#define A1_ANACTRL_FIXPLL_CTRL0 0x0
#endif /* _ARCH_MESON_CLOCK_A1_H_ */