blob: b9226cdcc95f6b96b067e2110578f7bf5b3c268a [file] [log] [blame]
Gabriel Fernandezbcd95062022-04-20 10:08:49 +02001/*
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
12enum 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
24extern const char *stm32mp_osc_node_label[NB_OSC];
25
26enum pll_cfg {
27 FBDIV,
28 REFDIV,
29 POSTDIV1,
30 POSTDIV2,
31 PLLCFG_NB
32};
33
34enum pll_csg {
35 DIVVAL,
36 SPREAD,
37 DOWNSPREAD,
38 PLLCSG_NB
39};
40
41int stm32mp2_clk_init(void);
42int stm32mp2_pll1_disable(void);
43
44#endif /* STM32MP2_CLK_H */