Skip to content

Commit 0bc7c9a

Browse files
committed
fixup! proxyclient: setup: Support PMUs on A7-A11, T2
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
1 parent 38abe18 commit 0bc7c9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proxyclient/m1n1/hw/pmu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def reset_panic_counter(self):
3838
print("Reset panic unsupported")
3939
return
4040
self.i2c.write_reg(self.reg, counter, [0], regaddrlen=2)
41+
else:
42+
raise ValueError("Unsupported bus type") # should never happen
4143

4244
@staticmethod
4345
def find_primary_pmu(adt):
@@ -46,7 +48,7 @@ def find_primary_pmu(adt):
4648
for pmu in child:
4749
compat = getattr(pmu, "compatible")[0] if hasattr(pmu, "compatible") else "unset"
4850
primary = (getattr(pmu, "is-primary") == 1) if hasattr(pmu, "is-primary") else False
49-
if (compat == "pmu,spmi" or compat == "pmu,d2422") and primary:
51+
if compat in ("pmu,spmi", "pmu,d2422", "pmu,d2449") and primary:
5052
return (pmu._path.removeprefix('/device-tree'), "spmi")
5153
elif child.name.startswith("i2c"):
5254
for dev in child:

0 commit comments

Comments
 (0)