Skip to content
  • Sudeep Holla's avatar
    ARM64: juno: add sp810 support and fix sp804 clock frequency · 3bb1555c
    Sudeep Holla authored
    The clock generator in IOFPGA generates the two source clocks: 32kHz and
    1MHz for the SP810 System Controller.
    
    The SP810 System Controller selects 32kHz or 1MHz as the sources for
    TIM_CLK[3:0], the SP804 timer clocks. The powerup default is 32kHz but
    the maximum of "refclk" and "timclk" is chosen by the SP810 driver.
    
    This patch adds support for SP810 system controller and also fixes the
    SP804 timer clock frequency.
    
    However the SP804 driver needs to be enabled on ARM64 to test this,
    which requires SP804 driver to be moved out of arch/arm.
    
    Fixes: 71f867ec
    
     ("arm64: Add Juno board device tree.")
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Olof Johansson <olof@lixom.net>
    Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
    Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    3bb1555c