]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: shmobile: r8a7779: remove DIV4 clocks and use fixed ratio clock
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 27 Mar 2013 07:57:38 +0000 (00:57 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 28 Mar 2013 07:45:04 +0000 (16:45 +0900)
commit9a2e3cbca840228f854152063536aca90491ee88
treec8169d33c4db84013ee7a2519fe5bab3bfe77212
parentff4a73a245a3a8317276f5ef78ddbdf074322d46
ARM: shmobile: r8a7779: remove DIV4 clocks and use fixed ratio clock

R-Car H1 has many clocks, and it is possible to read/use clock ratio
of these clocks from FRQMRx as DIV4 clocks.
But, these ratio are fixed value and these are decided
by MD pin status.
This means that we can use fixed ratio clock via MD pin status,
instead of DIV4 clocks.

This patch reads MD pin status, and sets PLLA clock (= root clock),
and used fixed ratio clock for other clocks.
It was tesed on marzen board.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-r8a7779.c