experiments/dart_dump.py: Use DART.from_adt()

The label of the ADT node is easier to use. Uses the proper DART type on
t600x SoCs.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2022-02-19 11:06:38 +01:00 committed by Hector Martin
parent a57696366f
commit e1c5df5037

View file

@ -10,11 +10,12 @@ from m1n1 import asm
from m1n1.hw.dart import DART, DARTRegs
if len(sys.argv) > 1:
dart_addr = int(sys.argv[1], 16)
dart_name = sys.argv[1]
else:
dart_addr = 0x231304000
dart_name = "dart-disp0"
# disp0 DART
# note that there's another range just before this one
disp0 = DART(iface, DARTRegs(u, dart_addr))
disp0 = DART.from_adt(u, "arm-io/" + dart_name)
disp0.dump_all()
disp0.regs.dump_regs()