Kconfig 942 B

123456789101112131415161718192021222324
  1. menuconfig RT_USING_CLK
  2. bool "Using Common Clock Framework (CLK)"
  3. depends on RT_USING_DM
  4. select RT_USING_ADT_REF
  5. default y
  6. help
  7. Enable the common clock framework so SoC clock providers can register
  8. themselves and consumers can obtain `struct rt_clk` handles to manage
  9. gate, mux and divider trees. This is required by most complex drivers
  10. (MMC, Ethernet, display) because they explicitly prepare and enable their
  11. input clocks before accessing hardware. The framework relies on the DM
  12. bus and device tree clock references, so disable it only on the smallest
  13. MCUs where every peripheral runs off the same fixed clock and no driver
  14. ever calls into the clock API.
  15. config RT_CLK_SCMI
  16. bool "Clock driver controlled via SCMI interface"
  17. depends on RT_USING_CLK
  18. depends on RT_FIRMWARE_ARM_SCMI
  19. default n
  20. if RT_USING_CLK
  21. osource "$(SOC_DM_CLK_DIR)/Kconfig"
  22. endif