25 lines
786 B
Diff
25 lines
786 B
Diff
From 47486e201dc8b8a92ecc99b7d6822539d3ecb3f7 Mon Sep 17 00:00:00 2001
|
|
From: hongruichen <chraac@gmail.com>
|
|
Date: Wed, 10 Apr 2024 22:48:34 +0800
|
|
Subject: allwinner-common-h616-GPU-enable-hack.patch
|
|
|
|
---
|
|
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 dac3663e1be..1f3b4ad4db1 100644
|
|
--- a/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
+++ b/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
@@ -15,6 +15,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);
|
|
}
|
|
|
|
if (IS_ENABLED(CONFIG_MACH_SUN50I_H616) ||
|
|
--
|
|
GitLab
|