| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef STM32MP1_CLK_H |
| 8 |
#define STM32MP1_CLK_H |
| 9 |
|
| 10 |
#include <arch_helpers.h> |
| 11 |
|
| 12 |
enum stm32mp_osc_id { |
| 13 |
_HSI, |
| 14 |
_HSE, |
| 15 |
_CSI, |
| 16 |
_LSI, |
| 17 |
_LSE, |
| 18 |
_I2S_CKIN, |
| 19 |
NB_OSC, |
| 20 |
_UNKNOWN_OSC_ID = 0xFF |
| 21 |
}; |
| 22 |
|
| 23 |
extern const char *stm32mp_osc_node_label[NB_OSC]; |
| 24 |
|
| 25 |
int stm32mp1_clk_probe(void); |
| 26 |
int stm32mp1_clk_init(void); |
| 27 |
|
| 28 |
bool stm32mp1_rcc_is_secure(void); |
| 29 |
bool stm32mp1_rcc_is_mckprot(void); |
| 30 |
|
| 31 |
|
| 32 |
void stm32mp1_clk_rcc_regs_lock(void); |
| 33 |
void stm32mp1_clk_rcc_regs_unlock(void); |
| 34 |
|
| 35 |
void stm32mp1_clk_mcuss_protect(bool enable); |
| 36 |
|
| 37 |
#ifdef STM32MP_SHARED_RESOURCES |
| 38 |
void stm32mp1_register_clock_parents_secure(unsigned long id); |
| 39 |
#endif |
| 40 |
#endif |