mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-26 00:09:22 +00:00
Majestic settings & Startup scripts (device gk7202v300_lite_cootli_camv0103) (#19)
- In customizer.sh: added pins for IRCUT, IRLED, Speaker - init.d -> S35pinworks: workaround about SD Card power and reinit - init.d -> S80pinworks: Unmuxing GPIO pins routed to motors connector Article related to this board https://github.com/OpenIPC/wiki/blob/master/en/device-IPC-RM1-BLK7202V3-M43A-WIFI.md
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
# Bring power to SD CARD (GPIO70)
|
||||
gpio clear 70
|
||||
gpio unexport 70
|
||||
|
||||
# same thru devmem
|
||||
#devmem 0x120B8400 32 0x40 # set GPIO8_6 to output
|
||||
#devmem 0x120B8100 32 0x00 # set GPIO8_6 to LO
|
||||
|
||||
# bumping SDHCI driver
|
||||
echo 10010000.sdhci > /sys/bus/platform/drivers/sdhci-goke/unbind
|
||||
echo 10010000.sdhci > /sys/bus/platform/drivers/sdhci-goke/bind
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
# Unmuxing GPIO12, GPIO14, GPIO15 (motor H connector. pins 5, 4, 3)
|
||||
devmem 0x120c0010 32 0x1e02
|
||||
devmem 0x120c0018 32 0x1d02
|
||||
devmem 0x120c001c 32 0x1402
|
||||
|
||||
# Unpower motors winding (GPIO13 is HI after kernel modules load)
|
||||
gpio clear 13
|
||||
gpio unexport 13
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user