1 1.1 jmcneill /* $NetBSD: stm32h7-clks.h,v 1.1.1.1 2017/10/28 10:30:32 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* SYS, CORE AND BUS CLOCKS */ 4 1.1 jmcneill #define SYS_D1CPRE 0 5 1.1 jmcneill #define HCLK 1 6 1.1 jmcneill #define PCLK1 2 7 1.1 jmcneill #define PCLK2 3 8 1.1 jmcneill #define PCLK3 4 9 1.1 jmcneill #define PCLK4 5 10 1.1 jmcneill #define HSI_DIV 6 11 1.1 jmcneill #define HSE_1M 7 12 1.1 jmcneill #define I2S_CKIN 8 13 1.1 jmcneill #define CK_DSI_PHY 9 14 1.1 jmcneill #define HSE_CK 10 15 1.1 jmcneill #define LSE_CK 11 16 1.1 jmcneill #define CSI_KER_DIV122 12 17 1.1 jmcneill #define RTC_CK 13 18 1.1 jmcneill #define CPU_SYSTICK 14 19 1.1 jmcneill 20 1.1 jmcneill /* OSCILLATOR BANK */ 21 1.1 jmcneill #define OSC_BANK 18 22 1.1 jmcneill #define HSI_CK 18 23 1.1 jmcneill #define HSI_KER_CK 19 24 1.1 jmcneill #define CSI_CK 20 25 1.1 jmcneill #define CSI_KER_CK 21 26 1.1 jmcneill #define RC48_CK 22 27 1.1 jmcneill #define LSI_CK 23 28 1.1 jmcneill 29 1.1 jmcneill /* MCLOCK BANK */ 30 1.1 jmcneill #define MCLK_BANK 28 31 1.1 jmcneill #define PER_CK 28 32 1.1 jmcneill #define PLLSRC 29 33 1.1 jmcneill #define SYS_CK 30 34 1.1 jmcneill #define TRACEIN_CK 31 35 1.1 jmcneill 36 1.1 jmcneill /* ODF BANK */ 37 1.1 jmcneill #define ODF_BANK 32 38 1.1 jmcneill #define PLL1_P 32 39 1.1 jmcneill #define PLL1_Q 33 40 1.1 jmcneill #define PLL1_R 34 41 1.1 jmcneill #define PLL2_P 35 42 1.1 jmcneill #define PLL2_Q 36 43 1.1 jmcneill #define PLL2_R 37 44 1.1 jmcneill #define PLL3_P 38 45 1.1 jmcneill #define PLL3_Q 39 46 1.1 jmcneill #define PLL3_R 40 47 1.1 jmcneill 48 1.1 jmcneill /* MCO BANK */ 49 1.1 jmcneill #define MCO_BANK 41 50 1.1 jmcneill #define MCO1 41 51 1.1 jmcneill #define MCO2 42 52 1.1 jmcneill 53 1.1 jmcneill /* PERIF BANK */ 54 1.1 jmcneill #define PERIF_BANK 50 55 1.1 jmcneill #define D1SRAM1_CK 50 56 1.1 jmcneill #define ITCM_CK 51 57 1.1 jmcneill #define DTCM2_CK 52 58 1.1 jmcneill #define DTCM1_CK 53 59 1.1 jmcneill #define FLITF_CK 54 60 1.1 jmcneill #define JPGDEC_CK 55 61 1.1 jmcneill #define DMA2D_CK 56 62 1.1 jmcneill #define MDMA_CK 57 63 1.1 jmcneill #define USB2ULPI_CK 58 64 1.1 jmcneill #define USB1ULPI_CK 59 65 1.1 jmcneill #define ETH1RX_CK 60 66 1.1 jmcneill #define ETH1TX_CK 61 67 1.1 jmcneill #define ETH1MAC_CK 62 68 1.1 jmcneill #define ART_CK 63 69 1.1 jmcneill #define DMA2_CK 64 70 1.1 jmcneill #define DMA1_CK 65 71 1.1 jmcneill #define D2SRAM3_CK 66 72 1.1 jmcneill #define D2SRAM2_CK 67 73 1.1 jmcneill #define D2SRAM1_CK 68 74 1.1 jmcneill #define HASH_CK 69 75 1.1 jmcneill #define CRYPT_CK 70 76 1.1 jmcneill #define CAMITF_CK 71 77 1.1 jmcneill #define BKPRAM_CK 72 78 1.1 jmcneill #define HSEM_CK 73 79 1.1 jmcneill #define BDMA_CK 74 80 1.1 jmcneill #define CRC_CK 75 81 1.1 jmcneill #define GPIOK_CK 76 82 1.1 jmcneill #define GPIOJ_CK 77 83 1.1 jmcneill #define GPIOI_CK 78 84 1.1 jmcneill #define GPIOH_CK 79 85 1.1 jmcneill #define GPIOG_CK 80 86 1.1 jmcneill #define GPIOF_CK 81 87 1.1 jmcneill #define GPIOE_CK 82 88 1.1 jmcneill #define GPIOD_CK 83 89 1.1 jmcneill #define GPIOC_CK 84 90 1.1 jmcneill #define GPIOB_CK 85 91 1.1 jmcneill #define GPIOA_CK 86 92 1.1 jmcneill #define WWDG1_CK 87 93 1.1 jmcneill #define DAC12_CK 88 94 1.1 jmcneill #define WWDG2_CK 89 95 1.1 jmcneill #define TIM14_CK 90 96 1.1 jmcneill #define TIM13_CK 91 97 1.1 jmcneill #define TIM12_CK 92 98 1.1 jmcneill #define TIM7_CK 93 99 1.1 jmcneill #define TIM6_CK 94 100 1.1 jmcneill #define TIM5_CK 95 101 1.1 jmcneill #define TIM4_CK 96 102 1.1 jmcneill #define TIM3_CK 97 103 1.1 jmcneill #define TIM2_CK 98 104 1.1 jmcneill #define MDIOS_CK 99 105 1.1 jmcneill #define OPAMP_CK 100 106 1.1 jmcneill #define CRS_CK 101 107 1.1 jmcneill #define TIM17_CK 102 108 1.1 jmcneill #define TIM16_CK 103 109 1.1 jmcneill #define TIM15_CK 104 110 1.1 jmcneill #define TIM8_CK 105 111 1.1 jmcneill #define TIM1_CK 106 112 1.1 jmcneill #define TMPSENS_CK 107 113 1.1 jmcneill #define RTCAPB_CK 108 114 1.1 jmcneill #define VREF_CK 109 115 1.1 jmcneill #define COMP12_CK 110 116 1.1 jmcneill #define SYSCFG_CK 111 117 1.1 jmcneill 118 1.1 jmcneill /* KERNEL BANK */ 119 1.1 jmcneill #define KERN_BANK 120 120 1.1 jmcneill #define SDMMC1_CK 120 121 1.1 jmcneill #define QUADSPI_CK 121 122 1.1 jmcneill #define FMC_CK 122 123 1.1 jmcneill #define USB2OTG_CK 123 124 1.1 jmcneill #define USB1OTG_CK 124 125 1.1 jmcneill #define ADC12_CK 125 126 1.1 jmcneill #define SDMMC2_CK 126 127 1.1 jmcneill #define RNG_CK 127 128 1.1 jmcneill #define ADC3_CK 128 129 1.1 jmcneill #define DSI_CK 129 130 1.1 jmcneill #define LTDC_CK 130 131 1.1 jmcneill #define USART8_CK 131 132 1.1 jmcneill #define USART7_CK 132 133 1.1 jmcneill #define HDMICEC_CK 133 134 1.1 jmcneill #define I2C3_CK 134 135 1.1 jmcneill #define I2C2_CK 135 136 1.1 jmcneill #define I2C1_CK 136 137 1.1 jmcneill #define UART5_CK 137 138 1.1 jmcneill #define UART4_CK 138 139 1.1 jmcneill #define USART3_CK 139 140 1.1 jmcneill #define USART2_CK 140 141 1.1 jmcneill #define SPDIFRX_CK 141 142 1.1 jmcneill #define SPI3_CK 142 143 1.1 jmcneill #define SPI2_CK 143 144 1.1 jmcneill #define LPTIM1_CK 144 145 1.1 jmcneill #define FDCAN_CK 145 146 1.1 jmcneill #define SWP_CK 146 147 1.1 jmcneill #define HRTIM_CK 147 148 1.1 jmcneill #define DFSDM1_CK 148 149 1.1 jmcneill #define SAI3_CK 149 150 1.1 jmcneill #define SAI2_CK 150 151 1.1 jmcneill #define SAI1_CK 151 152 1.1 jmcneill #define SPI5_CK 152 153 1.1 jmcneill #define SPI4_CK 153 154 1.1 jmcneill #define SPI1_CK 154 155 1.1 jmcneill #define USART6_CK 155 156 1.1 jmcneill #define USART1_CK 156 157 1.1 jmcneill #define SAI4B_CK 157 158 1.1 jmcneill #define SAI4A_CK 158 159 1.1 jmcneill #define LPTIM5_CK 159 160 1.1 jmcneill #define LPTIM4_CK 160 161 1.1 jmcneill #define LPTIM3_CK 161 162 1.1 jmcneill #define LPTIM2_CK 162 163 1.1 jmcneill #define I2C4_CK 163 164 1.1 jmcneill #define SPI6_CK 164 165 1.1 jmcneill #define LPUART1_CK 165 166 1.1 jmcneill 167 1.1 jmcneill #define STM32H7_MAX_CLKS 166 168