From 5f208452e1a1fe76e34e903dab8c9c0dceea9dee Mon Sep 17 00:00:00 2001 From: Cheng Chang Date: Tue, 11 Jun 2024 10:23:31 +0000 Subject: [PATCH] gps: Enable Pps function Bug: 346665757 Test: b/346665757#comment7 boot-health-check-extra. Test: Function verification at b/346665757#comment8. Change-Id: I5aa9d13cab822ac1b30e1baee99d4627c40a0891 --- device-comet.mk | 2 ++ location/user/gps.cfg | 2 +- location/userdebug/gps.cfg | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/device-comet.mk b/device-comet.mk index ba84582..03c2427 100644 --- a/device-comet.mk +++ b/device-comet.mk @@ -327,6 +327,8 @@ PRODUCT_SOONG_NAMESPACES += \ # Location PRODUCT_SOONG_NAMESPACES += device/google/comet/location +# For GPS property +PRODUCT_VENDOR_PROPERTIES += ro.vendor.gps.pps.enabled=true $(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT)) PRODUCT_PACKAGES += gps.cfg diff --git a/location/user/gps.cfg b/location/user/gps.cfg index b951644..79b049a 100644 --- a/location/user/gps.cfg +++ b/location/user/gps.cfg @@ -10,7 +10,7 @@ gnss_device_patch_file=/vendor/firmware/kepler.bin allow_logging_if_disconnected=0 ism_stream_enable=1 caplay_port_tcp_port=@GNSS_ISM_CAPTURE_PLAYBACK -Is1PPSTimeSyncEnable=0 +Is1PPSTimeSyncEnable=1 MaxNtnRefLocAgeSecs=600 GlueLayer_IsPlatformRefTimeEnable=1 chpp_betp_client=1 diff --git a/location/userdebug/gps.cfg b/location/userdebug/gps.cfg index 766d289..93e0037 100644 --- a/location/userdebug/gps.cfg +++ b/location/userdebug/gps.cfg @@ -27,7 +27,7 @@ ism_stream_enable=1 caplay_port_tcp_port=@GNSS_ISM_CAPTURE_PLAYBACK # Enable/Disable 1PPS Time Sync policy -Is1PPSTimeSyncEnable=0 +Is1PPSTimeSyncEnable=1 MaxNtnRefLocAgeSecs=600 # CHIP_CONFIG_IO_OPT_HOSTIO_VIA_SECONDARY + CHIP_CONFIG_IO_OPT_CPMB_MASK