summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
diff options
context:
space:
mode:
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..523169e
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#RST PCA@21 (base = 325) + 7
+echo 332 > /sys/class/gpio/export
+echo out > /sys/class/gpio/gpio332/direction
+
+#RST = 0
+echo 0 > /sys/class/gpio/gpio332/value
+#sleep 1
+#RST = 1
+echo 1 > /sys/class/gpio/gpio332/value
+
+echo 332 > /sys/class/gpio/unexport