From ed7573fab40ebbfebbce0f1e1f23e63096417f26 Mon Sep 17 00:00:00 2001 From: Kali Prasad Date: Sat, 18 Sep 2021 22:57:05 +0530 Subject: [PATCH] Adding h616 THS workaround. Signed-off-by: Kali Prasad --- board/sunxi/board.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 7d343a93b2..3079ac0002 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -247,6 +247,15 @@ int board_init(void) } } +#if CONFIG_MACH_SUN50I_H616 + /* + * The bit[16] of register reg[0x03000000] must be zero for the THS + * driver to work properly in the kernel. The BSP u-boot is putting + * the whole register to zero so we are doing the same. + */ + writel(0x0, SUNXI_SRAMC_BASE); +#endif + #if CONFIG_IS_ENABLED(DM_I2C) /* * Temporary workaround for enabling I2C clocks until proper sunxi DM -- 2.34.1