162306a36Sopenharmony_ci/* SYS, CORE AND BUS CLOCKS */
262306a36Sopenharmony_ci#define SYS_D1CPRE 0
362306a36Sopenharmony_ci#define HCLK 1
462306a36Sopenharmony_ci#define PCLK1 2
562306a36Sopenharmony_ci#define PCLK2 3
662306a36Sopenharmony_ci#define PCLK3 4
762306a36Sopenharmony_ci#define PCLK4 5
862306a36Sopenharmony_ci#define HSI_DIV 6
962306a36Sopenharmony_ci#define HSE_1M 7
1062306a36Sopenharmony_ci#define I2S_CKIN 8
1162306a36Sopenharmony_ci#define CK_DSI_PHY 9
1262306a36Sopenharmony_ci#define HSE_CK 10
1362306a36Sopenharmony_ci#define LSE_CK 11
1462306a36Sopenharmony_ci#define CSI_KER_DIV122 12
1562306a36Sopenharmony_ci#define RTC_CK 13
1662306a36Sopenharmony_ci#define CPU_SYSTICK 14
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci/* OSCILLATOR BANK */
1962306a36Sopenharmony_ci#define OSC_BANK 18
2062306a36Sopenharmony_ci#define HSI_CK 18
2162306a36Sopenharmony_ci#define HSI_KER_CK 19
2262306a36Sopenharmony_ci#define CSI_CK 20
2362306a36Sopenharmony_ci#define CSI_KER_CK 21
2462306a36Sopenharmony_ci#define RC48_CK 22
2562306a36Sopenharmony_ci#define LSI_CK 23
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci/* MCLOCK BANK */
2862306a36Sopenharmony_ci#define MCLK_BANK 28
2962306a36Sopenharmony_ci#define PER_CK 28
3062306a36Sopenharmony_ci#define PLLSRC 29
3162306a36Sopenharmony_ci#define SYS_CK 30
3262306a36Sopenharmony_ci#define TRACEIN_CK 31
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci/* ODF BANK */
3562306a36Sopenharmony_ci#define ODF_BANK 32
3662306a36Sopenharmony_ci#define PLL1_P 32
3762306a36Sopenharmony_ci#define PLL1_Q 33
3862306a36Sopenharmony_ci#define PLL1_R 34
3962306a36Sopenharmony_ci#define PLL2_P 35
4062306a36Sopenharmony_ci#define PLL2_Q 36
4162306a36Sopenharmony_ci#define PLL2_R 37
4262306a36Sopenharmony_ci#define PLL3_P 38
4362306a36Sopenharmony_ci#define PLL3_Q 39
4462306a36Sopenharmony_ci#define PLL3_R 40
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci/* MCO BANK */
4762306a36Sopenharmony_ci#define MCO_BANK 41
4862306a36Sopenharmony_ci#define MCO1 41
4962306a36Sopenharmony_ci#define MCO2 42
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci/* PERIF BANK */
5262306a36Sopenharmony_ci#define PERIF_BANK 50
5362306a36Sopenharmony_ci#define D1SRAM1_CK 50
5462306a36Sopenharmony_ci#define ITCM_CK 51
5562306a36Sopenharmony_ci#define DTCM2_CK 52
5662306a36Sopenharmony_ci#define DTCM1_CK 53
5762306a36Sopenharmony_ci#define FLITF_CK 54
5862306a36Sopenharmony_ci#define JPGDEC_CK 55
5962306a36Sopenharmony_ci#define DMA2D_CK 56
6062306a36Sopenharmony_ci#define MDMA_CK 57
6162306a36Sopenharmony_ci#define USB2ULPI_CK 58
6262306a36Sopenharmony_ci#define USB1ULPI_CK 59
6362306a36Sopenharmony_ci#define ETH1RX_CK 60
6462306a36Sopenharmony_ci#define ETH1TX_CK 61
6562306a36Sopenharmony_ci#define ETH1MAC_CK 62
6662306a36Sopenharmony_ci#define ART_CK 63
6762306a36Sopenharmony_ci#define DMA2_CK 64
6862306a36Sopenharmony_ci#define DMA1_CK 65
6962306a36Sopenharmony_ci#define D2SRAM3_CK 66
7062306a36Sopenharmony_ci#define D2SRAM2_CK 67
7162306a36Sopenharmony_ci#define D2SRAM1_CK 68
7262306a36Sopenharmony_ci#define HASH_CK 69
7362306a36Sopenharmony_ci#define CRYPT_CK 70
7462306a36Sopenharmony_ci#define CAMITF_CK 71
7562306a36Sopenharmony_ci#define BKPRAM_CK 72
7662306a36Sopenharmony_ci#define HSEM_CK 73
7762306a36Sopenharmony_ci#define BDMA_CK 74
7862306a36Sopenharmony_ci#define CRC_CK 75
7962306a36Sopenharmony_ci#define GPIOK_CK 76
8062306a36Sopenharmony_ci#define GPIOJ_CK 77
8162306a36Sopenharmony_ci#define GPIOI_CK 78
8262306a36Sopenharmony_ci#define GPIOH_CK 79
8362306a36Sopenharmony_ci#define GPIOG_CK 80
8462306a36Sopenharmony_ci#define GPIOF_CK 81
8562306a36Sopenharmony_ci#define GPIOE_CK 82
8662306a36Sopenharmony_ci#define GPIOD_CK 83
8762306a36Sopenharmony_ci#define GPIOC_CK 84
8862306a36Sopenharmony_ci#define GPIOB_CK 85
8962306a36Sopenharmony_ci#define GPIOA_CK 86
9062306a36Sopenharmony_ci#define WWDG1_CK 87
9162306a36Sopenharmony_ci#define DAC12_CK 88
9262306a36Sopenharmony_ci#define WWDG2_CK 89
9362306a36Sopenharmony_ci#define TIM14_CK 90
9462306a36Sopenharmony_ci#define TIM13_CK 91
9562306a36Sopenharmony_ci#define TIM12_CK 92
9662306a36Sopenharmony_ci#define TIM7_CK 93
9762306a36Sopenharmony_ci#define TIM6_CK 94
9862306a36Sopenharmony_ci#define TIM5_CK 95
9962306a36Sopenharmony_ci#define TIM4_CK 96
10062306a36Sopenharmony_ci#define TIM3_CK 97
10162306a36Sopenharmony_ci#define TIM2_CK 98
10262306a36Sopenharmony_ci#define MDIOS_CK 99
10362306a36Sopenharmony_ci#define OPAMP_CK 100
10462306a36Sopenharmony_ci#define CRS_CK 101
10562306a36Sopenharmony_ci#define TIM17_CK 102
10662306a36Sopenharmony_ci#define TIM16_CK 103
10762306a36Sopenharmony_ci#define TIM15_CK 104
10862306a36Sopenharmony_ci#define TIM8_CK 105
10962306a36Sopenharmony_ci#define TIM1_CK 106
11062306a36Sopenharmony_ci#define TMPSENS_CK 107
11162306a36Sopenharmony_ci#define RTCAPB_CK 108
11262306a36Sopenharmony_ci#define VREF_CK 109
11362306a36Sopenharmony_ci#define COMP12_CK 110
11462306a36Sopenharmony_ci#define SYSCFG_CK 111
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ci/* KERNEL BANK */
11762306a36Sopenharmony_ci#define KERN_BANK 120
11862306a36Sopenharmony_ci#define SDMMC1_CK 120
11962306a36Sopenharmony_ci#define QUADSPI_CK 121
12062306a36Sopenharmony_ci#define FMC_CK 122
12162306a36Sopenharmony_ci#define USB2OTG_CK 123
12262306a36Sopenharmony_ci#define USB1OTG_CK 124
12362306a36Sopenharmony_ci#define ADC12_CK 125
12462306a36Sopenharmony_ci#define SDMMC2_CK 126
12562306a36Sopenharmony_ci#define RNG_CK 127
12662306a36Sopenharmony_ci#define ADC3_CK 128
12762306a36Sopenharmony_ci#define DSI_CK 129
12862306a36Sopenharmony_ci#define LTDC_CK 130
12962306a36Sopenharmony_ci#define USART8_CK 131
13062306a36Sopenharmony_ci#define USART7_CK 132
13162306a36Sopenharmony_ci#define HDMICEC_CK 133
13262306a36Sopenharmony_ci#define I2C3_CK 134
13362306a36Sopenharmony_ci#define I2C2_CK 135
13462306a36Sopenharmony_ci#define I2C1_CK 136
13562306a36Sopenharmony_ci#define UART5_CK 137
13662306a36Sopenharmony_ci#define UART4_CK 138
13762306a36Sopenharmony_ci#define USART3_CK 139
13862306a36Sopenharmony_ci#define USART2_CK 140
13962306a36Sopenharmony_ci#define SPDIFRX_CK 141
14062306a36Sopenharmony_ci#define SPI3_CK 142
14162306a36Sopenharmony_ci#define SPI2_CK 143
14262306a36Sopenharmony_ci#define LPTIM1_CK 144
14362306a36Sopenharmony_ci#define FDCAN_CK 145
14462306a36Sopenharmony_ci#define SWP_CK 146
14562306a36Sopenharmony_ci#define HRTIM_CK 147
14662306a36Sopenharmony_ci#define DFSDM1_CK 148
14762306a36Sopenharmony_ci#define SAI3_CK 149
14862306a36Sopenharmony_ci#define SAI2_CK 150
14962306a36Sopenharmony_ci#define SAI1_CK 151
15062306a36Sopenharmony_ci#define SPI5_CK 152
15162306a36Sopenharmony_ci#define SPI4_CK 153
15262306a36Sopenharmony_ci#define SPI1_CK 154
15362306a36Sopenharmony_ci#define USART6_CK 155
15462306a36Sopenharmony_ci#define USART1_CK 156
15562306a36Sopenharmony_ci#define SAI4B_CK 157
15662306a36Sopenharmony_ci#define SAI4A_CK 158
15762306a36Sopenharmony_ci#define LPTIM5_CK 159
15862306a36Sopenharmony_ci#define LPTIM4_CK 160
15962306a36Sopenharmony_ci#define LPTIM3_CK 161
16062306a36Sopenharmony_ci#define LPTIM2_CK 162
16162306a36Sopenharmony_ci#define I2C4_CK 163
16262306a36Sopenharmony_ci#define SPI6_CK 164
16362306a36Sopenharmony_ci#define LPUART1_CK 165
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ci#define STM32H7_MAX_CLKS 166
166