]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: meson8b: Fix the vclk_div{1, 2, 4, 6, 12}_en gate bits
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Apr 2020 18:41:26 +0000 (20:41 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Apr 2020 08:26:53 +0000 (10:26 +0200)
commit6f7770371b40a3324a8932f5ce12bced8383407e
treeb6d8ce1645e24c7087fdf3bd2631f8efc5ad76b1
parenta8697be0aac3a3339eff1324e7fb5a4c1402916b
clk: meson: meson8b: Fix the vclk_div{1, 2, 4, 6, 12}_en gate bits

The DIV{1,2,4,6,12}_EN bits are actually located in HHI_VID_CLK_CNTL
register:
- HHI_VID_CLK_CNTL[0] = DIV1_EN
- HHI_VID_CLK_CNTL[1] = DIV2_EN
- HHI_VID_CLK_CNTL[2] = DIV4_EN
- HHI_VID_CLK_CNTL[3] = DIV6_EN
- HHI_VID_CLK_CNTL[4] = DIV12_EN

Update the bits accordingly so we will enable the bits in the correct
register once we switch these clocks to be mutable.

Fixes: fde60703c8c96a ("clk: meson: meson8b: add the read-only video clock trees")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200417184127.1319871-4-martin.blumenstingl@googlemail.com
drivers/clk/meson/meson8b.c