a7xelte: Add GPS config files
authorDanny Wood <danwood76@gmail.com>
Thu, 25 Apr 2019 15:36:01 +0000 (16:36 +0100)
committerSourajit Karmakar <sourajit.karmakar@gmail.com>
Tue, 7 Jul 2020 14:49:25 +0000 (10:49 -0400)
Change-Id: Ic6fe71e6c9b145877ff85cb0edb191fb46ce389a

configs/gps/gps.conf [new file with mode: 0644]
configs/gps/gps.xml [new file with mode: 0644]
device.mk

diff --git a/configs/gps/gps.conf b/configs/gps/gps.conf
new file mode 100644 (file)
index 0000000..e3247c4
--- /dev/null
@@ -0,0 +1,5 @@
+NTP_SERVER=north-america.pool.ntp.org
+#XTRA_SERVER_1=http://gllto1.glpals.com/4day/v3/latest/lto2.dat
+#XTRA_SERVER_2=http://gllto2.glpals.com/4day/v3/latest/lto2.dat
+SUPL_HOST=supl.google.com
+SUPL_PORT=7275
\ No newline at end of file
diff --git a/configs/gps/gps.xml b/configs/gps/gps.xml
new file mode 100644 (file)
index 0000000..d3ca789
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<glgps xmlns="http://www.glpals.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.glpals.com/glconfig.xsd" >
+  <!--HAL Confguration  -->
+  <hal
+       PortName="/dev/ttySAC0"
+       BaudRate="921600"
+       GpioNStdbyPath="/sys/class/sec/gps/GPS_PWR_EN/value"
+       GpioDelayMs="250"
+       NvStorageDir="/data/system/gps/"
+
+       LogDirectory="/storage/emulated/0/gps/broadcom/storage"
+
+       LPmode="false"
+       CpColdStart="false"
+       CpGuardTimeSec="1"
+       ReAidingOnHotStart="false"
+       SuplSslMethod="SSLv23_NO_TLSv1_2"
+       SuplEnable="true"
+       SuplUseApn="false"
+       SuplTlsCertPath="/system/bin/gps.cer"
+       SuplTlsEnable="false"
+       SuplUT1Seconds="20"
+       SuplUT2Seconds="20"
+       SuplUT3Seconds="20"
+       SuplVersion="1"
+       TcpConnectionTimeout="20"
+       SuplLppCapable="false"
+
+       LbsEnable="true"
+       LbsServer="BCMLS2.glpals.com"
+       HttpSyncLto="true"
+       LbsCellEnable="false"
+       LtoDir="/data/system/gps/"
+
+       IgnoreJniTime="true"
+       HulaEnable="false"
+       AssertEnabled="false"
+       DisablePglorNmeaCallback="true"
+   />
+
+  <gll
+       LogPriMask="LOG_INFO"
+       LogFacMask="LOG_GLLIO | LOG_RAWDATA | LOG_GLLAPI | LOG_NMEA"
+       FrqPlan="FRQ_PLAN_26MHZ_2PPM_26MHZ_300PPB"
+       RfType="GL_RF_47520_BRCM_EXT_LNA"
+       WarmStandbyTimeout1Seconds="10"
+       WarmStandbyTimeout2Seconds="15"
+  >
+  </gll>
+
+  <gll_features
+       EnableLowPowerPmm="true"
+  />
+
+</glgps>
index 7237808faf69999e54a82113f1ff35af179c16ca..1d7e67411e02028d544abceac0229fdedeb0c3c4 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -24,6 +24,11 @@ PRODUCT_COPY_FILES += \
 
 PRODUCT_PACKAGES += \
     android.hardware.bluetooth@1.0-service
+    
+# GPS
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
+    $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
 
 # Ramdisk
 PRODUCT_PACKAGES += \