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 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:
|
||||
dart_name = sys.argv[1]
|
||||
dart_path = "/arm-io/" + sys.argv[1]
|
||||
else:
|
||||
dart_name = "dart-disp0"
|
||||
dart_path = "/arm-io/dart-disp0"
|
||||
|
||||
# disp0 DART
|
||||
# note that there's another range just before this one
|
||||
disp0 = DART.from_adt(u, "arm-io/" + dart_name)
|
||||
disp0.dump_all()
|
||||
disp0.regs.dump_regs()
|
||||
if u.adt[dart_path].compatible[0] == "dart,t8110":
|
||||
dart = DART8110.from_adt(u, dart_path)
|
||||
else:
|
||||
dart = DART.from_adt(u, dart_path)
|
||||
|
||||
dart.dump_all()
|
||||
dart.regs.dump_regs()
|
||||
|
|
Loading…
Reference in a new issue