Linux Bare Metal Development Series Nine Based on IMX6ULLmini: Clock Control Module

Clock Control Module

core

4 levels to configure the chip clock

  • Crystal Clock

  • PLL and PFD clock

  • PLL selection clock

  • Root Clock/Peripheral Clock

System clock source

  • RTC clock source: 32.768KHz

  • System clock: 24MHz, used as the main crystal oscillator of the chip

PLL and PFD multiplied clock

7 phase-locked loop circuits (each phase-locked loop circuit can multiply the frequency of the clock)

  • ARM_PLL: drives the ARM core

  • 528_PLL: The frequency is fixed at 528MHZ, the multiplier parameter is fixed at 22, and the system bus clock

  • USB1_PLL: drives the first USB physical layer

  • AUDIO_PLL: drive audio interface

  • VIDEO_PLL: drive video interface

  • ENET_PLL: drives the external Ethernet interface

  • USB2_PLL: drives the second USB physical layer

10.3.1 Centralized components of clock management system

18.6 CCM Memory Map/Register Definition

  • CCM_ANALOG_PLL_XXX

    • Set the main frequency of the PPL clock (pll1_main_clk)

    • Enable PLL clock output

  • CCM_ANALOG_PFD_XXX

    • Set the frequency division coefficient of PFD under PPL

PLL selection clock

Select the output of PLL1 and PLL3, divide the frequency of PLL4 and PLL5

  • The cpu core clock comes from the PLL1 clock.

  • When the power is first turned on, the PLL1 clock is not initialized, and the arm core first uses the 24M crystal oscillator frequency, and then switches back to the PLL1 clock after the PLL1 clock is output stably.

CCM_CCSR: Select pll1_sw_clk, step_clk clock source

  • The step_clk clock source is set to 24M crystal oscillator

  • pll1_main_clk clock source is set to step_clk or pll1_main_clk

18.5.1.5.1 Clock Switcher

peripheral clock

Set the clock source for the peripheral. There are multiple options for the peripheral clock source:

  • The ladder icon indicates the configuration of the upper-level clock source

  • The square icon indicates the frequency division factor

The associated register is indicated next to the icon

18.3 CCM Clock Tree

Guess you like

Origin blog.csdn.net/qq_51519091/article/details/132381553