From e9aa5a11141a72131caf302f99bbfc7951ae0d7c Mon Sep 17 00:00:00 2001 From: Wayne Lin Date: Fri, 19 Jan 2024 22:19:59 +0800 Subject: [PATCH] gps: refine iGNSS build system Bug: 315915958 Test: build pass and GPS function works Change-Id: I1e7aa6d0e705810d9c81f89453e11acaa54d9d3b --- device-caiman.mk | 9 +- device-komodo.mk | 9 +- device-ripcurrent24.mk | 8 +- device-ripcurrentpro.mk | 8 +- device-tokay.mk | 9 +- factory_caiman.mk | 16 +- factory_komodo.mk | 16 +- factory_ripcurrent24.mk | 14 ++ factory_ripcurrentpro.mk | 14 ++ factory_tokay.mk | 14 ++ location/caiman/Android.bp | 51 ++++- location/caiman/user/gps.cfg | 123 +++++++++++ location/caiman/userdebug/gps.cfg | 247 +++++++++++++++++++++++ location/komodo/Android.bp | 51 ++++- location/komodo/user/gps.cfg | 123 +++++++++++ location/komodo/userdebug/gps.cfg | 247 +++++++++++++++++++++++ location/ripcurrent24/Android.bp | 51 ++++- location/ripcurrent24/user/gps.cfg | 123 +++++++++++ location/ripcurrent24/userdebug/gps.cfg | 247 +++++++++++++++++++++++ location/ripcurrentpro/Android.bp | 51 ++++- location/ripcurrentpro/user/gps.cfg | 123 +++++++++++ location/ripcurrentpro/userdebug/gps.cfg | 247 +++++++++++++++++++++++ location/tokay/Android.bp | 51 ++++- location/tokay/user/gps.cfg | 123 +++++++++++ location/tokay/userdebug/gps.cfg | 247 +++++++++++++++++++++++ 25 files changed, 2192 insertions(+), 30 deletions(-) create mode 100644 location/caiman/user/gps.cfg create mode 100644 location/caiman/userdebug/gps.cfg create mode 100644 location/komodo/user/gps.cfg create mode 100644 location/komodo/userdebug/gps.cfg create mode 100644 location/ripcurrent24/user/gps.cfg create mode 100644 location/ripcurrent24/userdebug/gps.cfg create mode 100644 location/ripcurrentpro/user/gps.cfg create mode 100644 location/ripcurrentpro/userdebug/gps.cfg create mode 100644 location/tokay/user/gps.cfg create mode 100644 location/tokay/userdebug/gps.cfg diff --git a/device-caiman.mk b/device-caiman.mk index 7e8a11fc..faeaa76e 100644 --- a/device-caiman.mk +++ b/device-caiman.mk @@ -44,7 +44,6 @@ include device/google/gs-common/bcmbt/bluetooth.mk include device/google/gs-common/touch/gti/gti.mk include device/google/gs-common/touch/syna/syna20.mk include device/google/caimito/fingerprint/ultrasonic_udfps.mk --include vendor/samsung_slsi/gps/s5400/location/gnssd/device-gnss.mk # go/lyric-soong-variables $(call soong_config_set,lyric,camera_hardware,caiman) @@ -218,10 +217,16 @@ PRODUCT_SOONG_NAMESPACES += \ device/google/caimito/caiman/uwb # Location +# iGNSS +-include vendor/samsung_slsi/gps/s5400/device-gnss.mk +# gps.cfg +PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/caiman +$(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT)) +PRODUCT_PACKAGES += gps.cfg +# eGNSS # SDK build system $(call soong_config_set, include_libsitril-gps-wifi, board_without_radio, $(BOARD_WITHOUT_RADIO)) include device/google/gs-common/gps/brcm/device.mk - PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/caiman SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += gpsconf diff --git a/device-komodo.mk b/device-komodo.mk index 5fbc3046..1d6a82b2 100644 --- a/device-komodo.mk +++ b/device-komodo.mk @@ -44,7 +44,6 @@ include device/google/gs-common/bcmbt/bluetooth.mk include device/google/gs-common/touch/gti/gti.mk include device/google/gs-common/touch/syna/syna20.mk include device/google/caimito/fingerprint/ultrasonic_udfps.mk --include vendor/samsung_slsi/gps/s5400/location/gnssd/device-gnss.mk # go/lyric-soong-variables $(call soong_config_set,lyric,camera_hardware,komodo) @@ -236,10 +235,16 @@ PRODUCT_SOONG_NAMESPACES += \ device/google/caimito/komodo/uwb # Location +# iGNSS +-include vendor/samsung_slsi/gps/s5400/device-gnss.mk +# gps.cfg +PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/komodo +$(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT)) +PRODUCT_PACKAGES += gps.cfg +# eGNSS # SDK build system $(call soong_config_set, include_libsitril-gps-wifi, board_without_radio, $(BOARD_WITHOUT_RADIO)) include device/google/gs-common/gps/brcm/device.mk - PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/komodo SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += gpsconf diff --git a/device-ripcurrent24.mk b/device-ripcurrent24.mk index 00aaa561..91246728 100644 --- a/device-ripcurrent24.mk +++ b/device-ripcurrent24.mk @@ -29,7 +29,6 @@ include hardware/google/pixel/vibrator/cs40l26/device-stereo.mk include device/google/gs-common/bcmbt/bluetooth.mk include device/google/gs-common/touch/stm/stm20.mk include device/google/caimito/fingerprint/ultrasonic_udfps.mk --include vendor/samsung_slsi/gps/s5400/location/gnssd/device-gnss.mk # go/lyric-soong-variables # Set to 'ripcurrent' as ripcurrent camera service is compatible with ripcurrent24. @@ -199,6 +198,13 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/caimito/prebuilts # Location +# iGNSS +-include vendor/samsung_slsi/gps/s5400/device-gnss.mk +# gps.cfg +PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/ripcurrent24 +$(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT)) +PRODUCT_PACKAGES += gps.cfg +# eGNSS # SDK build system $(call soong_config_set, include_libsitril-gps-wifi, board_without_radio, $(BOARD_WITHOUT_RADIO)) include device/google/gs-common/gps/brcm/device.mk diff --git a/device-ripcurrentpro.mk b/device-ripcurrentpro.mk index beddcb06..d6371842 100644 --- a/device-ripcurrentpro.mk +++ b/device-ripcurrentpro.mk @@ -200,10 +200,16 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/caimito/prebuilts # Location +# iGNSS +-include vendor/samsung_slsi/gps/s5400/device-gnss.mk +# gps.cfg +PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/ripcurrentpro +$(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT)) +PRODUCT_PACKAGES += gps.cfg +# eGNSS # SDK build system $(call soong_config_set, include_libsitril-gps-wifi, board_without_radio, $(BOARD_WITHOUT_RADIO)) include device/google/gs-common/gps/brcm/device.mk - PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/ripcurrentpro SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += gpsconf diff --git a/device-tokay.mk b/device-tokay.mk index 4e461a14..9e492737 100644 --- a/device-tokay.mk +++ b/device-tokay.mk @@ -37,7 +37,6 @@ include device/google/gs-common/bcmbt/bluetooth.mk include device/google/gs-common/touch/gti/gti.mk include device/google/gs-common/touch/syna/syna20.mk include device/google/caimito/fingerprint/ultrasonic_udfps.mk --include vendor/samsung_slsi/gps/s5400/location/gnssd/device-gnss.mk # go/lyric-soong-variables $(call soong_config_set,lyric,camera_hardware,tokay) @@ -210,10 +209,16 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/caimito/prebuilts # Location +# iGNSS +-include vendor/samsung_slsi/gps/s5400/device-gnss.mk +# gps.cfg +PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/tokay +$(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT)) +PRODUCT_PACKAGES += gps.cfg +# eGNSS # SDK build system $(call soong_config_set, include_libsitril-gps-wifi, board_without_radio, $(BOARD_WITHOUT_RADIO)) include device/google/gs-common/gps/brcm/device.mk - PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/tokay SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += gpsconf diff --git a/factory_caiman.mk b/factory_caiman.mk index b029c77e..5b95e43b 100644 --- a/factory_caiman.mk +++ b/factory_caiman.mk @@ -30,6 +30,20 @@ PRODUCT_MANUFACTURER := Google PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" +# Location +# iGNSS +PRODUCT_PACKAGES += \ + sctd \ + spad \ + swcnd \ + libmptool_json \ + libmptool_log \ + libmptool_utils \ + sctd.json \ + spad.json \ + swcnd.json \ + android.hardware.gnss@2.1-impl +# eGNSS # Override to factory SDK SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += sdkv1 @@ -44,4 +58,4 @@ SOONG_CONFIG_gpssdk_gpsconf := factory # Factory binaries of camera PRODUCT_PACKAGES += fatp_km4cm4tk4_wide_hat_tool fatp_km4cm4_tele_hat_tool fatp_km4cm4tk4_ultrawide_hat_tool fatp_km4cm4_front_hat_tool -PRODUCT_WITHOUT_TTS_VOICE_PACKS := true \ No newline at end of file +PRODUCT_WITHOUT_TTS_VOICE_PACKS := true diff --git a/factory_komodo.mk b/factory_komodo.mk index 45c7f829..8e344f55 100644 --- a/factory_komodo.mk +++ b/factory_komodo.mk @@ -30,6 +30,20 @@ PRODUCT_MANUFACTURER := Google PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" +# Location +# iGNSS +PRODUCT_PACKAGES += \ + sctd \ + spad \ + swcnd \ + libmptool_json \ + libmptool_log \ + libmptool_utils \ + sctd.json \ + spad.json \ + swcnd.json \ + android.hardware.gnss@2.1-impl +# eGNSS # Override to factory SDK SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += sdkv1 @@ -44,4 +58,4 @@ SOONG_CONFIG_gpssdk_gpsconf := factory # Factory binaries of camera PRODUCT_PACKAGES += fatp_km4cm4tk4_wide_hat_tool fatp_km4cm4_tele_hat_tool fatp_km4cm4tk4_ultrawide_hat_tool fatp_km4cm4_front_hat_tool -PRODUCT_WITHOUT_TTS_VOICE_PACKS := true \ No newline at end of file +PRODUCT_WITHOUT_TTS_VOICE_PACKS := true diff --git a/factory_ripcurrent24.mk b/factory_ripcurrent24.mk index 3f722f9e..29eb39fc 100644 --- a/factory_ripcurrent24.mk +++ b/factory_ripcurrent24.mk @@ -30,6 +30,20 @@ PRODUCT_MANUFACTURER := Google PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" +# Location +# iGNSS +PRODUCT_PACKAGES += \ + sctd \ + spad \ + swcnd \ + libmptool_json \ + libmptool_log \ + libmptool_utils \ + sctd.json \ + spad.json \ + swcnd.json \ + android.hardware.gnss@2.1-impl +# eGNSS # Override to factory SDK SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += sdkv1 diff --git a/factory_ripcurrentpro.mk b/factory_ripcurrentpro.mk index 6c15cb58..3038e8b4 100644 --- a/factory_ripcurrentpro.mk +++ b/factory_ripcurrentpro.mk @@ -30,6 +30,20 @@ PRODUCT_MANUFACTURER := Google PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" +# Location +# iGNSS +PRODUCT_PACKAGES += \ + sctd \ + spad \ + swcnd \ + libmptool_json \ + libmptool_log \ + libmptool_utils \ + sctd.json \ + spad.json \ + swcnd.json \ + android.hardware.gnss@2.1-impl +# eGNSS # Override to factory SDK SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += sdkv1 diff --git a/factory_tokay.mk b/factory_tokay.mk index 2514e022..2ee419ae 100644 --- a/factory_tokay.mk +++ b/factory_tokay.mk @@ -30,6 +30,20 @@ PRODUCT_MANUFACTURER := Google PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" +# Location +# iGNSS +PRODUCT_PACKAGES += \ + sctd \ + spad \ + swcnd \ + libmptool_json \ + libmptool_log \ + libmptool_utils \ + sctd.json \ + spad.json \ + swcnd.json \ + android.hardware.gnss@2.1-impl +# eGNSS # Override to factory SDK SOONG_CONFIG_NAMESPACES += gpssdk SOONG_CONFIG_gpssdk += sdkv1 diff --git a/location/caiman/Android.bp b/location/caiman/Android.bp index 1f6a9a23..eadab4e5 100644 --- a/location/caiman/Android.bp +++ b/location/caiman/Android.bp @@ -5,7 +5,50 @@ package { } soong_config_module_type { - name: "gps_prebuilt_etc", + name: "ignss_prebuilt_etc", + module_type: "prebuilt_etc", + config_namespace: "gpssdk", + variables: [ + "buildtype", + ], + properties: [ + "src", + ], +} + +soong_config_string_variable { + name: "buildtype", + values: [ + "user", + "userdebug", + "eng", + ], +} + +ignss_prebuilt_etc { + name: "gps.cfg", + soong_config_variables: { + buildtype: { + user: { + src: "user/gps.cfg", + }, + userdebug: { + src: "userdebug/gps.cfg", + }, + eng: { + src: "userdebug/gps.cfg", + }, + conditions_default: { + src: "user/gps.cfg", + }, + }, + }, + relative_install_path: "gnss", + vendor: true, +} + +soong_config_module_type { + name: "egnss_prebuilt_etc", module_type: "prebuilt_etc", config_namespace: "gpssdk", variables: [ @@ -33,7 +76,7 @@ prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "gps.xml", soong_config_variables: { gpsconf: { @@ -58,7 +101,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "lhd.conf", soong_config_variables: { gpsconf: { @@ -83,7 +126,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "scd.conf", soong_config_variables: { gpsconf: { diff --git a/location/caiman/user/gps.cfg b/location/caiman/user/gps.cfg new file mode 100644 index 00000000..02bd4338 --- /dev/null +++ b/location/caiman/user/gps.cfg @@ -0,0 +1,123 @@ +GlueLayer_ToolConfigSelection=3 +debug_console=0 +debug_enable=0 +mem_dump_to_node=0 +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 +gnss_device_type=K042 +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin +chpp_betp_client=1 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 +Chip_Configuration_AidingConfiguration=0x00020046 +Chip_Configuration_RefClkControl=0x24 +Chip_Configuration_DCXO_CrystalType=0x11 +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 +bdsUsedInUSPolicy=2 +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 +mailboxDisabled=0x8 +gnss_rfic_chip_id=55400000 +UseRtcForAiding=1 +additional_rtc_uncertainty_ms=10 +Sif_UseFwXtraInterface=0 +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 +soft_dog=0 +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1 +ENABLE_4G_UP_CAPS_MSA=1 +ENABLE_4G_UP_CAPS_MSB=1 +ENABLE_5G_UP_CAPS_MSA=0 +ENABLE_5G_UP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1_1 +SUPL_HMAC_HASH=SHA256 +SUPL_UT2_SEC=20 +SUPL_UT3_SEC=20 +ENABLE_LPP_CP=1 +ENABLE_LPP_UP=0 +ENABLE_LPPE_CP=3 +ENABLE_LPPE_UP=0 +ENABLE_NLP_IN_LPPE=1 +ENABLE_NLP_IN_AGNSS=0 +ENABLE_LPP_HA_GAD_SHAPE=0 +USE_EMER_PDN_FOR_EMER_SUPL=1 + +GNSS_CARRIER_ID=1 + +GNSS_CARRIER_ID=2 +ENABLE_3G_CP_CAPS_MSA=0 +ENABLE_4G_CP_CAPS_MSA=0 +ENABLE_NLP_IN_LPPE=0 +ENABLE_NLP_IN_AGNSS=1 +ENABLE_LPP_HA_GAD_SHAPE=1 + +GNSS_CARRIER_ID=3 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +SUPL_SSL_METHOD=TLSv1_2 +SUPL_UT2_SEC=10 +SUPL_UT3_SEC=30 + +GNSS_CARRIER_ID=4 + +GNSS_CARRIER_ID=5 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=6 +ENABLE_LPP_CP=0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 + +GNSS_CARRIER_ID=8 + +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/caiman/userdebug/gps.cfg b/location/caiman/userdebug/gps.cfg new file mode 100644 index 00000000..8d5203bc --- /dev/null +++ b/location/caiman/userdebug/gps.cfg @@ -0,0 +1,247 @@ +############################################ +GlueLayer_ToolConfigSelection=3 +user_ports_tcp_name=Autotest +user_ports_tcp_port=7555 +debug_console=1 +debug_dir=/data/vendor/gps/logs +############################################ +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 + +uni_log_max_file_count=5 +uni_log_max_size_mb=20 +uni_log_total_max_size_mb=100 + +debug_enable=1 +mem_dump_to_node=1 + +gnss_device_type=K042 + +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin + +# CHIP_CONFIG_IO_OPT_HOSTIO_VIA_SECONDARY + CHIP_CONFIG_IO_OPT_CPMB_MASK +#Chip_Configuration_Io_Options=0x9 +# enable DEBUG sync msg +#Chip_Configuration_Io_Options=0xD + +# force CP crash on GAL bad ISM (1 is first instance, 2 is when we assert) +#Chip_Configuration_cpdbgsync=1 + +# Chip_Configuration_TrackerDebugMode = 0x10 + +# enables CHPP for SPI port +# uncomment the *chpp* lines below (and comment gnss_device-data_port_kepslim_present above) to use SPI+CHPP +# when using CHPP, make sure to enable the CHPP defines in build_settings.mak +chpp_betp_client=1 +chpp_log_level=2 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 + +### Update for VTS ### +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 + +### temporarily disable precise time aiding ### +Chip_Configuration_AidingConfiguration=0x00020046 + +# set shared reference clock for freq aiding (0x20) +# enable dcxo (0x04) +Chip_Configuration_RefClkControl=0x24 +#Chip_Configuration_RefClkControl=0x20 +#Chip_Configuration_RefClkUncertainty=20000 + +### Override for DCXO Cnom/TuneValue +#Chip_Configuration_DCXOtuneValue=5143 + +### DCXO Optional Parameters. ##### +# Can specify Crystal type, and/or over-ride T0-inflection point #### +# +# Optionally specify DXCO Crystal type, and operation mode +# 8 bits. Lower 4 bits Crystal ID# (0-15) +# Upper 4 bits Poly Configuration: (0/1) +# Poly Configuration: 0: Use CP's poly, 1: Force use of default manufactures polynomial +### Crystal Types: +## 0 - Unknown/Default +## 1 - Kyocera CT1612RB +## 2 - NDK NX1612SD CS12311 +## 3 - NDK NX1612SD CS13950 +## 4 - NDK NX1612SD CS15298 +## 5 - KDS 7CG07680A10 +## 6- TXC 0W76870003 +## E.g. Use Kyocera, and ignore CP's polynomial: DCXO_CrystalType=0x11 +## E.g. Use KDS, and Use CP's polynomial: DCXO_CrystalType=0x05 +## LOOK! S5400 ERD's uses NDK(2), Phones use Kyocera(1). Default set to phone (1) +Chip_Configuration_DCXO_CrystalType=0x11 + +## Optionally specify DXCO Inflection point temperature, #### +# This will override any default value or value in Crystal type #### +# Value is degrees C x 100 E.g. 2855 = 28.55 deg C +# Range should be 2000 to 3100 +#Chip_Configuration_DCXO_InflectionPoint=2855 + +# L1 + L5 MCW +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 + +### 2C48 L1 only MCW ### +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#Chip_Configuration_RfMiscCtrl=0x80008001 + +# L1 HYSPDY - CP +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#LocTech_Constraints = 0x602F +#Chip_Configuration_RfMiscCtrl=0x8001 +#Chip_Configuration_IspTestConfig=0x22242822 + +# Disable BDS in the U.S. +bdsUsedInUSPolicy=2 + +# DVS: 0 = Disabled, 1 = Enabled (default) +# DFS: 0 = Disabled, 1 = Enabled (default) +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 + +# This is a bitfield that will disable incoming interrupts for mailboxes +# AP = 0x1 +# APM = 0x2 +# CP = 0x4 +# CHUB = 0x8 +# The CHUB on the neus continually triggers a bit so this is to prevent +# it from continually waking the gnss. +mailboxDisabled=0x8 + +### Specify RFIC ID for K42 ### +# 55400000 = S5540 EVT0 +gnss_rfic_chip_id=55400000 + +# Uncomment to Disable SUPL +#Aiding_AidingType=0 +# Uncomment to Disable SUPL (Ignore Android Framework Requests to Enable SUPL) +#GlueLayer_EnableFwConfiguration=0 + +#Uncomment to disable SGEE +#Sif_OperationMode=0 + +# Enables RTC time aiding from Host +# 1 - enable, 0 - disable (default) +UseRtcForAiding=1 + +# increase rtc uncertainty from Host to hedge against bad fixes +additional_rtc_uncertainty_ms=10 + +# set to 1 for FW SGEE download - Requires Android FW to be properly configured +Sif_UseFwXtraInterface=0 + +# ChipCfg_GetGpsWeekFloor variable allows testing of old GPS weeks. +# Used here to adjust the GPS week for carrier testing. +# Simulations in the past may be based on any week number. +# Guidelines: +# If simulation week absolute week number is: +# 1-1023: ChipCfg_SetGpsWeekFloor=1 +# 1024-2047: ChipCfg_SetGpsWeekFloor=1024 +# 2048-3071: ChipCfg_SetGpsWeekFloor=2048 +# Example: ChipCfg_GetGpsWeekFloor=1024 +# The above sets the correct operation when the true week is between 1024 and 2048 +# ChipCfg_GetGpsWeekFloor=0 + +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 + +soft_dog=0 + +# 0: Use calibrated Accel data 1: Use uncalibrated Accel data +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +# DEFAULT +GNSS_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0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 +# SBM +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 +# DOCOMO +GNSS_CARRIER_ID=8 +# LAB +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/komodo/Android.bp b/location/komodo/Android.bp index 1f6a9a23..eadab4e5 100644 --- a/location/komodo/Android.bp +++ b/location/komodo/Android.bp @@ -5,7 +5,50 @@ package { } soong_config_module_type { - name: "gps_prebuilt_etc", + name: "ignss_prebuilt_etc", + module_type: "prebuilt_etc", + config_namespace: "gpssdk", + variables: [ + "buildtype", + ], + properties: [ + "src", + ], +} + +soong_config_string_variable { + name: "buildtype", + values: [ + "user", + "userdebug", + "eng", + ], +} + +ignss_prebuilt_etc { + name: "gps.cfg", + soong_config_variables: { + buildtype: { + user: { + src: "user/gps.cfg", + }, + userdebug: { + src: "userdebug/gps.cfg", + }, + eng: { + src: "userdebug/gps.cfg", + }, + conditions_default: { + src: "user/gps.cfg", + }, + }, + }, + relative_install_path: "gnss", + vendor: true, +} + +soong_config_module_type { + name: "egnss_prebuilt_etc", module_type: "prebuilt_etc", config_namespace: "gpssdk", variables: [ @@ -33,7 +76,7 @@ prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "gps.xml", soong_config_variables: { gpsconf: { @@ -58,7 +101,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "lhd.conf", soong_config_variables: { gpsconf: { @@ -83,7 +126,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "scd.conf", soong_config_variables: { gpsconf: { diff --git a/location/komodo/user/gps.cfg b/location/komodo/user/gps.cfg new file mode 100644 index 00000000..02bd4338 --- /dev/null +++ b/location/komodo/user/gps.cfg @@ -0,0 +1,123 @@ +GlueLayer_ToolConfigSelection=3 +debug_console=0 +debug_enable=0 +mem_dump_to_node=0 +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 +gnss_device_type=K042 +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin +chpp_betp_client=1 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 +Chip_Configuration_AidingConfiguration=0x00020046 +Chip_Configuration_RefClkControl=0x24 +Chip_Configuration_DCXO_CrystalType=0x11 +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 +bdsUsedInUSPolicy=2 +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 +mailboxDisabled=0x8 +gnss_rfic_chip_id=55400000 +UseRtcForAiding=1 +additional_rtc_uncertainty_ms=10 +Sif_UseFwXtraInterface=0 +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +Spot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+GNSS_CARRIER_ID=6 +ENABLE_LPP_CP=0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 + +GNSS_CARRIER_ID=8 + +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/komodo/userdebug/gps.cfg b/location/komodo/userdebug/gps.cfg new file mode 100644 index 00000000..8d5203bc --- /dev/null +++ b/location/komodo/userdebug/gps.cfg @@ -0,0 +1,247 @@ +############################################ +GlueLayer_ToolConfigSelection=3 +user_ports_tcp_name=Autotest +user_ports_tcp_port=7555 +debug_console=1 +debug_dir=/data/vendor/gps/logs +############################################ +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 + +uni_log_max_file_count=5 +uni_log_max_size_mb=20 +uni_log_total_max_size_mb=100 + +debug_enable=1 +mem_dump_to_node=1 + +gnss_device_type=K042 + +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin + +# CHIP_CONFIG_IO_OPT_HOSTIO_VIA_SECONDARY + CHIP_CONFIG_IO_OPT_CPMB_MASK +#Chip_Configuration_Io_Options=0x9 +# enable DEBUG sync msg +#Chip_Configuration_Io_Options=0xD + +# force CP crash on GAL bad ISM (1 is first instance, 2 is when we assert) +#Chip_Configuration_cpdbgsync=1 + +# Chip_Configuration_TrackerDebugMode = 0x10 + +# enables CHPP for SPI port +# uncomment the *chpp* lines below (and comment gnss_device-data_port_kepslim_present above) to use SPI+CHPP +# when using CHPP, make sure to enable the CHPP defines in build_settings.mak +chpp_betp_client=1 +chpp_log_level=2 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 + +### Update for VTS ### +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 + +### temporarily disable precise time aiding ### +Chip_Configuration_AidingConfiguration=0x00020046 + +# set shared reference clock for freq aiding (0x20) +# enable dcxo (0x04) +Chip_Configuration_RefClkControl=0x24 +#Chip_Configuration_RefClkControl=0x20 +#Chip_Configuration_RefClkUncertainty=20000 + +### Override for DCXO Cnom/TuneValue +#Chip_Configuration_DCXOtuneValue=5143 + +### DCXO Optional Parameters. ##### +# Can specify Crystal type, and/or over-ride T0-inflection point #### +# +# Optionally specify DXCO Crystal type, and operation mode +# 8 bits. Lower 4 bits Crystal ID# (0-15) +# Upper 4 bits Poly Configuration: (0/1) +# Poly Configuration: 0: Use CP's poly, 1: Force use of default manufactures polynomial +### Crystal Types: +## 0 - Unknown/Default +## 1 - Kyocera CT1612RB +## 2 - NDK NX1612SD CS12311 +## 3 - NDK NX1612SD CS13950 +## 4 - NDK NX1612SD CS15298 +## 5 - KDS 7CG07680A10 +## 6- TXC 0W76870003 +## E.g. Use Kyocera, and ignore CP's polynomial: DCXO_CrystalType=0x11 +## E.g. Use KDS, and Use CP's polynomial: DCXO_CrystalType=0x05 +## LOOK! S5400 ERD's uses NDK(2), Phones use Kyocera(1). Default set to phone (1) +Chip_Configuration_DCXO_CrystalType=0x11 + +## Optionally specify DXCO Inflection point temperature, #### +# This will override any default value or value in Crystal type #### +# Value is degrees C x 100 E.g. 2855 = 28.55 deg C +# Range should be 2000 to 3100 +#Chip_Configuration_DCXO_InflectionPoint=2855 + +# L1 + L5 MCW +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 + +### 2C48 L1 only MCW ### +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#Chip_Configuration_RfMiscCtrl=0x80008001 + +# L1 HYSPDY - CP +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#LocTech_Constraints = 0x602F +#Chip_Configuration_RfMiscCtrl=0x8001 +#Chip_Configuration_IspTestConfig=0x22242822 + +# Disable BDS in the U.S. +bdsUsedInUSPolicy=2 + +# DVS: 0 = Disabled, 1 = Enabled (default) +# DFS: 0 = Disabled, 1 = Enabled (default) +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 + +# This is a bitfield that will disable incoming interrupts for mailboxes +# AP = 0x1 +# APM = 0x2 +# CP = 0x4 +# CHUB = 0x8 +# The CHUB on the neus continually triggers a bit so this is to prevent +# it from continually waking the gnss. +mailboxDisabled=0x8 + +### Specify RFIC ID for K42 ### +# 55400000 = S5540 EVT0 +gnss_rfic_chip_id=55400000 + +# Uncomment to Disable SUPL +#Aiding_AidingType=0 +# Uncomment to Disable SUPL (Ignore Android Framework Requests to Enable SUPL) +#GlueLayer_EnableFwConfiguration=0 + +#Uncomment to disable SGEE +#Sif_OperationMode=0 + +# Enables RTC time aiding from Host +# 1 - enable, 0 - disable (default) +UseRtcForAiding=1 + +# increase rtc uncertainty from Host to hedge against bad fixes +additional_rtc_uncertainty_ms=10 + +# set to 1 for FW SGEE download - Requires Android FW to be properly configured +Sif_UseFwXtraInterface=0 + +# ChipCfg_GetGpsWeekFloor variable allows testing of old GPS weeks. +# Used here to adjust the GPS week for carrier testing. +# Simulations in the past may be based on any week number. +# Guidelines: +# If simulation week absolute week number is: +# 1-1023: ChipCfg_SetGpsWeekFloor=1 +# 1024-2047: ChipCfg_SetGpsWeekFloor=1024 +# 2048-3071: ChipCfg_SetGpsWeekFloor=2048 +# Example: ChipCfg_GetGpsWeekFloor=1024 +# The above sets the correct operation when the true week is between 1024 and 2048 +# ChipCfg_GetGpsWeekFloor=0 + +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 + +soft_dog=0 + +# 0: Use calibrated Accel data 1: Use uncalibrated Accel data +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +# DEFAULT +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1 +ENABLE_4G_UP_CAPS_MSA=1 +ENABLE_4G_UP_CAPS_MSB=1 +ENABLE_5G_UP_CAPS_MSA=0 +ENABLE_5G_UP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1_1 +SUPL_HMAC_HASH=SHA256 +SUPL_UT2_SEC=20 +SUPL_UT3_SEC=20 +ENABLE_LPP_CP=1 +ENABLE_LPP_UP=0 +ENABLE_LPPE_CP=3 +ENABLE_LPPE_UP=0 +ENABLE_NLP_IN_LPPE=1 +ENABLE_NLP_IN_AGNSS=0 +ENABLE_LPP_HA_GAD_SHAPE=0 +USE_EMER_PDN_FOR_EMER_SUPL=1 +# ATT +GNSS_CARRIER_ID=1 +# TMO +GNSS_CARRIER_ID=2 +ENABLE_3G_CP_CAPS_MSA=0 +ENABLE_4G_CP_CAPS_MSA=0 +ENABLE_NLP_IN_LPPE=0 +ENABLE_NLP_IN_AGNSS=1 +ENABLE_LPP_HA_GAD_SHAPE=1 +# VZW +GNSS_CARRIER_ID=3 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +SUPL_SSL_METHOD=TLSv1_2 +SUPL_UT2_SEC=10 +SUPL_UT3_SEC=30 +# AIRTEL +GNSS_CARRIER_ID=4 +# RAKUTEN +GNSS_CARRIER_ID=5 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +# KDDI +GNSS_CARRIER_ID=6 +ENABLE_LPP_CP=0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 +# SBM +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 +# DOCOMO +GNSS_CARRIER_ID=8 +# LAB +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/ripcurrent24/Android.bp b/location/ripcurrent24/Android.bp index 1f6a9a23..eadab4e5 100644 --- a/location/ripcurrent24/Android.bp +++ b/location/ripcurrent24/Android.bp @@ -5,7 +5,50 @@ package { } soong_config_module_type { - name: "gps_prebuilt_etc", + name: "ignss_prebuilt_etc", + module_type: "prebuilt_etc", + config_namespace: "gpssdk", + variables: [ + "buildtype", + ], + properties: [ + "src", + ], +} + +soong_config_string_variable { + name: "buildtype", + values: [ + "user", + "userdebug", + "eng", + ], +} + +ignss_prebuilt_etc { + name: "gps.cfg", + soong_config_variables: { + buildtype: { + user: { + src: "user/gps.cfg", + }, + userdebug: { + src: "userdebug/gps.cfg", + }, + eng: { + src: "userdebug/gps.cfg", + }, + conditions_default: { + src: "user/gps.cfg", + }, + }, + }, + relative_install_path: "gnss", + vendor: true, +} + +soong_config_module_type { + name: "egnss_prebuilt_etc", module_type: "prebuilt_etc", config_namespace: "gpssdk", variables: [ @@ -33,7 +76,7 @@ prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "gps.xml", soong_config_variables: { gpsconf: { @@ -58,7 +101,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "lhd.conf", soong_config_variables: { gpsconf: { @@ -83,7 +126,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "scd.conf", soong_config_variables: { gpsconf: { diff --git a/location/ripcurrent24/user/gps.cfg b/location/ripcurrent24/user/gps.cfg new file mode 100644 index 00000000..02bd4338 --- /dev/null +++ b/location/ripcurrent24/user/gps.cfg @@ -0,0 +1,123 @@ +GlueLayer_ToolConfigSelection=3 +debug_console=0 +debug_enable=0 +mem_dump_to_node=0 +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 +gnss_device_type=K042 +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin +chpp_betp_client=1 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 +Chip_Configuration_AidingConfiguration=0x00020046 +Chip_Configuration_RefClkControl=0x24 +Chip_Configuration_DCXO_CrystalType=0x11 +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 +bdsUsedInUSPolicy=2 +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 +mailboxDisabled=0x8 +gnss_rfic_chip_id=55400000 +UseRtcForAiding=1 +additional_rtc_uncertainty_ms=10 +Sif_UseFwXtraInterface=0 +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 +soft_dog=0 +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1 +ENABLE_4G_UP_CAPS_MSA=1 +ENABLE_4G_UP_CAPS_MSB=1 +ENABLE_5G_UP_CAPS_MSA=0 +ENABLE_5G_UP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1_1 +SUPL_HMAC_HASH=SHA256 +SUPL_UT2_SEC=20 +SUPL_UT3_SEC=20 +ENABLE_LPP_CP=1 +ENABLE_LPP_UP=0 +ENABLE_LPPE_CP=3 +ENABLE_LPPE_UP=0 +ENABLE_NLP_IN_LPPE=1 +ENABLE_NLP_IN_AGNSS=0 +ENABLE_LPP_HA_GAD_SHAPE=0 +USE_EMER_PDN_FOR_EMER_SUPL=1 + +GNSS_CARRIER_ID=1 + +GNSS_CARRIER_ID=2 +ENABLE_3G_CP_CAPS_MSA=0 +ENABLE_4G_CP_CAPS_MSA=0 +ENABLE_NLP_IN_LPPE=0 +ENABLE_NLP_IN_AGNSS=1 +ENABLE_LPP_HA_GAD_SHAPE=1 + +GNSS_CARRIER_ID=3 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +SUPL_SSL_METHOD=TLSv1_2 +SUPL_UT2_SEC=10 +SUPL_UT3_SEC=30 + +GNSS_CARRIER_ID=4 + +GNSS_CARRIER_ID=5 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=6 +ENABLE_LPP_CP=0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 + +GNSS_CARRIER_ID=8 + +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/ripcurrent24/userdebug/gps.cfg b/location/ripcurrent24/userdebug/gps.cfg new file mode 100644 index 00000000..8d5203bc --- /dev/null +++ b/location/ripcurrent24/userdebug/gps.cfg @@ -0,0 +1,247 @@ +############################################ +GlueLayer_ToolConfigSelection=3 +user_ports_tcp_name=Autotest +user_ports_tcp_port=7555 +debug_console=1 +debug_dir=/data/vendor/gps/logs +############################################ +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 + +uni_log_max_file_count=5 +uni_log_max_size_mb=20 +uni_log_total_max_size_mb=100 + +debug_enable=1 +mem_dump_to_node=1 + +gnss_device_type=K042 + +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin + +# CHIP_CONFIG_IO_OPT_HOSTIO_VIA_SECONDARY + CHIP_CONFIG_IO_OPT_CPMB_MASK +#Chip_Configuration_Io_Options=0x9 +# enable DEBUG sync msg +#Chip_Configuration_Io_Options=0xD + +# force CP crash on GAL bad ISM (1 is first instance, 2 is when we assert) +#Chip_Configuration_cpdbgsync=1 + +# Chip_Configuration_TrackerDebugMode = 0x10 + +# enables CHPP for SPI port +# uncomment the *chpp* lines below (and comment gnss_device-data_port_kepslim_present above) to use SPI+CHPP +# when using CHPP, make sure to enable the CHPP defines in build_settings.mak +chpp_betp_client=1 +chpp_log_level=2 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 + +### Update for VTS ### +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 + +### temporarily disable precise time aiding ### +Chip_Configuration_AidingConfiguration=0x00020046 + +# set shared reference clock for freq aiding (0x20) +# enable dcxo (0x04) +Chip_Configuration_RefClkControl=0x24 +#Chip_Configuration_RefClkControl=0x20 +#Chip_Configuration_RefClkUncertainty=20000 + +### Override for DCXO Cnom/TuneValue +#Chip_Configuration_DCXOtuneValue=5143 + +### DCXO Optional Parameters. ##### +# Can specify Crystal type, and/or over-ride T0-inflection point #### +# +# Optionally specify DXCO Crystal type, and operation mode +# 8 bits. Lower 4 bits Crystal ID# (0-15) +# Upper 4 bits Poly Configuration: (0/1) +# Poly Configuration: 0: Use CP's poly, 1: Force use of default manufactures polynomial +### Crystal Types: +## 0 - Unknown/Default +## 1 - Kyocera CT1612RB +## 2 - NDK NX1612SD CS12311 +## 3 - NDK NX1612SD CS13950 +## 4 - NDK NX1612SD CS15298 +## 5 - KDS 7CG07680A10 +## 6- TXC 0W76870003 +## E.g. Use Kyocera, and ignore CP's polynomial: DCXO_CrystalType=0x11 +## E.g. Use KDS, and Use CP's polynomial: DCXO_CrystalType=0x05 +## LOOK! S5400 ERD's uses NDK(2), Phones use Kyocera(1). Default set to phone (1) +Chip_Configuration_DCXO_CrystalType=0x11 + +## Optionally specify DXCO Inflection point temperature, #### +# This will override any default value or value in Crystal type #### +# Value is degrees C x 100 E.g. 2855 = 28.55 deg C +# Range should be 2000 to 3100 +#Chip_Configuration_DCXO_InflectionPoint=2855 + +# L1 + L5 MCW +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 + +### 2C48 L1 only MCW ### +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#Chip_Configuration_RfMiscCtrl=0x80008001 + +# L1 HYSPDY - CP +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#LocTech_Constraints = 0x602F +#Chip_Configuration_RfMiscCtrl=0x8001 +#Chip_Configuration_IspTestConfig=0x22242822 + +# Disable BDS in the U.S. +bdsUsedInUSPolicy=2 + +# DVS: 0 = Disabled, 1 = Enabled (default) +# DFS: 0 = Disabled, 1 = Enabled (default) +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 + +# This is a bitfield that will disable incoming interrupts for mailboxes +# AP = 0x1 +# APM = 0x2 +# CP = 0x4 +# CHUB = 0x8 +# The CHUB on the neus continually triggers a bit so this is to prevent +# it from continually waking the gnss. +mailboxDisabled=0x8 + +### Specify RFIC ID for K42 ### +# 55400000 = S5540 EVT0 +gnss_rfic_chip_id=55400000 + +# Uncomment to Disable SUPL +#Aiding_AidingType=0 +# Uncomment to Disable SUPL (Ignore Android Framework Requests to Enable SUPL) +#GlueLayer_EnableFwConfiguration=0 + +#Uncomment to disable SGEE +#Sif_OperationMode=0 + +# Enables RTC time aiding from Host +# 1 - enable, 0 - disable (default) +UseRtcForAiding=1 + +# increase rtc uncertainty from Host to hedge against bad fixes +additional_rtc_uncertainty_ms=10 + +# set to 1 for FW SGEE download - Requires Android FW to be properly configured +Sif_UseFwXtraInterface=0 + +# ChipCfg_GetGpsWeekFloor variable allows testing of old GPS weeks. +# Used here to adjust the GPS week for carrier testing. +# Simulations in the past may be based on any week number. +# Guidelines: +# If simulation week absolute week number is: +# 1-1023: ChipCfg_SetGpsWeekFloor=1 +# 1024-2047: ChipCfg_SetGpsWeekFloor=1024 +# 2048-3071: ChipCfg_SetGpsWeekFloor=2048 +# Example: ChipCfg_GetGpsWeekFloor=1024 +# The above sets the correct operation when the true week is between 1024 and 2048 +# ChipCfg_GetGpsWeekFloor=0 + +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 + +soft_dog=0 + +# 0: Use calibrated Accel data 1: Use uncalibrated Accel data +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +# DEFAULT +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1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IG_END diff --git a/location/ripcurrentpro/Android.bp b/location/ripcurrentpro/Android.bp index 1f6a9a23..eadab4e5 100644 --- a/location/ripcurrentpro/Android.bp +++ b/location/ripcurrentpro/Android.bp @@ -5,7 +5,50 @@ package { } soong_config_module_type { - name: "gps_prebuilt_etc", + name: "ignss_prebuilt_etc", + module_type: "prebuilt_etc", + config_namespace: "gpssdk", + variables: [ + "buildtype", + ], + properties: [ + "src", + ], +} + +soong_config_string_variable { + name: "buildtype", + values: [ + "user", + "userdebug", + "eng", + ], +} + +ignss_prebuilt_etc { + name: "gps.cfg", + soong_config_variables: { + buildtype: { + user: { + src: "user/gps.cfg", + }, + userdebug: { + src: "userdebug/gps.cfg", + }, + eng: { + src: "userdebug/gps.cfg", + }, + conditions_default: { + src: "user/gps.cfg", + }, + }, + }, + relative_install_path: "gnss", + vendor: true, +} + +soong_config_module_type { + name: "egnss_prebuilt_etc", module_type: "prebuilt_etc", config_namespace: "gpssdk", variables: [ @@ -33,7 +76,7 @@ prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "gps.xml", soong_config_variables: { gpsconf: { @@ -58,7 +101,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "lhd.conf", soong_config_variables: { gpsconf: { @@ -83,7 +126,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "scd.conf", soong_config_variables: { gpsconf: { diff --git a/location/ripcurrentpro/user/gps.cfg b/location/ripcurrentpro/user/gps.cfg new file mode 100644 index 00000000..02bd4338 --- /dev/null +++ b/location/ripcurrentpro/user/gps.cfg @@ -0,0 +1,123 @@ +GlueLayer_ToolConfigSelection=3 +debug_console=0 +debug_enable=0 +mem_dump_to_node=0 +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 +gnss_device_type=K042 +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin +chpp_betp_client=1 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 +Chip_Configuration_AidingConfiguration=0x00020046 +Chip_Configuration_RefClkControl=0x24 +Chip_Configuration_DCXO_CrystalType=0x11 +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 +bdsUsedInUSPolicy=2 +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 +mailboxDisabled=0x8 +gnss_rfic_chip_id=55400000 +UseRtcForAiding=1 +additional_rtc_uncertainty_ms=10 +Sif_UseFwXtraInterface=0 +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 +soft_dog=0 +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB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=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/ripcurrentpro/userdebug/gps.cfg b/location/ripcurrentpro/userdebug/gps.cfg new file mode 100644 index 00000000..8d5203bc --- /dev/null +++ b/location/ripcurrentpro/userdebug/gps.cfg @@ -0,0 +1,247 @@ +############################################ +GlueLayer_ToolConfigSelection=3 +user_ports_tcp_name=Autotest +user_ports_tcp_port=7555 +debug_console=1 +debug_dir=/data/vendor/gps/logs +############################################ +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 + +uni_log_max_file_count=5 +uni_log_max_size_mb=20 +uni_log_total_max_size_mb=100 + +debug_enable=1 +mem_dump_to_node=1 + +gnss_device_type=K042 + +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin + +# CHIP_CONFIG_IO_OPT_HOSTIO_VIA_SECONDARY + CHIP_CONFIG_IO_OPT_CPMB_MASK +#Chip_Configuration_Io_Options=0x9 +# enable DEBUG sync msg +#Chip_Configuration_Io_Options=0xD + +# force CP crash on GAL bad ISM (1 is first instance, 2 is when we assert) +#Chip_Configuration_cpdbgsync=1 + +# Chip_Configuration_TrackerDebugMode = 0x10 + +# enables CHPP for SPI port +# uncomment the *chpp* lines below (and comment gnss_device-data_port_kepslim_present above) to use SPI+CHPP +# when using CHPP, make sure to enable the CHPP defines in build_settings.mak +chpp_betp_client=1 +chpp_log_level=2 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 + +### Update for VTS ### +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 + +### temporarily disable precise time aiding ### +Chip_Configuration_AidingConfiguration=0x00020046 + +# set shared reference clock for freq aiding (0x20) +# enable dcxo (0x04) +Chip_Configuration_RefClkControl=0x24 +#Chip_Configuration_RefClkControl=0x20 +#Chip_Configuration_RefClkUncertainty=20000 + +### Override for DCXO Cnom/TuneValue +#Chip_Configuration_DCXOtuneValue=5143 + +### DCXO Optional Parameters. ##### +# Can specify Crystal type, and/or over-ride T0-inflection point #### +# +# Optionally specify DXCO Crystal type, and operation mode +# 8 bits. Lower 4 bits Crystal ID# (0-15) +# Upper 4 bits Poly Configuration: (0/1) +# Poly Configuration: 0: Use CP's poly, 1: Force use of default manufactures polynomial +### Crystal Types: +## 0 - Unknown/Default +## 1 - Kyocera CT1612RB +## 2 - NDK NX1612SD CS12311 +## 3 - NDK NX1612SD CS13950 +## 4 - NDK NX1612SD CS15298 +## 5 - KDS 7CG07680A10 +## 6- TXC 0W76870003 +## E.g. Use Kyocera, and ignore CP's polynomial: DCXO_CrystalType=0x11 +## E.g. Use KDS, and Use CP's polynomial: DCXO_CrystalType=0x05 +## LOOK! S5400 ERD's uses NDK(2), Phones use Kyocera(1). Default set to phone (1) +Chip_Configuration_DCXO_CrystalType=0x11 + +## Optionally specify DXCO Inflection point temperature, #### +# This will override any default value or value in Crystal type #### +# Value is degrees C x 100 E.g. 2855 = 28.55 deg C +# Range should be 2000 to 3100 +#Chip_Configuration_DCXO_InflectionPoint=2855 + +# L1 + L5 MCW +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 + +### 2C48 L1 only MCW ### +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#Chip_Configuration_RfMiscCtrl=0x80008001 + +# L1 HYSPDY - CP +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#LocTech_Constraints = 0x602F +#Chip_Configuration_RfMiscCtrl=0x8001 +#Chip_Configuration_IspTestConfig=0x22242822 + +# Disable BDS in the U.S. +bdsUsedInUSPolicy=2 + +# DVS: 0 = Disabled, 1 = Enabled (default) +# DFS: 0 = Disabled, 1 = Enabled (default) +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 + +# This is a bitfield that will disable incoming interrupts for mailboxes +# AP = 0x1 +# APM = 0x2 +# CP = 0x4 +# CHUB = 0x8 +# The CHUB on the neus continually triggers a bit so this is to prevent +# it from continually waking the gnss. +mailboxDisabled=0x8 + +### Specify RFIC ID for K42 ### +# 55400000 = S5540 EVT0 +gnss_rfic_chip_id=55400000 + +# Uncomment to Disable SUPL +#Aiding_AidingType=0 +# Uncomment to Disable SUPL (Ignore Android Framework Requests to Enable SUPL) +#GlueLayer_EnableFwConfiguration=0 + +#Uncomment to disable SGEE +#Sif_OperationMode=0 + +# Enables RTC time aiding from Host +# 1 - enable, 0 - disable (default) +UseRtcForAiding=1 + +# increase rtc uncertainty from Host to hedge against bad fixes +additional_rtc_uncertainty_ms=10 + +# set to 1 for FW SGEE download - Requires Android FW to be properly configured +Sif_UseFwXtraInterface=0 + +# ChipCfg_GetGpsWeekFloor variable allows testing of old GPS weeks. +# Used here to adjust the GPS week for carrier testing. +# Simulations in the past may be based on any week number. +# Guidelines: +# If simulation week absolute week number is: +# 1-1023: ChipCfg_SetGpsWeekFloor=1 +# 1024-2047: ChipCfg_SetGpsWeekFloor=1024 +# 2048-3071: ChipCfg_SetGpsWeekFloor=2048 +# Example: ChipCfg_GetGpsWeekFloor=1024 +# The above sets the correct operation when the true week is between 1024 and 2048 +# ChipCfg_GetGpsWeekFloor=0 + +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 + +soft_dog=0 + +# 0: Use calibrated Accel data 1: Use uncalibrated Accel data +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +# DEFAULT +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1 +ENABLE_4G_UP_CAPS_MSA=1 +ENABLE_4G_UP_CAPS_MSB=1 +ENABLE_5G_UP_CAPS_MSA=0 +ENABLE_5G_UP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1_1 +SUPL_HMAC_HASH=SHA256 +SUPL_UT2_SEC=20 +SUPL_UT3_SEC=20 +ENABLE_LPP_CP=1 +ENABLE_LPP_UP=0 +ENABLE_LPPE_CP=3 +ENABLE_LPPE_UP=0 +ENABLE_NLP_IN_LPPE=1 +ENABLE_NLP_IN_AGNSS=0 +ENABLE_LPP_HA_GAD_SHAPE=0 +USE_EMER_PDN_FOR_EMER_SUPL=1 +# ATT +GNSS_CARRIER_ID=1 +# TMO +GNSS_CARRIER_ID=2 +ENABLE_3G_CP_CAPS_MSA=0 +ENABLE_4G_CP_CAPS_MSA=0 +ENABLE_NLP_IN_LPPE=0 +ENABLE_NLP_IN_AGNSS=1 +ENABLE_LPP_HA_GAD_SHAPE=1 +# VZW +GNSS_CARRIER_ID=3 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +SUPL_SSL_METHOD=TLSv1_2 +SUPL_UT2_SEC=10 +SUPL_UT3_SEC=30 +# AIRTEL +GNSS_CARRIER_ID=4 +# RAKUTEN +GNSS_CARRIER_ID=5 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +# KDDI +GNSS_CARRIER_ID=6 +ENABLE_LPP_CP=0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 +# SBM +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 +# DOCOMO +GNSS_CARRIER_ID=8 +# LAB +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/tokay/Android.bp b/location/tokay/Android.bp index 1f6a9a23..eadab4e5 100644 --- a/location/tokay/Android.bp +++ b/location/tokay/Android.bp @@ -5,7 +5,50 @@ package { } soong_config_module_type { - name: "gps_prebuilt_etc", + name: "ignss_prebuilt_etc", + module_type: "prebuilt_etc", + config_namespace: "gpssdk", + variables: [ + "buildtype", + ], + properties: [ + "src", + ], +} + +soong_config_string_variable { + name: "buildtype", + values: [ + "user", + "userdebug", + "eng", + ], +} + +ignss_prebuilt_etc { + name: "gps.cfg", + soong_config_variables: { + buildtype: { + user: { + src: "user/gps.cfg", + }, + userdebug: { + src: "userdebug/gps.cfg", + }, + eng: { + src: "userdebug/gps.cfg", + }, + conditions_default: { + src: "user/gps.cfg", + }, + }, + }, + relative_install_path: "gnss", + vendor: true, +} + +soong_config_module_type { + name: "egnss_prebuilt_etc", module_type: "prebuilt_etc", config_namespace: "gpssdk", variables: [ @@ -33,7 +76,7 @@ prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "gps.xml", soong_config_variables: { gpsconf: { @@ -58,7 +101,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "lhd.conf", soong_config_variables: { gpsconf: { @@ -83,7 +126,7 @@ gps_prebuilt_etc { vendor: true, } -gps_prebuilt_etc { +egnss_prebuilt_etc { name: "scd.conf", soong_config_variables: { gpsconf: { diff --git a/location/tokay/user/gps.cfg b/location/tokay/user/gps.cfg new file mode 100644 index 00000000..02bd4338 --- /dev/null +++ b/location/tokay/user/gps.cfg @@ -0,0 +1,123 @@ +GlueLayer_ToolConfigSelection=3 +debug_console=0 +debug_enable=0 +mem_dump_to_node=0 +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 +gnss_device_type=K042 +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin +chpp_betp_client=1 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 +Chip_Configuration_AidingConfiguration=0x00020046 +Chip_Configuration_RefClkControl=0x24 +Chip_Configuration_DCXO_CrystalType=0x11 +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 +bdsUsedInUSPolicy=2 +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 +mailboxDisabled=0x8 +gnss_rfic_chip_id=55400000 +UseRtcForAiding=1 +additional_rtc_uncertainty_ms=10 +Sif_UseFwXtraInterface=0 +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 +soft_dog=0 +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1 +ENABLE_4G_UP_CAPS_MSA=1 +ENABLE_4G_UP_CAPS_MSB=1 +ENABLE_5G_UP_CAPS_MSA=0 +ENABLE_5G_UP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1_1 +SUPL_HMAC_HASH=SHA256 +SUPL_UT2_SEC=20 +SUPL_UT3_SEC=20 +ENABLE_LPP_CP=1 +ENABLE_LPP_UP=0 +ENABLE_LPPE_CP=3 +ENABLE_LPPE_UP=0 +ENABLE_NLP_IN_LPPE=1 +ENABLE_NLP_IN_AGNSS=0 +ENABLE_LPP_HA_GAD_SHAPE=0 +USE_EMER_PDN_FOR_EMER_SUPL=1 + +GNSS_CARRIER_ID=1 + +GNSS_CARRIER_ID=2 +ENABLE_3G_CP_CAPS_MSA=0 +ENABLE_4G_CP_CAPS_MSA=0 +ENABLE_NLP_IN_LPPE=0 +ENABLE_NLP_IN_AGNSS=1 +ENABLE_LPP_HA_GAD_SHAPE=1 + +GNSS_CARRIER_ID=3 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +SUPL_SSL_METHOD=TLSv1_2 +SUPL_UT2_SEC=10 +SUPL_UT3_SEC=30 + +GNSS_CARRIER_ID=4 + +GNSS_CARRIER_ID=5 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=6 +ENABLE_LPP_CP=0 +ENABLE_LPP_UP=1 +ENABLE_LPPE_CP=0 +ENABLE_LPPE_UP=3 + +GNSS_CARRIER_ID=7 +ENABLE_LPP_CP=0 +ENABLE_LPPE_CP=0 +ENABLE_5G_CP_CAPS_MSA=0 +ENABLE_5G_CP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1 +USE_EMER_PDN_FOR_EMER_SUPL=0 + +GNSS_CARRIER_ID=8 + +GNSS_CARRIER_ID=9 +ENABLE_LPP_UP=1 +ENABLE_LPPE_UP=3 +GNSS_CARRIER_CONFIG_END diff --git a/location/tokay/userdebug/gps.cfg b/location/tokay/userdebug/gps.cfg new file mode 100644 index 00000000..8d5203bc --- /dev/null +++ b/location/tokay/userdebug/gps.cfg @@ -0,0 +1,247 @@ +############################################ +GlueLayer_ToolConfigSelection=3 +user_ports_tcp_name=Autotest +user_ports_tcp_port=7555 +debug_console=1 +debug_dir=/data/vendor/gps/logs +############################################ +GlueLayer_IsGedKeyExist=1 +GlueLayer_EnableGnssCfgInterface=1 + +uni_log_max_file_count=5 +uni_log_max_size_mb=20 +uni_log_total_max_size_mb=100 + +debug_enable=1 +mem_dump_to_node=1 + +gnss_device_type=K042 + +gnss_device_patch_address=0 +gnss_device_patch_file=/vendor/firmware/kepler.bin + +# CHIP_CONFIG_IO_OPT_HOSTIO_VIA_SECONDARY + CHIP_CONFIG_IO_OPT_CPMB_MASK +#Chip_Configuration_Io_Options=0x9 +# enable DEBUG sync msg +#Chip_Configuration_Io_Options=0xD + +# force CP crash on GAL bad ISM (1 is first instance, 2 is when we assert) +#Chip_Configuration_cpdbgsync=1 + +# Chip_Configuration_TrackerDebugMode = 0x10 + +# enables CHPP for SPI port +# uncomment the *chpp* lines below (and comment gnss_device-data_port_kepslim_present above) to use SPI+CHPP +# when using CHPP, make sure to enable the CHPP defines in build_settings.mak +chpp_betp_client=1 +chpp_log_level=2 +gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc +gnss_device_data_port_chpp_present=1 + +### Update for VTS ### +GlueLayer_YearOfHW=2023 +scheduling_enabled=1 + +### temporarily disable precise time aiding ### +Chip_Configuration_AidingConfiguration=0x00020046 + +# set shared reference clock for freq aiding (0x20) +# enable dcxo (0x04) +Chip_Configuration_RefClkControl=0x24 +#Chip_Configuration_RefClkControl=0x20 +#Chip_Configuration_RefClkUncertainty=20000 + +### Override for DCXO Cnom/TuneValue +#Chip_Configuration_DCXOtuneValue=5143 + +### DCXO Optional Parameters. ##### +# Can specify Crystal type, and/or over-ride T0-inflection point #### +# +# Optionally specify DXCO Crystal type, and operation mode +# 8 bits. Lower 4 bits Crystal ID# (0-15) +# Upper 4 bits Poly Configuration: (0/1) +# Poly Configuration: 0: Use CP's poly, 1: Force use of default manufactures polynomial +### Crystal Types: +## 0 - Unknown/Default +## 1 - Kyocera CT1612RB +## 2 - NDK NX1612SD CS12311 +## 3 - NDK NX1612SD CS13950 +## 4 - NDK NX1612SD CS15298 +## 5 - KDS 7CG07680A10 +## 6- TXC 0W76870003 +## E.g. Use Kyocera, and ignore CP's polynomial: DCXO_CrystalType=0x11 +## E.g. Use KDS, and Use CP's polynomial: DCXO_CrystalType=0x05 +## LOOK! S5400 ERD's uses NDK(2), Phones use Kyocera(1). Default set to phone (1) +Chip_Configuration_DCXO_CrystalType=0x11 + +## Optionally specify DXCO Inflection point temperature, #### +# This will override any default value or value in Crystal type #### +# Value is degrees C x 100 E.g. 2855 = 28.55 deg C +# Range should be 2000 to 3100 +#Chip_Configuration_DCXO_InflectionPoint=2855 + +# L1 + L5 MCW +Chip_Configuration_GNSSConstConstraintDef = 0x60BF +LocTech_Constraints = 0x60BF +Chip_Configuration_RfMiscCtrl = 0x80008001 + +### 2C48 L1 only MCW ### +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#Chip_Configuration_RfMiscCtrl=0x80008001 + +# L1 HYSPDY - CP +#Chip_Configuration_GNSSConstConstraintDef=0x602F +#LocTech_Constraints = 0x602F +#Chip_Configuration_RfMiscCtrl=0x8001 +#Chip_Configuration_IspTestConfig=0x22242822 + +# Disable BDS in the U.S. +bdsUsedInUSPolicy=2 + +# DVS: 0 = Disabled, 1 = Enabled (default) +# DFS: 0 = Disabled, 1 = Enabled (default) +Chip_Configuration_FeatureCfg_DVS = 0 +Chip_Configuration_FeatureCfg_DFS = 0 + +# This is a bitfield that will disable incoming interrupts for mailboxes +# AP = 0x1 +# APM = 0x2 +# CP = 0x4 +# CHUB = 0x8 +# The CHUB on the neus continually triggers a bit so this is to prevent +# it from continually waking the gnss. +mailboxDisabled=0x8 + +### Specify RFIC ID for K42 ### +# 55400000 = S5540 EVT0 +gnss_rfic_chip_id=55400000 + +# Uncomment to Disable SUPL +#Aiding_AidingType=0 +# Uncomment to Disable SUPL (Ignore Android Framework Requests to Enable SUPL) +#GlueLayer_EnableFwConfiguration=0 + +#Uncomment to disable SGEE +#Sif_OperationMode=0 + +# Enables RTC time aiding from Host +# 1 - enable, 0 - disable (default) +UseRtcForAiding=1 + +# increase rtc uncertainty from Host to hedge against bad fixes +additional_rtc_uncertainty_ms=10 + +# set to 1 for FW SGEE download - Requires Android FW to be properly configured +Sif_UseFwXtraInterface=0 + +# ChipCfg_GetGpsWeekFloor variable allows testing of old GPS weeks. +# Used here to adjust the GPS week for carrier testing. +# Simulations in the past may be based on any week number. +# Guidelines: +# If simulation week absolute week number is: +# 1-1023: ChipCfg_SetGpsWeekFloor=1 +# 1024-2047: ChipCfg_SetGpsWeekFloor=1024 +# 2048-3071: ChipCfg_SetGpsWeekFloor=2048 +# Example: ChipCfg_GetGpsWeekFloor=1024 +# The above sets the correct operation when the true week is between 1024 and 2048 +# ChipCfg_GetGpsWeekFloor=0 + +Agnss_IsGloAidingEnable=0 +SETCaps_IsOtdoa=1 +SETCaps_IsLpp=1 +PosReq_Supl2Params_SuplNiUdpPort=7275 +GlueLayer_LPPCpBitmask=0x17 +GlueLayer_IsCpLteNeighborCellEnable=1 +GlueLayer_isReqDBHFromFwRefLoc=1 +GlueLayer_isReqUBPFromPressureSensor=1 +GlueLayer_IsMemsEnable=1 +GlueLayer_MeasCorrCap=7 +Chip_Configuration_mems_data_Configuration=13 +Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +SpotLogger_Allowed=0 + +soft_dog=0 + +# 0: Use calibrated Accel data 1: Use uncalibrated Accel data +isUseUncalAccel=0 + +GNSS_CARRIER_CONFIG_BEGIN +# DEFAULT +GNSS_CARRIER_ID=0 +ENABLE_2G_CP_CAPS_MSA=1 +ENABLE_2G_CP_CAPS_MSB=1 +ENABLE_3G_CP_CAPS_MSA=1 +ENABLE_3G_CP_CAPS_MSB=1 +ENABLE_4G_CP_CAPS_MSA=1 +ENABLE_4G_CP_CAPS_MSB=1 +ENABLE_5G_CP_CAPS_MSA=1 +ENABLE_5G_CP_CAPS_MSB=1 +ENABLE_2G_UP_CAPS_MSA=1 +ENABLE_2G_UP_CAPS_MSB=1 +ENABLE_3G_UP_CAPS_MSA=1 +ENABLE_3G_UP_CAPS_MSB=1 +ENABLE_4G_UP_CAPS_MSA=1 +ENABLE_4G_UP_CAPS_MSB=1 +ENABLE_5G_UP_CAPS_MSA=0 +ENABLE_5G_UP_CAPS_MSB=0 +SUPL_SSL_METHOD=TLSv1_1 +SUPL_HMAC_HASH=SHA256 +SUPL_UT2_SEC=20 +SUPL_UT3_SEC=20 +ENABLE_LPP_CP=1 +ENABLE_LPP_UP=0 +ENABLE_LPPE_CP=3 +ENABLE_LPPE_UP=0 +ENABLE_NLP_IN_LPPE=1 +ENABLE_NLP_IN_AGNSS=0 +ENABLE_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