mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-18 09:53:04 +00:00
23b9b45040
Signed-off-by: Hector Martin <marcan@marcan.st>
25 lines
609 B
Python
25 lines
609 B
Python
# SPDX-License-Identifier: MIT
|
|
|
|
from m1n1.utils import irange
|
|
|
|
# Map the entire MMIO range as traceable
|
|
for r in hv.adt["/arm-io"].ranges:
|
|
trace_range(irange(r.parent_addr, r.size), mode=TraceMode.ASYNC)
|
|
|
|
# Skip some noisy devices
|
|
try:
|
|
trace_device("/arm-io/usb-drd0", False)
|
|
except KeyError:
|
|
pass
|
|
try:
|
|
trace_device("/arm-io/usb-drd1", False)
|
|
except KeyError:
|
|
pass
|
|
try:
|
|
trace_device("/arm-io/uart2", False)
|
|
except KeyError:
|
|
pass
|
|
trace_device("/arm-io/error-handler", False)
|
|
trace_device("/arm-io/aic", False)
|
|
trace_device("/arm-io/spi1", False)
|
|
trace_device("/arm-io/pmgr", False)
|