From 093a3ad25ec0eca3d7a535a2d054b15f7ce1f757 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Jul 2011 16:52:01 +0200 Subject: DMA support in IPE Camera --- tests/Frame_Req.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/Reset_Init.sh | 23 +++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100755 tests/Frame_Req.sh create mode 100755 tests/Reset_Init.sh (limited to 'tests') diff --git a/tests/Frame_Req.sh b/tests/Frame_Req.sh new file mode 100755 index 0000000..484f9ee --- /dev/null +++ b/tests/Frame_Req.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +echo " Reset Readout and CMOSIS " +pci -w 0xd2009040 1e5 +pci -r 0xd2009040 -s 10 +echo " Release Reset for CMOSIS" +pci -w 0xd2009040 1e1 +pci -r 0xd2009040 -s 10 + +sleep 1 +echo " Start CMOSIS Configuration .." +pci -w 0xd2009000 f301 +pci -r 0xd2009000 -s 10 + +usleep 1000 +pci -w 0xd2009000 d207 +pci -r 0xd2009000 -s 10 +usleep 1000 +echo " Number of rows set here " +pci -w 0xd2009000 8110 +pci -r 0xd2009000 -s 10 + +usleep 1000 +pci -w 0xd2009000 8200 +pci -r 0xd2009000 -s 10 + +sleep 1 +echo "Set packet siye 1024 .. " +pci -w xrawdata_packet_length 4096 +pci --start-dma dma1 +sleep 1 + +echo "Send frame request ... " +pci -w 0xd2009040 1e9 +pci -w 0xd2009040 1e1 + +echo "Status ... " +pci -r 0xd2009000 -s 100 + +echo "Enable Readout ... " +pci -w 0xd2009040 3e1 +pci -r 0xd2009000 -s 100 + +for i in `seq 1 10`; do +# pci -r dma1 -s 1024 -o bench.out + pci -r dma1 -s 4096 +done + +pci --stop-dma dma1 + diff --git a/tests/Reset_Init.sh b/tests/Reset_Init.sh new file mode 100755 index 0000000..198cbfc --- /dev/null +++ b/tests/Reset_Init.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +echo " Reset Readout and CMOSIS " +pci -w 0xd2009040 1e5 +echo " Release Reset for Readout" +pci -w 0xd2009040 1e1 + +echo " Start CMOSIS Configuration .." +pci -w 0xd2009000 f301 +pci -r 0xd2009000 -s 4 + +pci -w 0xd2009000 d207 +pci -r 0xd2009000 -s 4 + +pci -w 0xd2009000 8101 +pci -r 0xd2009000 -s 4 + +pci -w 0xd2009000 8200 +pci -r 0xd2009000 -s 4 +echo " End CMOSIS Configuration .." +pci -w 0xd2009040 3e1 + +pci -r 0xd2009000 -s 100 -- cgit v1.2.3