summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-09-14 09:21:52 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-09-14 09:21:52 +0300
commit289fbd4f83543451323d6ce275fad1b5a85b61f1 (patch)
tree02310521c3426cad6b9c9f7321a26509d47044c4 /meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
Initial commit for ADAS boards support in 2.23.0
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init')
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
new file mode 100644
index 0000000..b7137e2
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#RST PCA@21 (base = 324) + 7
+echo 331 > /sys/class/gpio/export
+echo out > /sys/class/gpio/gpio331/direction
+
+#RST = 0
+echo 0 > /sys/class/gpio/gpio331/value
+#sleep 1
+#RST = 1
+echo 1 > /sys/class/gpio/gpio331/value
+
+echo 331 > /sys/class/gpio/unexport