27 lines
840 B
Diff
27 lines
840 B
Diff
From 8064f0b57b15ff957b9b33099662870302e42664 Mon Sep 17 00:00:00 2001
|
|
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Date: Sat, 16 Oct 2021 21:33:35 +0200
|
|
Subject: [PATCH] sunxi: H616 GPU enable hack
|
|
|
|
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
---
|
|
arch/arm/mach-sunxi/clock_sun50i_h6.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/arch/arm/mach-sunxi/clock_sun50i_h6.c b/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
index 7926394cf7..f12f962530 100644
|
|
--- a/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
+++ b/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
@@ -16,6 +16,8 @@ void clock_init_safe(void)
|
|
/* this seems to enable PLLs on H616 */
|
|
setbits_le32(&prcm->sys_pwroff_gating, 0x10);
|
|
setbits_le32(&prcm->res_cal_ctrl, 2);
|
|
+ /* enable GPU */
|
|
+ writel(0, 0x7010254);
|
|
}
|
|
|
|
clrbits_le32(&prcm->res_cal_ctrl, 1);
|
|
--
|
|
2.34.1
|
|
|