ARM: shmobile: add struct clk_ratio and fixed ratio clock macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 27 Mar 2013 07:55:41 +0000 (00:55 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 2 Apr 2013 02:02:16 +0000 (11:02 +0900)
commitf5942c76217e3f4c2a62a72c9d64997b8765f9e2
treef3eaa01107d9b320f5bd15a245f014092e5c181c
parentb3186c68805911599cbacceae23f60debb5e2210
ARM: shmobile: add struct clk_ratio and fixed ratio clock macro

Renesas chip has many clocks inside,
and some of them are using fixed ratio via parent clock.
Current shmobile clock code is using own divX_recalc function
and divX_clk_ops.
This patch can reduce these code

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.c
arch/arm/mach-shmobile/include/mach/clock.h [new file with mode: 0644]