SPEAr: clk: Add General Purpose Timer Synthesizer clock
authorViresh Kumar <viresh.kumar@st.com>
Wed, 11 Apr 2012 12:34:23 +0000 (18:04 +0530)
committerArnd Bergmann <arnd@arndb.de>
Sat, 12 May 2012 19:19:27 +0000 (21:19 +0200)
commita45896bd3a4b7beb571fa704efa7c2782b791093
treeabbcf23625304e123839af8af6e5ba278d20797e
parent270b9f421e66ee5d135c99ba1c2b883c7750ab6c
SPEAr: clk: Add General Purpose Timer Synthesizer clock

All SPEAr SoC's contain GPT Synthesizers. Their Fout is derived from
following equations:

Fout= Fin/((2 ^ (N+1)) * (M+1))

This patch adds in support for this type of clock.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Reviewed-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/spear/Makefile
drivers/clk/spear/clk-gpt-synth.c [new file with mode: 0644]
drivers/clk/spear/clk.h