clk: meson: meson8b: Fix the polarity of the RESET_N lines
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Apr 2020 18:41:25 +0000 (20:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:22 +0000 (17:50 +0200)
commitecb9a8068ba525ca7cf9fe168067f701663cd599
tree6e65a46db221efd0e546403ab9c270418219bc59
parent1fa1d1ceb02f2a19c61178fbaaaee9ef070c0a43
clk: meson: meson8b: Fix the polarity of the RESET_N lines

[ Upstream commit 0d3051c790ed2ef6bd91b92b07220313f06b95b3 ]

CLKC_RESET_VID_DIVIDER_CNTL_RESET_N_POST and
CLKC_RESET_VID_DIVIDER_CNTL_RESET_N_PRE are active low. This means:
- asserting them requires setting the register value to 0
- de-asserting them requires setting the register value to 1

Set the register value accordingly for these two reset lines by setting
the inverted the register value compared to all other reset lines.

Fixes: 189621726bc2f6 ("clk: meson: meson8b: register the built-in reset controller")
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-3-martin.blumenstingl@googlemail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/meson/meson8b.c