mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-18 09:53:04 +00:00
experiments/dart_dump: Add spport for dart-t8110
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
d12e4e4277
commit
06826b63f7
1 changed files with 11 additions and 8 deletions
|
@ -7,15 +7,18 @@ import struct
|
||||||
|
|
||||||
from m1n1.setup import *
|
from m1n1.setup import *
|
||||||
from m1n1 import asm
|
from m1n1 import asm
|
||||||
from m1n1.hw.dart import DART, DARTRegs
|
from m1n1.hw.dart import DART
|
||||||
|
from m1n1.hw.dart8110 import DART8110
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
dart_name = sys.argv[1]
|
dart_path = "/arm-io/" + sys.argv[1]
|
||||||
else:
|
else:
|
||||||
dart_name = "dart-disp0"
|
dart_path = "/arm-io/dart-disp0"
|
||||||
|
|
||||||
# disp0 DART
|
if u.adt[dart_path].compatible[0] == "dart,t8110":
|
||||||
# note that there's another range just before this one
|
dart = DART8110.from_adt(u, dart_path)
|
||||||
disp0 = DART.from_adt(u, "arm-io/" + dart_name)
|
else:
|
||||||
disp0.dump_all()
|
dart = DART.from_adt(u, dart_path)
|
||||||
disp0.regs.dump_regs()
|
|
||||||
|
dart.dump_all()
|
||||||
|
dart.regs.dump_regs()
|
||||||
|
|
Loading…
Reference in a new issue