summaryrefslogtreecommitdiffstats
path: root/arch/m68k/boards/phycore_mcf54xx/env/bin/pciloop
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/boards/phycore_mcf54xx/env/bin/pciloop')
-rw-r--r--arch/m68k/boards/phycore_mcf54xx/env/bin/pciloop13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/m68k/boards/phycore_mcf54xx/env/bin/pciloop b/arch/m68k/boards/phycore_mcf54xx/env/bin/pciloop
new file mode 100644
index 0000000000..4a804f9f31
--- /dev/null
+++ b/arch/m68k/boards/phycore_mcf54xx/env/bin/pciloop
@@ -0,0 +1,13 @@
+pci stat
+pci stat -c
+while true; do
+ pci readm 32 0xA1000000 32 -s
+ pci readm 32 0xA2000000 256 -s
+ pci writem 32 0xa2000100 0x12345678 4 -s
+ pci readm 32 0xA3000000 256 -s
+ pci writem 32 0xa3000100 0x12345678 4 -s
+ pci readm 32 0xA4000000 16 -s
+ pci writem 32 0xa4000080 0x12345678 4 -s
+
+# pci dmatx 2000 a3000040 128 -s
+done