Commit 905938fd authored by Andy Ross's avatar Andy Ross Committed by Henrik Brix Andersen
Browse files

soc/mediatek: Add "mem" dump feature to mtk_adsp_load.py



Add a quick feature to pretty-print the Linux devicetree memory
regions defined for the DSP.

Signed-off-by: default avatarAndy Ross <andyross@google.com>
parent b2c9fd94
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -277,6 +277,11 @@ def main():
    elif sys.argv[1] == "log":
        log(dev)

    elif sys.argv[1] == "mem":
        print("Memory Regions:")
        for m in mmio.keys():
            print(f"  {m}: {mmio[m][1]} @ 0x{mmio[m][0]:08x}")

    elif sys.argv[1] == "dump":
        sz = mmio[sys.argv[2]][1]
        mm = maps[sys.argv[2]]