ARM: shmobile: rcar-gen2: Obtain extal frequency from DT
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 13 Jun 2016 10:29:37 +0000 (12:29 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 29 Jun 2016 12:42:02 +0000 (14:42 +0200)
commit9f5ce39ddb8f68b30cd65ae33d32f3b47a58d350
treef8ad8999e664983c9068ce54117e3577c1206d59
parenta57ac4c16b261d63b5c957353acdca92628b2ca5
ARM: shmobile: rcar-gen2: Obtain extal frequency from DT

On some R-Car Gen2 SoCs, the frequency of the ARM architecture timer
depends on the frequency of the external clock crystal.  Currently the
latter is determined indirectly from the state of the mode pins, which
is a relic predating DT.

Obtain the external clock crystal frequency from DT instead, removing
the dependency on the mode pins.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/setup-rcar-gen2.c