|
PebbleOS v4.47.0-757-g12b6c531f
|
Data Structures | |
| struct | pbl_clk_stm32h7 |
| STM32H7 RCC. More... | |
Macros | |
| #define | STM32H7_RCC (&pbl_clk_stm32h7) |
| Clock controller. | |
| #define | PBL_CLK_STM32H7_DEFINE(sym, _name, _base, _pwr, _supply, _hse, _lse, ...) |
| Define the RCC. | |
Clocks | |
The clocks the driver supports, numbered as in the binding, dt-bindings/clock/stm32h7-clks.h. | |
| #define | STM32H7_CLK_HSE_CK 10 |
| HSE oscillator. | |
| #define | STM32H7_CLK_LSE_CK 11 |
| LSE oscillator. | |
| #define | STM32H7_CLK_HSI_CK 18 |
| HSI oscillator, 64 MHz divided by HSIDIV. | |
| #define | STM32H7_CLK_CSI_CK 20 |
| CSI oscillator, 4 MHz. | |
| #define | STM32H7_CLK_RC48_CK 22 |
| HSI48 oscillator, 48 MHz. | |
| #define | STM32H7_CLK_LSI_CK 23 |
| LSI oscillator, 32 kHz. | |
| #define | STM32H7_CLK_PLLSRC 29 |
| PLL source, pllsrc: HSI, CSI or HSE. | |
| #define | STM32H7_CLK_PLL1_P 32 |
| PLL1 outputs. | |
| #define | STM32H7_CLK_PLL1_Q 33 |
| #define | STM32H7_CLK_PLL1_R 34 |
| #define | STM32H7_CLK_PLL2_P 35 |
| PLL2 outputs. | |
| #define | STM32H7_CLK_PLL2_Q 36 |
| #define | STM32H7_CLK_PLL2_R 37 |
| #define | STM32H7_CLK_PLL3_P 38 |
| PLL3 outputs. | |
| #define | STM32H7_CLK_PLL3_Q 39 |
| #define | STM32H7_CLK_PLL3_R 40 |
| #define | STM32H7_CLK_SYS_CK 30 |
| System clock, sys_ck. | |
| #define | STM32H7_CLK_SYS_D1CPRE 0 |
| Domain 1 core clock, sys_d1cpre_ck: the CPU. | |
| #define | STM32H7_CLK_HCLK 1 |
| AHB clock, rcc_hclk. | |
| #define | STM32H7_CLK_PCLK1 2 |
| APB1 clock, rcc_pclk1. | |
| #define | STM32H7_CLK_PCLK2 3 |
| APB2 clock, rcc_pclk2. | |
| #define | STM32H7_CLK_PCLK3 4 |
| APB3 clock. | |
| #define | STM32H7_CLK_PCLK4 5 |
| APB4 clock, rcc_pclk4. | |
| #define | STM32H7_CLK_GPIOA_CK 86 |
| GPIO port A to K clocks. | |
| #define | STM32H7_CLK_GPIOB_CK 85 |
| #define | STM32H7_CLK_GPIOC_CK 84 |
| #define | STM32H7_CLK_GPIOD_CK 83 |
| #define | STM32H7_CLK_GPIOE_CK 82 |
| #define | STM32H7_CLK_GPIOF_CK 81 |
| #define | STM32H7_CLK_GPIOG_CK 80 |
| #define | STM32H7_CLK_GPIOH_CK 79 |
| #define | STM32H7_CLK_GPIOI_CK 78 |
| #define | STM32H7_CLK_GPIOJ_CK 77 |
| #define | STM32H7_CLK_GPIOK_CK 76 |
| #define | STM32H7_CLK_CRC_CK 75 |
| CRC unit clock. | |
| #define | STM32H7_CLK_DMA1_CK 65 |
| DMA1 clock. | |
| #define | STM32H7_CLK_DMA2_CK 64 |
| DMA2 clock. | |
| #define | STM32H7_CLK_ADC3_CK 128 |
| ADC3 bus clock, which also clocks its conversions in synchronous mode. | |
| #define | STM32H7_CLK_LPTIM1_CK 144 |
| LPTIM1 kernel clock. | |
| #define | STM32H7_CLK_LPTIM2_CK 162 |
| LPTIM2 kernel clock. | |
| #define | STM32H7_CLK_SYSCFG_CK 111 |
| SYSCFG clock. | |
| #define | STM32H7_CLK_RNG_CK 127 |
| RNG kernel clock. | |
| #define | STM32H7_CLK_QUADSPI_CK 121 |
| QUADSPI kernel clock. | |
| #define | STM32H7_CLK_USART1_CK 156 |
| USART1 kernel clock. | |
| #define | STM32H7_CLK_RTC_CK 13 |
| RTC kernel clock, from the LSE, the LSI or the HSE. | |
| #define | STM32H7_CLK_RTCAPB_CK 108 |
| RTC bus clock. | |
| #define | STM32H7_CLK_UART8_CK 131 |
| UART8 kernel clock. | |
Supply configurations | |
The PWR CR3 supply fields of each configuration of the st,stm32h747-pwr binding. | |
| #define | PBL_CLK_STM32H7_SUPPLY_LDO 0x02U |
| #define | PBL_CLK_STM32H7_SUPPLY_DIRECT_SMPS 0x04U |
| #define | PBL_CLK_STM32H7_SUPPLY_SMPS_1V8_LDO 0x16U |
| #define | PBL_CLK_STM32H7_SUPPLY_SMPS_2V5_LDO 0x26U |
| #define | PBL_CLK_STM32H7_SUPPLY_SMPS_1V8_EXT_LDO 0x1eU |
| #define | PBL_CLK_STM32H7_SUPPLY_SMPS_2V5_EXT_LDO 0x2eU |
| #define | PBL_CLK_STM32H7_SUPPLY_SMPS_1V8_EXT_BYPASS 0x1dU |
| #define | PBL_CLK_STM32H7_SUPPLY_SMPS_2V5_EXT_BYPASS 0x2dU |
| #define | PBL_CLK_STM32H7_SUPPLY_BYPASS 0x01U |
Functions | |
| uint32_t | pbl_clk_stm32h7_reset_flags (const struct pbl_clk_controller *ctrl, bool clear) |
| Read the reset flags of the Cortex-M7. | |