Skip to content

Commit 94a1158

Browse files
committed
m1n1.hw.dart: Support sub-instances
Signed-off-by: Hector Martin <[email protected]>
1 parent ad6b340 commit 94a1158

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxyclient/m1n1/hw/dart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def __init__(self, iface, regs, util=None, compat="dart,t8020", iova_range=(0x80
106106
self.ptecls = PTE_TYPES[compat]
107107

108108
@classmethod
109-
def from_adt(cls, u, path):
110-
dart_addr = u.adt[path].get_reg(0)[0]
109+
def from_adt(cls, u, path, instance=0, **kwargs):
110+
dart_addr = u.adt[path].get_reg(instance)[0]
111111
regs = DARTRegs(u, dart_addr)
112112
dart = cls(u.iface, regs, u)
113113
dart.ptecls = PTE_TYPES[u.adt[path].compatible[0]]

0 commit comments

Comments
 (0)