summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.tuna.rc6
-rw-r--r--ueventd.tuna.rc4
2 files changed, 9 insertions, 1 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index c5168de..c6ab6be 100644
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -51,6 +51,12 @@ on fs
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+# for GPS
+ chown root system /sys/class/sec/gps/GPS_PWR_EN/value
+ chmod 0660 /sys/class/sec/gps/GPS_PWR_EN/value
+ chown root system /sys/class/sec/gps/GPS_nRST/value
+ chmod 0660 /sys/class/sec/gps/GPS_nRST/value
+
service hciattach /system/bin/brcm_patchram_plus --enable_hci --no2bytes \
--tosleep 50000 --baudrate 3000000 --use_baudrate_for_download \
--patchram /vendor/firmware/bcm4330.hcd /dev/ttyO1
diff --git a/ueventd.tuna.rc b/ueventd.tuna.rc
index fc8d9ce..0be5fe7 100644
--- a/ueventd.tuna.rc
+++ b/ueventd.tuna.rc
@@ -14,8 +14,10 @@
/dev/timerirq 0660 system system
#for RIL
-/dev/ttyO0 0666 radio radio
/dev/umts_boot0 0666 radio radio
/dev/umts_ipc0 0666 radio radio
/dev/umts_rfs0 0666 radio radio
/dev/block/mmcblk0p9 0666 radio radio
+
+# used by RIL and GPS
+/dev/ttyO0 0666 system radio