162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
462306a36Sopenharmony_ci * Author: Jian Hu <jian.hu@amlogic.com>
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Copyright (c) 2023, SberDevices. All Rights Reserved.
762306a36Sopenharmony_ci * Author: Dmitry Rokosov <ddrokosov@sberdevices.ru>
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#ifndef __A1_PERIPHERALS_CLKC_H
1162306a36Sopenharmony_ci#define __A1_PERIPHERALS_CLKC_H
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define CLKID_XTAL_IN		0
1462306a36Sopenharmony_ci#define CLKID_FIXPLL_IN		1
1562306a36Sopenharmony_ci#define CLKID_USB_PHY_IN	2
1662306a36Sopenharmony_ci#define CLKID_USB_CTRL_IN	3
1762306a36Sopenharmony_ci#define CLKID_HIFIPLL_IN	4
1862306a36Sopenharmony_ci#define CLKID_SYSPLL_IN		5
1962306a36Sopenharmony_ci#define CLKID_DDS_IN		6
2062306a36Sopenharmony_ci#define CLKID_SYS		7
2162306a36Sopenharmony_ci#define CLKID_CLKTREE		8
2262306a36Sopenharmony_ci#define CLKID_RESET_CTRL	9
2362306a36Sopenharmony_ci#define CLKID_ANALOG_CTRL	10
2462306a36Sopenharmony_ci#define CLKID_PWR_CTRL		11
2562306a36Sopenharmony_ci#define CLKID_PAD_CTRL		12
2662306a36Sopenharmony_ci#define CLKID_SYS_CTRL		13
2762306a36Sopenharmony_ci#define CLKID_TEMP_SENSOR	14
2862306a36Sopenharmony_ci#define CLKID_AM2AXI_DIV	15
2962306a36Sopenharmony_ci#define CLKID_SPICC_B		16
3062306a36Sopenharmony_ci#define CLKID_SPICC_A		17
3162306a36Sopenharmony_ci#define CLKID_MSR		18
3262306a36Sopenharmony_ci#define CLKID_AUDIO		19
3362306a36Sopenharmony_ci#define CLKID_JTAG_CTRL		20
3462306a36Sopenharmony_ci#define CLKID_SARADC_EN		21
3562306a36Sopenharmony_ci#define CLKID_PWM_EF		22
3662306a36Sopenharmony_ci#define CLKID_PWM_CD		23
3762306a36Sopenharmony_ci#define CLKID_PWM_AB		24
3862306a36Sopenharmony_ci#define CLKID_CEC		25
3962306a36Sopenharmony_ci#define CLKID_I2C_S		26
4062306a36Sopenharmony_ci#define CLKID_IR_CTRL		27
4162306a36Sopenharmony_ci#define CLKID_I2C_M_D		28
4262306a36Sopenharmony_ci#define CLKID_I2C_M_C		29
4362306a36Sopenharmony_ci#define CLKID_I2C_M_B		30
4462306a36Sopenharmony_ci#define CLKID_I2C_M_A		31
4562306a36Sopenharmony_ci#define CLKID_ACODEC		32
4662306a36Sopenharmony_ci#define CLKID_OTP		33
4762306a36Sopenharmony_ci#define CLKID_SD_EMMC_A		34
4862306a36Sopenharmony_ci#define CLKID_USB_PHY		35
4962306a36Sopenharmony_ci#define CLKID_USB_CTRL		36
5062306a36Sopenharmony_ci#define CLKID_SYS_DSPB		37
5162306a36Sopenharmony_ci#define CLKID_SYS_DSPA		38
5262306a36Sopenharmony_ci#define CLKID_DMA		39
5362306a36Sopenharmony_ci#define CLKID_IRQ_CTRL		40
5462306a36Sopenharmony_ci#define CLKID_NIC		41
5562306a36Sopenharmony_ci#define CLKID_GIC		42
5662306a36Sopenharmony_ci#define CLKID_UART_C		43
5762306a36Sopenharmony_ci#define CLKID_UART_B		44
5862306a36Sopenharmony_ci#define CLKID_UART_A		45
5962306a36Sopenharmony_ci#define CLKID_SYS_PSRAM		46
6062306a36Sopenharmony_ci#define CLKID_RSA		47
6162306a36Sopenharmony_ci#define CLKID_CORESIGHT		48
6262306a36Sopenharmony_ci#define CLKID_AM2AXI_VAD	49
6362306a36Sopenharmony_ci#define CLKID_AUDIO_VAD		50
6462306a36Sopenharmony_ci#define CLKID_AXI_DMC		51
6562306a36Sopenharmony_ci#define CLKID_AXI_PSRAM		52
6662306a36Sopenharmony_ci#define CLKID_RAMB		53
6762306a36Sopenharmony_ci#define CLKID_RAMA		54
6862306a36Sopenharmony_ci#define CLKID_AXI_SPIFC		55
6962306a36Sopenharmony_ci#define CLKID_AXI_NIC		56
7062306a36Sopenharmony_ci#define CLKID_AXI_DMA		57
7162306a36Sopenharmony_ci#define CLKID_CPU_CTRL		58
7262306a36Sopenharmony_ci#define CLKID_ROM		59
7362306a36Sopenharmony_ci#define CLKID_PROC_I2C		60
7462306a36Sopenharmony_ci#define CLKID_DSPA_SEL		61
7562306a36Sopenharmony_ci#define CLKID_DSPB_SEL		62
7662306a36Sopenharmony_ci#define CLKID_DSPA_EN		63
7762306a36Sopenharmony_ci#define CLKID_DSPA_EN_NIC	64
7862306a36Sopenharmony_ci#define CLKID_DSPB_EN		65
7962306a36Sopenharmony_ci#define CLKID_DSPB_EN_NIC	66
8062306a36Sopenharmony_ci#define CLKID_RTC		67
8162306a36Sopenharmony_ci#define CLKID_CECA_32K		68
8262306a36Sopenharmony_ci#define CLKID_CECB_32K		69
8362306a36Sopenharmony_ci#define CLKID_24M		70
8462306a36Sopenharmony_ci#define CLKID_12M		71
8562306a36Sopenharmony_ci#define CLKID_FCLK_DIV2_DIVN	72
8662306a36Sopenharmony_ci#define CLKID_GEN		73
8762306a36Sopenharmony_ci#define CLKID_SARADC_SEL	74
8862306a36Sopenharmony_ci#define CLKID_SARADC		75
8962306a36Sopenharmony_ci#define CLKID_PWM_A		76
9062306a36Sopenharmony_ci#define CLKID_PWM_B		77
9162306a36Sopenharmony_ci#define CLKID_PWM_C		78
9262306a36Sopenharmony_ci#define CLKID_PWM_D		79
9362306a36Sopenharmony_ci#define CLKID_PWM_E		80
9462306a36Sopenharmony_ci#define CLKID_PWM_F		81
9562306a36Sopenharmony_ci#define CLKID_SPICC		82
9662306a36Sopenharmony_ci#define CLKID_TS		83
9762306a36Sopenharmony_ci#define CLKID_SPIFC		84
9862306a36Sopenharmony_ci#define CLKID_USB_BUS		85
9962306a36Sopenharmony_ci#define CLKID_SD_EMMC		86
10062306a36Sopenharmony_ci#define CLKID_PSRAM		87
10162306a36Sopenharmony_ci#define CLKID_DMC		88
10262306a36Sopenharmony_ci#define CLKID_SYS_A_SEL		89
10362306a36Sopenharmony_ci#define CLKID_SYS_A_DIV		90
10462306a36Sopenharmony_ci#define CLKID_SYS_A		91
10562306a36Sopenharmony_ci#define CLKID_SYS_B_SEL		92
10662306a36Sopenharmony_ci#define CLKID_SYS_B_DIV		93
10762306a36Sopenharmony_ci#define CLKID_SYS_B		94
10862306a36Sopenharmony_ci#define CLKID_DSPA_A_SEL	95
10962306a36Sopenharmony_ci#define CLKID_DSPA_A_DIV	96
11062306a36Sopenharmony_ci#define CLKID_DSPA_A		97
11162306a36Sopenharmony_ci#define CLKID_DSPA_B_SEL	98
11262306a36Sopenharmony_ci#define CLKID_DSPA_B_DIV	99
11362306a36Sopenharmony_ci#define CLKID_DSPA_B		100
11462306a36Sopenharmony_ci#define CLKID_DSPB_A_SEL	101
11562306a36Sopenharmony_ci#define CLKID_DSPB_A_DIV	102
11662306a36Sopenharmony_ci#define CLKID_DSPB_A		103
11762306a36Sopenharmony_ci#define CLKID_DSPB_B_SEL	104
11862306a36Sopenharmony_ci#define CLKID_DSPB_B_DIV	105
11962306a36Sopenharmony_ci#define CLKID_DSPB_B		106
12062306a36Sopenharmony_ci#define CLKID_RTC_32K_IN	107
12162306a36Sopenharmony_ci#define CLKID_RTC_32K_DIV	108
12262306a36Sopenharmony_ci#define CLKID_RTC_32K_XTAL	109
12362306a36Sopenharmony_ci#define CLKID_RTC_32K_SEL	110
12462306a36Sopenharmony_ci#define CLKID_CECB_32K_IN	111
12562306a36Sopenharmony_ci#define CLKID_CECB_32K_DIV	112
12662306a36Sopenharmony_ci#define CLKID_CECB_32K_SEL_PRE	113
12762306a36Sopenharmony_ci#define CLKID_CECB_32K_SEL	114
12862306a36Sopenharmony_ci#define CLKID_CECA_32K_IN	115
12962306a36Sopenharmony_ci#define CLKID_CECA_32K_DIV	116
13062306a36Sopenharmony_ci#define CLKID_CECA_32K_SEL_PRE	117
13162306a36Sopenharmony_ci#define CLKID_CECA_32K_SEL	118
13262306a36Sopenharmony_ci#define CLKID_DIV2_PRE		119
13362306a36Sopenharmony_ci#define CLKID_24M_DIV2		120
13462306a36Sopenharmony_ci#define CLKID_GEN_SEL		121
13562306a36Sopenharmony_ci#define CLKID_GEN_DIV		122
13662306a36Sopenharmony_ci#define CLKID_SARADC_DIV	123
13762306a36Sopenharmony_ci#define CLKID_PWM_A_SEL		124
13862306a36Sopenharmony_ci#define CLKID_PWM_A_DIV		125
13962306a36Sopenharmony_ci#define CLKID_PWM_B_SEL		126
14062306a36Sopenharmony_ci#define CLKID_PWM_B_DIV		127
14162306a36Sopenharmony_ci#define CLKID_PWM_C_SEL		128
14262306a36Sopenharmony_ci#define CLKID_PWM_C_DIV		129
14362306a36Sopenharmony_ci#define CLKID_PWM_D_SEL		130
14462306a36Sopenharmony_ci#define CLKID_PWM_D_DIV		131
14562306a36Sopenharmony_ci#define CLKID_PWM_E_SEL		132
14662306a36Sopenharmony_ci#define CLKID_PWM_E_DIV		133
14762306a36Sopenharmony_ci#define CLKID_PWM_F_SEL		134
14862306a36Sopenharmony_ci#define CLKID_PWM_F_DIV		135
14962306a36Sopenharmony_ci#define CLKID_SPICC_SEL		136
15062306a36Sopenharmony_ci#define CLKID_SPICC_DIV		137
15162306a36Sopenharmony_ci#define CLKID_SPICC_SEL2	138
15262306a36Sopenharmony_ci#define CLKID_TS_DIV		139
15362306a36Sopenharmony_ci#define CLKID_SPIFC_SEL		140
15462306a36Sopenharmony_ci#define CLKID_SPIFC_DIV		141
15562306a36Sopenharmony_ci#define CLKID_SPIFC_SEL2	142
15662306a36Sopenharmony_ci#define CLKID_USB_BUS_SEL	143
15762306a36Sopenharmony_ci#define CLKID_USB_BUS_DIV	144
15862306a36Sopenharmony_ci#define CLKID_SD_EMMC_SEL	145
15962306a36Sopenharmony_ci#define CLKID_SD_EMMC_DIV	146
16062306a36Sopenharmony_ci#define CLKID_SD_EMMC_SEL2	147
16162306a36Sopenharmony_ci#define CLKID_PSRAM_SEL		148
16262306a36Sopenharmony_ci#define CLKID_PSRAM_DIV		149
16362306a36Sopenharmony_ci#define CLKID_PSRAM_SEL2	150
16462306a36Sopenharmony_ci#define CLKID_DMC_SEL		151
16562306a36Sopenharmony_ci#define CLKID_DMC_DIV		152
16662306a36Sopenharmony_ci#define CLKID_DMC_SEL2		153
16762306a36Sopenharmony_ci
16862306a36Sopenharmony_ci#endif /* __A1_PERIPHERALS_CLKC_H */
169