mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
28 lines
928 B
Diff
28 lines
928 B
Diff
From d420184997f302f546bb0862b1774cca6b43fb9a 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 | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/arch/arm/mach-sunxi/clock_sun50i_h6.c b/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
index a947463e0a..b97a09c382 100644
|
|
--- a/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
+++ b/arch/arm/mach-sunxi/clock_sun50i_h6.c
|
|
@@ -11,8 +11,11 @@ void clock_init_safe(void)
|
|
(struct sunxi_ccm_reg *)SUNXI_CCM_BASE;
|
|
|
|
/* this seems to enable PLLs on H616 */
|
|
- if (IS_ENABLED(CONFIG_MACH_SUN50I_H616))
|
|
+ if (IS_ENABLED(CONFIG_MACH_SUN50I_H616)) {
|
|
setbits_le32(SUNXI_PRCM_BASE + 0x250, 0x10);
|
|
+ /* enable GPU */
|
|
+ writel(0, 0x7010254);
|
|
+ }
|
|
|
|
clock_set_pll1(408000000);
|
|
|