ARM64: juno: add sp810 support and fix sp804 clock frequency
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 7 May 2015 14:45:02 +0000 (15:45 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 12 May 2015 14:39:28 +0000 (16:39 +0200)
commit3bb1555c0d2df5b84da12d2b639aa89c45d141aa
tree22c676958ebc220a6dcdb2dd21222e8d01441a28
parentb60e23ba25fe2112751834280964fef8ffd89fad
ARM64: juno: add sp810 support and fix sp804 clock frequency

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: 71f867ec130e ("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: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/arm/juno-motherboard.dtsi