stm32mp2_clk.h 583 B

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