1 From aa27fe4dadfe30764416e24eea8320cca6fabbf6 Mon Sep 17 00:00:00 2001
2 From: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
3 Date: Tue, 22 Jan 2019 09:16:19 +0100
4 Subject: clk: sunxi-ng: v3s: Fix TCON reset de-assert bit
6 [ Upstream commit 5c59801f7018acba11b12de59017a3fcdcf7421d ]
8 According to the datasheet and the reference code from Allwinner, the
9 bit used to de-assert the TCON reset is bit 4, not bit 3.
11 Fix it in the V3s CCU driver.
13 Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
14 Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
15 Signed-off-by: Sasha Levin <sashal@kernel.org>
17 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
21 index 621b1cd996db..ac12f261f8ca 100644
22 --- a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
23 +++ b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
24 @@ -542,7 +542,7 @@ static struct ccu_reset_map sun8i_v3s_ccu_resets[] = {
25 [RST_BUS_OHCI0] = { 0x2c0, BIT(29) },
27 [RST_BUS_VE] = { 0x2c4, BIT(0) },
28 - [RST_BUS_TCON0] = { 0x2c4, BIT(3) },
29 + [RST_BUS_TCON0] = { 0x2c4, BIT(4) },
30 [RST_BUS_CSI] = { 0x2c4, BIT(8) },
31 [RST_BUS_DE] = { 0x2c4, BIT(12) },
32 [RST_BUS_DBG] = { 0x2c4, BIT(31) },