]>
Commit | Line | Data |
---|---|---|
e7e2c20d SL |
1 | From e7fdade12497265520560ce7dfa8e7db594f9b9d Mon Sep 17 00:00:00 2001 |
2 | From: Maxime Jourdan <mjourdan@baylibre.com> | |
3 | Date: Tue, 19 Mar 2019 11:25:37 +0100 | |
4 | Subject: clk: meson-gxbb: round the vdec dividers to closest | |
5 | ||
6 | [ Upstream commit 9b70c697e87286ade406e6a02091757307dd4b7c ] | |
7 | ||
8 | We want the video decoder clocks to always round to closest. While the | |
9 | muxes are already using CLK_MUX_ROUND_CLOSEST, the corresponding | |
10 | CLK_DIVIDER_ROUND_CLOSEST was forgotten for the dividers. | |
11 | ||
12 | Fix this by adding the flag to the two vdec dividers. | |
13 | ||
14 | Fixes: a565242eb9fc ("clk: meson: gxbb: add the video decoder clocks") | |
15 | Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com> | |
16 | Acked-by: Neil Armstrong <narmstrong@baylibre.com> | |
17 | Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> | |
18 | Link: https://lkml.kernel.org/r/20190319102537.2043-1-mjourdan@baylibre.com | |
19 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
20 | --- | |
21 | drivers/clk/meson/gxbb.c | 2 ++ | |
22 | 1 file changed, 2 insertions(+) | |
23 | ||
24 | diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c | |
25 | index 6628ffa31383a..4d4f6d842c31c 100644 | |
26 | --- a/drivers/clk/meson/gxbb.c | |
27 | +++ b/drivers/clk/meson/gxbb.c | |
28 | @@ -1571,6 +1571,7 @@ static struct clk_regmap gxbb_vdec_1_div = { | |
29 | .offset = HHI_VDEC_CLK_CNTL, | |
30 | .shift = 0, | |
31 | .width = 7, | |
32 | + .flags = CLK_DIVIDER_ROUND_CLOSEST, | |
33 | }, | |
34 | .hw.init = &(struct clk_init_data){ | |
35 | .name = "vdec_1_div", | |
36 | @@ -1616,6 +1617,7 @@ static struct clk_regmap gxbb_vdec_hevc_div = { | |
37 | .offset = HHI_VDEC2_CLK_CNTL, | |
38 | .shift = 16, | |
39 | .width = 7, | |
40 | + .flags = CLK_DIVIDER_ROUND_CLOSEST, | |
41 | }, | |
42 | .hw.init = &(struct clk_init_data){ | |
43 | .name = "vdec_hevc_div", | |
44 | -- | |
45 | 2.20.1 | |
46 |