blob: 6b0d5b46f87fa020eab99a8f821f44afcc249c42 [file] [log] [blame]
Sean Anderson4d88d962020-06-24 06:41:11 -04001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Sean Anderson29573132021-06-11 00:16:08 -04003 * Copyright (C) 2019-21 Sean Anderson <seanga2@gmail.com>
Sean Anderson4d88d962020-06-24 06:41:11 -04004 */
5
6#ifndef CLOCK_K210_SYSCTL_H
7#define CLOCK_K210_SYSCTL_H
8
9/*
10 * Arbitrary identifiers for clocks.
11 */
Sean Anderson29573132021-06-11 00:16:08 -040012
13#define K210_CLK_PLL0 0
14#define K210_CLK_PLL1 1
15#define K210_CLK_PLL2 2
16#define K210_CLK_CPU 3
17#define K210_CLK_SRAM0 4
18#define K210_CLK_SRAM1 5
19#define K210_CLK_ACLK 6
20#define K210_CLK_CLINT 7
21#define K210_CLK_APB0 8
22#define K210_CLK_APB1 9
23#define K210_CLK_APB2 10
24#define K210_CLK_ROM 11
25#define K210_CLK_DMA 12
26#define K210_CLK_AI 13
27#define K210_CLK_DVP 14
28#define K210_CLK_FFT 15
29#define K210_CLK_GPIO 16
30#define K210_CLK_SPI0 17
31#define K210_CLK_SPI1 18
32#define K210_CLK_SPI2 19
33#define K210_CLK_SPI3 20
34#define K210_CLK_I2S0 21
35#define K210_CLK_I2S1 22
36#define K210_CLK_I2S2 23
37#define K210_CLK_I2S0_M 24
38#define K210_CLK_I2S1_M 25
39#define K210_CLK_I2S2_M 26
40#define K210_CLK_I2C0 27
41#define K210_CLK_I2C1 28
42#define K210_CLK_I2C2 29
43#define K210_CLK_UART1 30
44#define K210_CLK_UART2 31
45#define K210_CLK_UART3 32
46#define K210_CLK_AES 33
47#define K210_CLK_FPIOA 34
48#define K210_CLK_TIMER0 35
49#define K210_CLK_TIMER1 36
50#define K210_CLK_TIMER2 37
51#define K210_CLK_WDT0 38
52#define K210_CLK_WDT1 39
53#define K210_CLK_SHA 40
54#define K210_CLK_OTP 41
55#define K210_CLK_RTC 42
56#define K210_CLK_IN0 43
Sean Anderson4d88d962020-06-24 06:41:11 -040057
58#endif /* CLOCK_K210_SYSCTL_H */