diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-14 07:19:57 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-14 23:55:29 -0300 |
commit | 9045bb8a72a81b9772394addcc7e875851910480 (patch) | |
tree | affcd36b4ba32010a90065da8df90add60999fd2 /kernels/linux-libre-lts-knock/0009-clk-sunxi-pll2-Fix-clock-running-too-fast.patch | |
parent | b20fd8d9fab5440ca12add8bf632a33f92995c83 (diff) | |
download | abslibre-9045bb8a72a81b9772394addcc7e875851910480.tar.gz abslibre-9045bb8a72a81b9772394addcc7e875851910480.tar.bz2 abslibre-9045bb8a72a81b9772394addcc7e875851910480.zip |
linux-libre-lts{,-knock}: fix patches for C.H.I.P
Diffstat (limited to 'kernels/linux-libre-lts-knock/0009-clk-sunxi-pll2-Fix-clock-running-too-fast.patch')
-rw-r--r-- | kernels/linux-libre-lts-knock/0009-clk-sunxi-pll2-Fix-clock-running-too-fast.patch | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/kernels/linux-libre-lts-knock/0009-clk-sunxi-pll2-Fix-clock-running-too-fast.patch b/kernels/linux-libre-lts-knock/0009-clk-sunxi-pll2-Fix-clock-running-too-fast.patch deleted file mode 100644 index 9704d17d6..000000000 --- a/kernels/linux-libre-lts-knock/0009-clk-sunxi-pll2-Fix-clock-running-too-fast.patch +++ /dev/null @@ -1,92 +0,0 @@ -From 59f0ec231f397001801264063db3b6dcc3eef590 Mon Sep 17 00:00:00 2001 -From: Maxime Ripard <maxime.ripard@free-electrons.com> -Date: Tue, 1 Dec 2015 12:14:52 +0100 -Subject: [PATCH 9/9] clk: sunxi: pll2: Fix clock running too fast - -Contrary to what the datasheet says, the pre divider doesn't seem to be -incremented by one in the PLL2, but just uses the value from the register, -with 0 being a bypass. - -This fixes the audio playing too fast. - -Since we now have the same pre-divider flags, and the only difference with -the A10 is the post-divider offset, also remove the structure to just pass -the offset as an argument. - -Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> -Fixes: eb662f854710 ("clk: sunxi: pll2: Add A13 support") -Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> ---- - drivers/clk/sunxi/clk-a10-pll2.c | 23 +++++------------------ - 1 file changed, 5 insertions(+), 18 deletions(-) - -diff --git a/drivers/clk/sunxi/clk-a10-pll2.c b/drivers/clk/sunxi/clk-a10-pll2.c -index 5484c31..0ee1f36 100644 ---- a/drivers/clk/sunxi/clk-a10-pll2.c -+++ b/drivers/clk/sunxi/clk-a10-pll2.c -@@ -41,15 +41,10 @@ - - #define SUN4I_PLL2_OUTPUTS 4 - --struct sun4i_pll2_data { -- u32 post_div_offset; -- u32 pre_div_flags; --}; -- - static DEFINE_SPINLOCK(sun4i_a10_pll2_lock); - - static void __init sun4i_pll2_setup(struct device_node *node, -- struct sun4i_pll2_data *data) -+ int post_div_offset) - { - const char *clk_name = node->name, *parent; - struct clk **clks, *base_clk, *prediv_clk; -@@ -76,7 +71,7 @@ static void __init sun4i_pll2_setup(struct device_node *node, - parent, 0, reg, - SUN4I_PLL2_PRE_DIV_SHIFT, - SUN4I_PLL2_PRE_DIV_WIDTH, -- data->pre_div_flags, -+ CLK_DIVIDER_ONE_BASED | CLK_DIVIDER_ALLOW_ZERO, - &sun4i_a10_pll2_lock); - if (!prediv_clk) { - pr_err("Couldn't register the prediv clock\n"); -@@ -127,7 +122,7 @@ static void __init sun4i_pll2_setup(struct device_node *node, - */ - val = readl(reg); - val &= ~(SUN4I_PLL2_POST_DIV_MASK << SUN4I_PLL2_POST_DIV_SHIFT); -- val |= (SUN4I_PLL2_POST_DIV_VALUE - data->post_div_offset) << SUN4I_PLL2_POST_DIV_SHIFT; -+ val |= (SUN4I_PLL2_POST_DIV_VALUE - post_div_offset) << SUN4I_PLL2_POST_DIV_SHIFT; - writel(val, reg); - - of_property_read_string_index(node, "clock-output-names", -@@ -191,25 +186,17 @@ err_unmap: - iounmap(reg); - } - --static struct sun4i_pll2_data sun4i_a10_pll2_data = { -- .pre_div_flags = CLK_DIVIDER_ONE_BASED | CLK_DIVIDER_ALLOW_ZERO, --}; -- - static void __init sun4i_a10_pll2_setup(struct device_node *node) - { -- sun4i_pll2_setup(node, &sun4i_a10_pll2_data); -+ sun4i_pll2_setup(node, 0); - } - - CLK_OF_DECLARE(sun4i_a10_pll2, "allwinner,sun4i-a10-pll2-clk", - sun4i_a10_pll2_setup); - --static struct sun4i_pll2_data sun5i_a13_pll2_data = { -- .post_div_offset = 1, --}; -- - static void __init sun5i_a13_pll2_setup(struct device_node *node) - { -- sun4i_pll2_setup(node, &sun5i_a13_pll2_data); -+ sun4i_pll2_setup(node, 1); - } - - CLK_OF_DECLARE(sun5i_a13_pll2, "allwinner,sun5i-a13-pll2-clk", --- -cgit v0.12 - |