mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-22 03:33:05 +00:00
5f3bd50b4a
Fixes: 183991ca19
("m1n1.hw.dart: Hide all DART variants behind common interface")
Signed-off-by: Janne Grunau <j@jannau.net>
19 lines
409 B
Python
Executable file
19 lines
409 B
Python
Executable file
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: MIT
|
|
import sys, pathlib
|
|
sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
|
|
|
|
import struct
|
|
|
|
from m1n1.setup import *
|
|
from m1n1 import asm
|
|
from m1n1.hw.dart import DART
|
|
|
|
if len(sys.argv) > 1:
|
|
dart_name = sys.argv[1]
|
|
else:
|
|
dart_name = "dart-disp0"
|
|
|
|
dart = DART.from_adt(u, "arm-io/" + dart_name)
|
|
dart.dump_all()
|
|
dart.dart.regs.dump_regs()
|