Gabriel Fernandez | bcd9506 | 2022-04-20 10:08:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2024, STMicroelectronics - All Rights Reserved |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef STM32MP2_CLK_H |
| 8 | #define STM32MP2_CLK_H |
| 9 | |
| 10 | #include <platform_def.h> |
| 11 | |
| 12 | enum stm32mp_osc_id { |
| 13 | _HSI, |
| 14 | _HSE, |
| 15 | _CSI, |
| 16 | _LSI, |
| 17 | _LSE, |
| 18 | _I2S_CKIN, |
| 19 | _SPDIF_SYMB, |
| 20 | NB_OSC, |
| 21 | _UNKNOWN_OSC_ID = 0xFF |
| 22 | }; |
| 23 | |
| 24 | extern const char *stm32mp_osc_node_label[NB_OSC]; |
| 25 | |
| 26 | enum pll_cfg { |
| 27 | FBDIV, |
| 28 | REFDIV, |
| 29 | POSTDIV1, |
| 30 | POSTDIV2, |
| 31 | PLLCFG_NB |
| 32 | }; |
| 33 | |
| 34 | enum pll_csg { |
| 35 | DIVVAL, |
| 36 | SPREAD, |
| 37 | DOWNSPREAD, |
| 38 | PLLCSG_NB |
| 39 | }; |
| 40 | |
| 41 | int stm32mp2_clk_init(void); |
| 42 | int stm32mp2_pll1_disable(void); |
| 43 | |
| 44 | #endif /* STM32MP2_CLK_H */ |