mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 07:13:03 +00:00
1fcf190e70
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>
23 lines
531 B
C
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_ */
|