aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/clock-sh7786.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-02-19 04:22:25 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-02-22 05:11:20 -0500
commit0a5f337ecd20e70e84a5cfc0f2c24d0366087026 (patch)
tree947f3063cb56ca8e7b168b46432b1bd35475e075 /arch/sh/kernel/cpu/sh4a/clock-sh7786.c
parentde7ca2144c36291a491bd39afad172f56432a4bb (diff)
sh: introduce struct clk_div4_table
This patch introduces struct clk_div4_table. The structure will be used to keep div4 specific data, and is with this patch replacing the struct clk_div_mult_table pointer arg used by the sh_clk_div4_register() functions. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/clock-sh7786.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/clock-sh7786.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7786.c b/arch/sh/kernel/cpu/sh4a/clock-sh7786.c
index 494c636012bb..af69fd468703 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7786.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7786.c
@@ -59,11 +59,15 @@ static struct clk *clks[] = {
59static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, 59static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18,
60 24, 32, 36, 48 }; 60 24, 32, 36, 48 };
61 61
62static struct clk_div_mult_table div4_table = { 62static struct clk_div_mult_table div4_div_mult_table = {
63 .divisors = div2, 63 .divisors = div2,
64 .nr_divisors = ARRAY_SIZE(div2), 64 .nr_divisors = ARRAY_SIZE(div2),
65}; 65};
66 66
67static struct clk_div4_table div4_table = {
68 .div_mult_table = &div4_div_mult_table,
69};
70
67enum { DIV4_I, DIV4_SH, DIV4_B, DIV4_DDR, DIV4_DU, DIV4_P, DIV4_NR }; 71enum { DIV4_I, DIV4_SH, DIV4_B, DIV4_DDR, DIV4_DU, DIV4_P, DIV4_NR };
68 72
69#define DIV4(_str, _bit, _mask, _flags) \ 73#define DIV4(_str, _bit, _mask, _flags) \