clk: samsung: register clk_div_tables for divider clocks
authorHeiko Stuebner <heiko@sntech.de>
Mon, 18 Mar 2013 04:43:52 +0000 (13:43 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 28 Mar 2013 05:46:03 +0000 (14:46 +0900)
commit798ed613f5db7f61a7773412b9a6bc3d37d17ecb
tree1fb1a600a39cf0a74963f59f859e9b04b14879c0
parent8b6076d47ff820d1dc7a9aa37c712b561f316a78
clk: samsung: register clk_div_tables for divider clocks

On some Samsung platforms divider clocks only use specific divider
combinations like the armdiv on s3c2443 and s3c2416. For these
usecases the generic divider clock already provides the option of
providing a lookup table mapping register values to divider values.

Therefore add a new field to samsung_div_clock and if filled with a
table, use clk_register_divider_table instead of clk_register_divider
to register a divider clock

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/clk/samsung/clk.c
drivers/clk/samsung/clk.h