hi androidezx, pleased to meet you.
Debugging pcap_ts is pretty easy.
You should be able to just cat the TS input device file, and it would show some garbage, assert that no other proccess had opened the file and that lower layers are working (see below).
I dont know how much of our (OpenEZX) code you have changed, so i will start at the most low level possible, if you are sure that some step is already working, just skip it.
1. assert that the pcap read/write funcions are functioning properly, (write/read the same register, compare values).
2. assert that the pcap irq demultiplexer is working. (add a printk on the irq demuxer on ezx-pcap.c)
3. install tslib, ts_test and ts_printraw, test that the touchscreen is working properly
4. i dont know about android, if it read directly from the kernel input subsystem you will have to find a way to do TS filtering, otherwise you will likely get some trash from the hardware (compare ts_test and ts_printraw stdout output).
If the above is not enough to get ts working on your phone some real-time support may help you. You can subscribe to our ML (openezx-devel@lists.openezx.org), or find us on #openezx on irc.freenode.net.