diff options
| -rw-r--r-- | drivers/clk/sunxi/clk-sunxi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index b654b7b1d137..2cf6581329a6 100644 --- a/drivers/clk/sunxi/clk-sunxi.c +++ b/drivers/clk/sunxi/clk-sunxi.c | |||
| @@ -762,10 +762,19 @@ static const struct div_data sun4i_ahb_data __initconst = { | |||
| 762 | .width = 2, | 762 | .width = 2, |
| 763 | }; | 763 | }; |
| 764 | 764 | ||
| 765 | static const struct clk_div_table sun4i_apb0_table[] __initconst = { | ||
| 766 | { .val = 0, .div = 2 }, | ||
| 767 | { .val = 1, .div = 2 }, | ||
| 768 | { .val = 2, .div = 4 }, | ||
| 769 | { .val = 3, .div = 8 }, | ||
| 770 | { } /* sentinel */ | ||
| 771 | }; | ||
| 772 | |||
| 765 | static const struct div_data sun4i_apb0_data __initconst = { | 773 | static const struct div_data sun4i_apb0_data __initconst = { |
| 766 | .shift = 8, | 774 | .shift = 8, |
| 767 | .pow = 1, | 775 | .pow = 1, |
| 768 | .width = 2, | 776 | .width = 2, |
| 777 | .table = sun4i_apb0_table, | ||
| 769 | }; | 778 | }; |
| 770 | 779 | ||
| 771 | static const struct div_data sun6i_a31_apb2_div_data __initconst = { | 780 | static const struct div_data sun6i_a31_apb2_div_data __initconst = { |
