0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-01 05:41:22 +00:00
Lakka-LibreELEC/projects/Allwinner/patches/atf/0001-sunxi-Don-t-enable-referenced-regulators.patch
Jernej Skrabec 706d689039 Allwinner: atf: Don't enable all regulators
Some boards, like OrangePi 3, needs special power on sequence for some
regulators. Leave that to kernel.

Note: This is workaround. Possible solution was already discussed and
fix will likely be included in one of the next ATF versions.
2021-01-02 16:50:01 +01:00

27 lines
874 B
Diff

From 89a2da7c8bae95cf9225015489736e2fc434f4d9 Mon Sep 17 00:00:00 2001
From: Jernej Skrabec <jernej.skrabec@siol.net>
Date: Sat, 2 Jan 2021 16:35:31 +0100
Subject: [PATCH] sunxi: Don't enable referenced regulators
This break certain devices which need appropriate power on sequence.
---
drivers/allwinner/axp/common.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/allwinner/axp/common.c b/drivers/allwinner/axp/common.c
index e98b16fdb2ec..45c6507e0e23 100644
--- a/drivers/allwinner/axp/common.c
+++ b/drivers/allwinner/axp/common.c
@@ -98,8 +98,6 @@ static int setup_regulator(const void *fdt, int node,
static bool should_enable_regulator(const void *fdt, int node)
{
- if (fdt_getprop(fdt, node, "phandle", NULL) != NULL)
- return true;
if (fdt_getprop(fdt, node, "regulator-always-on", NULL) != NULL)
return true;
return false;
--
2.30.0