Skip to content
  • Sean Anderson's avatar
    clk: k210: Re-add support for setting rate · 29e3067d
    Sean Anderson authored
    
    
    This adds support for setting clock rates, which was left out of the
    initial CCF expunging. There are several tricky bits here, mostly related
    to the PLLS:
    
    * The PLL's bypass is broken. If the PLL is reconfigured, any child clocks
      will be stopped.
    * PLL0 is the parent of ACLK which is the CPU and SRAM's clock. To prevent
      stopping the CPU while we configure PLL0's rate, ACLK is reparented
      to IN0 while PLL0 is disabled.
    * PLL1 is the parent of the AISRAM clock. This clock cannot be reparented,
      so we instead just disallow changing PLL1's rate after relocation (when
      we are using the AISRAM).
    
    Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
    Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
    29e3067d