1#!/vendor/bin/sh
2path="/sys/devices/virtual/sec/tsp"
3
4echo "--- Force Touch Active ---"
5echo "force_touch_active,2,1" > $path/cmd && cat $path/cmd_result
6
7echo "--- LSI firmware version ---"
8cat $path/fw_version
9
10echo "--- LSI touch status ---"
11cat $path/status
12
13echo "--- Calibration info ---"
14echo "get_mis_cal_info" > $path/cmd && cat $path/cmd_result
15
16echo "--- Mutual Strength ---"
17echo "run_delta_read_all" > $path/cmd && cat $path/cmd_result
18
19echo "--- Self Strength ---"
20echo "run_self_delta_read_all" > $path/cmd && cat $path/cmd_result
21
22echo "--- TYPE_AMBIENT_DATA ---"
23echo "run_rawdata_read_type,3" > $path/cmd && cat $path/cmd_result
24
25echo "--- TYPE_DECODED_DATA ---"
26echo "run_rawdata_read_type,5" > $path/cmd && cat $path/cmd_result
27
28echo "--- TYPE_OFFSET_DATA_SEC ---"
29echo "run_rawdata_read_type,19" > $path/cmd && cat $path/cmd_result
30
31echo "--- TYPE_NOI_P2P_MIN ---"
32echo "run_rawdata_read_type,30" > $path/cmd && cat $path/cmd_result
33
34echo "--- TYPE_NOI_P2P_MAX ---"
35echo "run_rawdata_read_type,31" > $path/cmd && cat $path/cmd_result
36
37echo "--- Mutual Raw Cap ---"
38echo "run_rawcap_read_all" > $path/cmd && cat $path/cmd_result
39
40echo "--- Self Raw Cap ---"
41echo "run_self_rawcap_read_all" > $path/cmd && cat $path/cmd_result
42
43echo "--- CM2 ---"
44echo "run_rawcap_high_freq_read_all" > $path/cmd && cat $path/cmd_result
45
46echo "--- Force Touch Active ---"
47echo force_touch_active,2,0 > $path/cmd && cat $path/cmd_result
48
49