clk: samsung: add clock controller driver for s3c2410, s3c2440 and s3c2442
authorHeiko Stuebner <heiko@sntech.de>
Thu, 8 May 2014 20:49:10 +0000 (05:49 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 12 May 2014 23:00:40 +0000 (08:00 +0900)
commit3f7c01ade226e7006d76e42f8c9b99ada7085312
treefac5f4cc3bc92bfa44d61df54980011575af030a
parentf11cadd58280e3aed7f16eb648d50a8faf4ebb1a
clk: samsung: add clock controller driver for s3c2410, s3c2440 and s3c2442

This driver can handle the clock controllers of the socs mentioned above,
as they share a common clock tree with only small differences.

The clock structure is built according to the manuals of the included
SoCs and might include changes in comparison to the previous clock
structure.

As pll-rate-tables only the 12mhz variants are currently included.
The original code was wrongly checking for 169mhz xti values [a 0 to much
at the end], so the original 16mhz pll table would have never been
included and its values are so obscure that I have no possibility to
at least check their sane-ness. When using the formula from the manual
the resulting frequency is near the table value but still slightly off.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/clk/samsung/Makefile
drivers/clk/samsung/clk-s3c2410.c [new file with mode: 0644]
include/dt-bindings/clock/s3c2410.h [new file with mode: 0644]