umi: Squash of commits

commit 3a8fae048728f53b1145d1d12a2e89e2105a0172 (HEAD -> lineage-19.1)
Author: me-cafebabe <me_cafebabe@hotmail.com>
Date:   Wed Aug 31 21:17:48 2022 +0800

    umi: Update blobs from V13.0.6.0.SJBCNXM

    Co-authored-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>

commit 16635c91fcb2b9b890ae22473e9f9bc7a3f62942
Author: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Date:   Tue Jul 26 22:43:56 2022 +0200

    umi: Drop thermal configs

    Change-Id: Idad68d7748b2b187e98867597abaa36a9ec6a7f8

commit 1a1e258f90466db330ee749c250681f5aad2b020
Author: me-cafebabe <me_cafebabe@hotmail.com>
Date:   Wed Aug 31 20:41:56 2022 +0800

    Revert "umi: Rename ACDBs to `Forte` to follow common acdbloader"

    Common uses Tutu by default now

    This reverts commit 361c80125fc03d30b67ada3ab2e2f1abe21340b7.

commit 4539376eb6567b3284e74fc8dcc7a6695af0e4fa
Author: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Date:   Tue Jul 26 14:21:13 2022 +0200

    umi: Decommonize NFC configs and firmware

    Change-Id: Ic12935684be8c5e1d2e695b54467b25faece3abe

commit c4d0b142712cf7d40a999039ad8d8c9435cbe384
Author: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Date:   Mon Jul 25 21:52:07 2022 +0200

    umi: Decommonize IPA and charger blobs

    Change-Id: Ie4137aa04950a20f17e7d2dd5a74b5b2d98598aa
This commit is contained in:
me-cafebabe
2022-08-31 21:16:00 +08:00
parent 5b65c25e18
commit 25d9baba1a
140 changed files with 1104 additions and 1538 deletions

BIN
proprietary/vendor/bin/batterysecret vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/hvdcp_opti vendored Executable file

Binary file not shown.

48
proprietary/vendor/bin/init.qti.chg_policy.sh vendored Executable file
View File

@@ -0,0 +1,48 @@
#! /vendor/bin/sh
#
# Copyright (c) 2019-2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2019 The Linux Foundation. All rights reserved.
#
export PATH=/vendor/bin
soc_id=`getprop ro.vendor.qti.soc_id`
if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 450 ] || [ "$soc_id" -eq 475 ] || [ "$soc_id" -eq 497 ] || [ "$soc_id" -eq 498 ] || [ "$soc_id" -eq 499 ] || [ "$soc_id" -eq 515 ]; then
setprop persist.vendor.hvdcp_opti.start 2
exit 0
fi
if [ "$soc_id" -eq 441 ] || [ "$soc_id" -eq 471 ]; then
#Scuba does not support usb-pd or charge pumps
find /sys/class/power_supply/battery/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/bms/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/main/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/usb/ -type f -maxdepth 1 | xargs chown system.system
else
find /sys/class/power_supply/battery/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/bms/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/main/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/usb/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/charge_pump_master/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/pc_port/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/dc/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/power_supply/parallel/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/usbpd/usbpd0/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/qc-vdm/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/charge_pump/ -type f -maxdepth 1 | xargs chown system.system
find /sys/class/qcom-battery/ -type f -maxdepth 1 | xargs chown system.system
for i in 0 1 2 3 4 5 6 7 8 9
do
devname=`cat /sys/bus/iio/devices/iio:device$i/name`
if [[ "$devname" == *smb* ]] || [[ "$devname" == *qg* ]] || [[ "$devname" == *div2_cp* ]] || [[ "$devname" == *div2-cp* ]]; then
find /sys/bus/iio/devices/iio:device$i/ -type f -maxdepth 1 | xargs chown system.system
fi
done
fi
setprop persist.vendor.hvdcp_opti.start 1

View File

@@ -0,0 +1,14 @@
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
#
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait

View File

@@ -0,0 +1,29 @@
on property:sys.boot_completed=1
chmod 0664 /sys/class/usbpd/usbpd0/usbpd_verifed
chmod 0664 /sys/class/usbpd/usbpd0/request_vdm_cmd
chmod 0664 /sys/class/usbpd/usbpd0/verify_process
chmod 0664 /sys/class/power_supply/usb/pd_authentication
chmod 0664 /sys/class/power_supply/bms/authentic
chmod 0664 /sys/class/power_supply/bms_master/authentic
chmod 0664 /sys/class/power_supply/bms_slave/authentic
service batterysecret /vendor/bin/batterysecret
class last_start
user root
group system system wakelock
disabled
seclabel u:r:batterysecret:s0
on property:sys.boot_completed=1
start batterysecret
#run batterysecret in off-charge mode
on charger
start batterysecret
chmod 0664 /sys/class/usbpd/usbpd0/usbpd_verifed
chmod 0664 /sys/class/usbpd/usbpd0/request_vdm_cmd
chmod 0664 /sys/class/usbpd/usbpd0/verify_process
chmod 0664 /sys/class/power_supply/usb/pd_authentication
chmod 0664 /sys/class/power_supply/bms/authentic
chmod 0664 /sys/class/power_supply/bms_master/authentic
chmod 0664 /sys/class/power_supply/bms_slave/authentic

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on early-boot
write /dev/ipa 1

View File

@@ -0,0 +1,43 @@
# Copyright (c) 2019-2020, Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
#
service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
class main
user system
group system wakelock
capabilities BLOCK_SUSPEND WAKE_ALARM
disabled
service vendor.qti-chg-policy-sh /vendor/bin/init.qti.chg_policy.sh
class core
user root
oneshot
disabled
on boot
enable vendor.qti-chg-policy-sh
start vendor.qti-chg-policy-sh
on charger
chown radio wakelock /sys/power/wake_lock
chmod 0660 /sys/power/wake_lock
chown radio wakelock /sys/power/wake_unlock
chmod 0660 /sys/power/wake_unlock
mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
mount_all /vendor/etc/charger_fstab.qti --early
enable vendor.qti-chg-policy-sh
start vendor.qti-chg-policy-sh
on property:persist.vendor.hvdcp_opti.start=2
rmdir /mnt/vendor/persist/hvdcp_opti
setprop persist.vendor.hvdcp_opti.start 0
on property:persist.vendor.hvdcp_opti.start=1
mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
enable vendor.hvdcp_opti
start vendor.hvdcp_opti
setprop persist.vendor.hvdcp_opti.start 0

118
proprietary/vendor/etc/libnfc-nci.conf vendored Normal file
View File

@@ -0,0 +1,118 @@
########################## Start of libnfc-nci.conf ###########################
# Sep.19, 2019 Reviewed by Jian
###############################################################################
# Application options
NFC_DEBUG_ENABLED=1
###############################################################################
# performance measurement
# Change this setting to control how often USERIAL log the performance (throughput)
# data on read/write/poll
# defailt is to log performance dara for every 100 read or write
#REPORT_PERFORMANCE_MEASURE=100
###############################################################################
# File used for NFA storage
NFA_STORAGE="/data/nfc"
###############################################################################
# Configure the default NfcA/IsoDep techology and protocol route. Can be
# either a secure element (e.g. 0xF4) or the host (0x00)
#DEFAULT_ISODEP_ROUTE=0x00
###############################################################################
## Default poll duration (in ms)
## The defualt is 500ms if not set
NFA_DM_DISC_DURATION_POLL=500
###############################################################################
# Force UICC to only listen to the following technology(s).
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F
UICC_LISTEN_TECH_MASK=0x07
###############################################################################
# Force HOST listen feature enable or disable.
# 0: Disable
# 1: Enable
HOST_LISTEN_ENABLE=0x01
###############################################################################
# When screen is turned off, specify the desired power state of the controller.
# 0: power-off-sleep state; DEFAULT
# 1: full-power state
# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used)
SCREEN_OFF_POWER_STATE=1
###############################################################################
# Force tag polling for the following technology(s).
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
# NFA_TECHNOLOGY_MASK_B_PRIME |
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE.
#
# Notable bits:
# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */
# NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */
# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */
# NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */
# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */
# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */
POLLING_TECH_MASK=0x4F
###############################################################################
# Force P2P to only listen for the following technology(s).
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F |
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE
#
# Notable bits:
# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */
# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */
# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */
# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */
P2P_LISTEN_TECH_MASK=0x45
###############################################################################
PRESERVE_STORAGE=0x01
###############################################################################
# Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h.
# The value is set to 3 by default as it assumes we will discover 0xF2,
# 0xF3, and 0xF4. If a platform will exclude and SE, this value can be reduced
# so that the stack will not wait any longer than necessary.
# Maximum EE supported number
# NXP PN547C2 0x02
# NXP PN65T 0x03
# NXP PN548C2 0x02
# NXP PN66T 0x03
NFA_MAX_EE_SUPPORTED=0x03
##############################################################################
# Deactivate notification wait time out in seconds used in ETSI Reader mode
# 0 - Infinite wait
NFA_DM_DISC_NTF_TIMEOUT=0
###############################################################################
# AID_MATCHING constants
# AID_MATCHING_EXACT_ONLY 0x00
# AID_MATCHING_EXACT_OR_PREFIX 0x01
# AID_MATCHING_PREFIX_ONLY 0x02
#AID_MATCHING_EXACT_OR_SUBSET_OR_PREFIX 0x03
AID_MATCHING_MODE=0x03
###############################################################################
# Preferred Secure Element for Technology based routing
# eSE 0x01
# UICC 0x02
NXP_PRFD_TECH_SE=0x01
################################################################################
#Set bit to 1 , black list is enabled
#Set bit to 0, to disable balcklist
NFA_AID_BLOCK_ROUTE=0x00
################################################################################
# Maximum WTX requests entertained by MW
NXP_WM_MAX_WTX_COUNT=30
################################################################################
#Set the default Felica T3T System Code :
#This settings will be used when application does not set this parameter
DEFAULT_SYS_CODE={FE:FE}
#########################################################################
#Set NCI credit notification timeout value
NXP_NCI_CREDIT_NTF_TIMEOUT=2
#########################################################################

456
proprietary/vendor/etc/libnfc-nxp.conf vendored Normal file
View File

@@ -0,0 +1,456 @@
#################### This file is used by NXP NFC NCI HAL #####################
# Sep.19, 2019 Reviewed by Jian
###############################################################################
# Application options
# Logging Levels
# NXPLOG_DEFAULT_LOGLEVEL 0x01
# ANDROID_LOG_DEBUG 0x03
# ANDROID_LOG_WARN 0x02
# ANDROID_LOG_ERROR 0x01
# ANDROID_LOG_SILENT 0x00
NXPLOG_EXTNS_LOGLEVEL=0x03
NXPLOG_NCIHAL_LOGLEVEL=0x03
NXPLOG_NCIX_LOGLEVEL=0x03
NXPLOG_NCIR_LOGLEVEL=0x03
NXPLOG_FWDNLD_LOGLEVEL=0x03
NXPLOG_TML_LOGLEVEL=0x03
NFC_DEBUG_ENABLED=1
###############################################################################
# Nfc Device Node name
NXP_NFC_DEV_NODE="/dev/nq-nci"
#################################################################################
#VEN Toggle Config
#Disable = 0x00
#Enable = 0x01
ENABLE_VEN_TOGGLE=0x00
###############################################################################
# Extension for Mifare reader enable
MIFARE_READER_ENABLE=0x01
###############################################################################
# File name for Firmware
NXP_FW_NAME="libsn100u_fw.so"
###############################################################################
# System clock source selection configuration
#define CLK_SRC_XTAL 1
#define CLK_SRC_PLL 2
NXP_SYS_CLK_SRC_SEL=0x02
###############################################################################
# System clock frequency selection configuration
#define CLK_FREQ_13MHZ 1
#define CLK_FREQ_19_2MHZ 2
#define CLK_FREQ_24MHZ 3
#define CLK_FREQ_26MHZ 4
#define CLK_FREQ_38_4MHZ 5
#define CLK_FREQ_52MHZ 6
NXP_SYS_CLK_FREQ_SEL=0x02
###############################################################################
# The timeout value to be used for clock request acknowledgment
# min value = 0x01 to max = 0x06
#NXP_SYS_CLOCK_TO_CFG=0x06
###############################################################################
# The delay to try to start PLL/XTAL when using sys clock 256/fc units = ~18.8 us
# min value = 0x01 to max = 0x1F
#NXP_CLOCK_REQ_DELAY=0x16
###############################################################################
# NXP proprietary settings
NXP_ACT_PROP_EXTN={2F, 02, 00}
###############################################################################
# NFC forum profile settings
NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00}
###############################################################################
# NXP TVDD configurations settings
# Allow NFCC to configure External TVDD, two configurations (1 and 2) supported,
# out of them only one can be configured at a time.
#NXP_EXT_TVDD_CFG=0x02
###############################################################################
#config1:SLALM, 3.3V for both RM and CM
#NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C}
###############################################################################
#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM,
#monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms
#NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C}
###############################################################################
# Core configuration rf field filter settings to enable set to 01 to disable set
# to 00 last bit
#NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 }
###############################################################################
# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set
# to 0x00
#NXP_I2C_FRAGMENTATION_ENABLED=0x00
###############################################################################
#set autonomous mode
# disable autonomous 0x00
# enable autonomous 0x01
NXP_AUTONOMOUS_ENABLE=0x00
###############################################################################
#set Guard Timer
# Gurad Timer range to 0x0F-0xFF(i.e.15-255 seconds)
NXP_GUARD_TIMER_VALUE=0x0F
###############################################################################
#Enable SWP full power mode when phone is power off
#NXP_SWP_FULL_PWR_ON=0x00
################################################################################
#This is used to configure UICC2 at boot time.
# UICC2 0x03
NXP_DEFAULT_UICC2_SELECT=0x03
###############################################################################
# CE when Screen state is locked
# This setting is for DEFAULT_AID_ROUTE,
# DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE
# Disable 0x00
# Enable 0x01
NXP_CE_ROUTE_STRICT_DISABLE=0x01
###############################################################################
#Timeout in secs
NXP_SWP_RD_TAG_OP_TIMEOUT=20
###############################################################################
#Set the default AID route Location :
#This settings will be used when application does not set this parameter
# host 0x00
# eSE 0x01
# UICC 0x02
# UICC2 0x03
DEFAULT_AID_ROUTE=0x01
###############################################################################
#Set the ISODEP (Mifare Desfire) route Location :
#This settings will be used when application does not set this parameter
# host 0x00
# eSE 0x01
# UICC 0x02
# UICC2 0x03
DEFAULT_ISODEP_ROUTE=0x01
###############################################################################
#Set the Mifare CLT route Location :
#This settings will be used when application does not set this parameter
# host 0x00
# eSE 0x01
# UICC 0x02
# UICC2 0x03
DEFAULT_MIFARE_CLT_ROUTE=0x01
###############################################################################
#Set the Felica CLT route Location :
#This settings will be used when application does not set this parameter
# eSE 0x01
# UICC 0x02
# UICC2 0x03
DEFAULT_FELICA_CLT_ROUTE=0x01
###############################################################################
#Set the default AID Power state :
#This settings will be used when application does not set this parameter
# bit pos 0 = Switch On
# bit pos 1 = Switch Off
# bit pos 2 = Battery Off
# bit pos 3 = Screen off unlock
# bit pos 4 = Screen On lock
# bit pos 5 = Screen Off lock
DEFAULT_AID_PWR_STATE=0x3B
###############################################################################
#Set the Mifare Desfire Power state :
#This settings will be used when application does not set this parameter
# bit pos 0 = Switch On
# bit pos 1 = Switch Off
# bit pos 2 = Battery Off
# bit pos 3 = Screen off unlock
# bit pos 4 = Screen On lock
# bit pos 5 = Screen Off lock
DEFAULT_DESFIRE_PWR_STATE=0x3B
###############################################################################
#Set the Mifare CLT Power state :
#This settings will be used when application does not set this parameter
# bit pos 0 = Switch On
# bit pos 1 = Switch Off
# bit pos 2 = Battery Off
# bit pos 3 = Screen off unlock
# bit pos 4 = Screen On lock
# bit pos 5 = Screen Off lock
DEFAULT_MIFARE_CLT_PWR_STATE=0x3B
###############################################################################
#Set the Felica CLT Power state :
#This settings will be used when application does not set this parameter
# bit pos 0 = Switch On
# bit pos 1 = Switch Off
# bit pos 2 = Battery Off
# bit pos 3 = Screen off unlock
# bit pos 4 = Screen On lock
# bit pos 5 = Screen Off lock
DEFAULT_FELICA_CLT_PWR_STATE=0x3B
###############################################################################
#Set the T4TNfcee AID Power state :
#This settings will be used when application does not set this parameter
# bit pos 0 = Switch On
# bit pos 1 = Switch Off
# bit pos 2 = Battery Off
# bit pos 3 = Screen off unlock
# bit pos 4 = Screen On lock
# bit pos 5 = Screen Off lock
DEFAULT_T4TNFCEE_AID_POWER_STATE=0x3B
###############################################################################
#Set the default Felica T3T System Code OffHost route Location :
#This settings will be used when application does not set this parameter
# host 0x00
# eSE 0x01
# UICC 0x02
# UICC2 0x03
DEFAULT_SYS_CODE_ROUTE=0x00
###############################################################################
# AID Matching platform options
# AID_MATCHING_L 0x01
# AID_MATCHING_K 0x02
#AID_MATCHING_PLATFORM=0x01
###############################################################################
# P61 interface options
# SPI 0x02
NXP_P61_LS_DEFAULT_INTERFACE=0x02
###############################################################################
#CHINA_TIANJIN_RF_SETTING
#Enable 0x01
#Disable 0x00
#NXP_CHINA_TIANJIN_RF_ENABLED=0x01
###############################################################################
#SWP_SWITCH_TIMEOUT_SETTING
# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60].
# Timeout in milliseconds, for example
# No Timeout 0x00
# 10 millisecond timeout 0x0A
#NXP_SWP_SWITCH_TIMEOUT=0x0A
###############################################################################
# Flashing Options Configurations
# FLASH_UPPER_VERSION 0x01
# FLASH_DIFFERENT_VERSION 0x02
# FLASH_ALWAYS 0x03
NXP_FLASH_CONFIG=0x02
###############################################################################
# P61 interface options for JCOP Download
# SPI 0x02
NXP_P61_JCOP_DEFAULT_INTERFACE=0x02
###############################################################################
# Option to perform LS update every boot
# Enable 0x01
# Disable 0x00
NXP_LS_FORCE_UPDATE_REQUIRED=0x00
###############################################################################
# Option to perform JCOP update every boot
# Enable 0x01
# Disable 0x00
NXP_JCOP_FORCE_UPDATE_REQUIRED=0x00
###############################################################################
# Bail out mode
# If set to 1, NFCC is using bail out mode for either Type A or Type B poll.
NFA_POLL_BAIL_OUT_MODE=0x00
###############################################################################
# White list of Hosts
# This values will be the Hosts(NFCEEs) in the HCI Network.
DEVICE_HOST_WHITE_LIST={C0, 80}
###############################################################################
# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1.
# 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
# 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check
# command is sent waiting for rsp and ntf.
PRESENCE_CHECK_ALGORITHM=2
###############################################################################
# Enable/Disable checking default proto SE Id
# Disable 0x00
# Enable 0x01
NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01
###############################################################################
# Vendor Specific Proprietary Protocol & Discovery Configuration
# Set to 0xFF if unsupported
# byte[0] NCI_PROTOCOL_18092_ACTIVE
# byte[1] NCI_PROTOCOL_B_PRIME
# byte[2] NCI_PROTOCOL_DUAL
# byte[3] NCI_PROTOCOL_15693
# byte[4] NCI_PROTOCOL_KOVIO
# byte[5] NCI_PROTOCOL_MIFARE
# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, FF, FF, FF}
###############################################################################
#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE
#Enable/Disable block number checks for china transit use case
#Enable 0x01
#Disable 0x00
#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01
###################################################################################################
#This flags will enable different modes of Lx Debug based on bits of the Byte0 & Byte1
#Byte 0:
# |_________Bit Mask_______| Debug Mode
# b7|b6|b5|b4|b3|b2|b1|b0|
# |X | | | | | | | Enable 7816-4 RetCode
# | | |X | | | | | Enable L1 Events (ISO14443-4, ISO18092)
# | | | |X | | | | Enable L2 Reader Events(ROW specific)
# | | | | |X | | | Enable Felica SystemCode
# | | | | | |X | | Enable Felica RF (all Felica CM events)
# | | | | | | |X | Enable L2 Events Card Emulation (ISO14443-3, Modulation detected, RF Field ON/OFF)
#Byte 1:
# Enable RSSI 0x01 Byte1 Byte0
# Disable RSSI 0x00 \__ __/
# e.g. NXP_CORE_PROP_SYSTEM_DEBUG=0x0110 ==> L1 with RSSI
NXP_CORE_PROP_SYSTEM_DEBUG=0x0000
###############################################################################
#Enable NXP NCI runtime parser library
#Enable 0x01
#Disable 0x00
NXP_NCI_PARSER_LIBRARY=0x00
###############################################################################
# Timeout value in milliseconds for JCOP OS download to complete
OS_DOWNLOAD_TIMEOUT_VALUE=60000
###############################################################################
# Forcing HOST to listen for a selected protocol
# 0x00 : Disable Host Listen
# 0x01 : Enable Host to Listen (A) for ISO-DEP tech A
# 0x02 : Enable Host to Listen (B) for ISO-DEP tech B
# 0x04 : Enable Host to Listen (F) for T3T Tag Type Protocol tech F
# 0x07 : Enable Host to Listen (ABF)for ISO-DEP tech AB & T3T Tag Type Protocol tech F
HOST_LISTEN_TECH_MASK=0x07
###############################################################################
# Enable forward functionality
# Disable 0x00
# Enable 0x01
FORWARD_FUNCTIONALITY_ENABLE=0x01
###############################################################################
# Configure the NFC Extras to open and use a static pipe. If the value is
# not set or set to 0, then the default is use a dynamic pipe based on a
# destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value
# for each EE (ESE/SIM)
OFF_HOST_ESE_PIPE_ID=0x16
OFF_HOST_SIM_PIPE_ID=0x0A
###############################################################################
#Set the Felica T3T System Code Power state :
#This settings will be used when application does not set this parameter
#Update Power state as per NCI2.0
DEFAULT_SYS_CODE_PWR_STATE=0x39
###############################################################################
#Default Secure Element route id
DEFAULT_OFFHOST_ROUTE=0x01
###############################################################################
#Maximum SMB transceive wait for response
NXP_SMB_TRANSCEIVE_TIMEOUT=2000
###############################################################################
# Firmware file type
#.so file 0x01
#.bin file 0x02
NXP_FW_TYPE=0x01
############################################################################
# Extended APDU length for ISO_DEP
ISO_DEP_MAX_TRANSCEIVE=0xFEFF
#########################################################################
# Support for Amendment I SEMS specification
# Support SEMS Amendment I 0x01
# Support NXP LS client 0x00
NXP_GP_AMD_I_SEMS_SUPPORTED=0x01
###############################################################################
# Assign terminal number to each interface based on system config
NXP_SPI_SE_TERMINAL_NUM="eSE1"
###############################################################################
# Assign terminal number to each interface based on system config
#NXP_VISO_SE_TERMINAL_NUM="eSE3"
###############################################################################
# Assign terminal number to each interface based on system config
NXP_NFC_SE_TERMINAL_NUM="eSE2"
###############################################################################
#For static or dynamic dual UICC feature support
#Enable static dual uicc feature by setting value 0x00
#Enable dynamic dual uicc feature by setting value 0x01
NXP_DUAL_UICC_ENABLE=0x01
###############################################################################
# Time to wait by DH when NFCC will report eSE Cold Temp Error.
# The value is as per the UM and in seconds
NXP_SE_COLD_TEMP_ERROR_DELAY=0x05
###############################################################################
# Set configuration optimization decision setting
# Enable = 0x01
# Disable = 0x00
NXP_SET_CONFIG_ALWAYS=0x01
###############################################################################
#OffHost ESE route location for MultiSE
#ESE = 01
OFFHOST_ROUTE_ESE={01}
###############################################################################
#OffHost UICC route location for MultiSE
#UICC1 = 02
#UICC2 = 03
OFFHOST_ROUTE_UICC={02:03}
###############################################################################
#T4T NFCEE ENABLE
#bit pos 0 = T4T NFCEE Enable
#bit pos 6 = T4T NFCEE Contactless write enable
NXP_T4T_NFCEE_ENABLE=0x01
###############################################################################
#CORE_SET_CONF_CMD to reset Prop Emvco Flag
NXP_PROP_RESET_EMVCO_CMD={20, 02, 05, 01, A0, 44, 01, 00}
###############################################################################
# Firmware patch format, Only 1 and 5 should be set
# 0 -> NFC Default
# 1 -> EMVCO Default
# 3 -> EMVCO Polling, DISC_IDLE = POWER_OFF, DISC DEACTIVATE = Removal process
# 5 -> EMVCO Cert Polling, DISC_IDLE = Removal process , DISC DEACTIVATE = POWER_OFF
# 7 -> EMVCO Polling, DISC_IDLE = POWER_OFF, DISC DEACTIVATE = POWER_OFF
NFA_CONFIG_FORMAT=1
################################################################################
# This will enable power state required for GSMA testing.
# When this is enabled , then default AID route power state is added with this power state
# If any aid with power state 0 is added, then this power state is used.
# bit pos 0 = Switch On
# bit pos 1 = Switch Off
# bit pos 2 = Battery Off
# bit pos 3 = Screen off unlock
# bit pos 4 = Screen On lock
# bit pos 5 = Screen Off lock
#DEFUALT_GSMA_PWR_STATE=0x3B
#################################################################################

View File

@@ -158,6 +158,45 @@
"data": "0.0"
}
},
".coefficient_panel3":{
"owner": "sns_tcs3701",
"0":{ "type": "flt", "ver": "1",
"data": "1.523375"
},
"1":{ "type": "flt", "ver": "1",
"data": "1.961"
},
"2":{ "type": "flt", "ver": "1",
"data": "-1.398"
},
"3":{ "type": "flt", "ver": "1",
"data": "7.185"
},
"4":{ "type": "flt", "ver": "1",
"data": "-6.844"
},
"5":{ "type": "flt", "ver": "0",
"data": "0.0"
},
"6":{ "type": "flt", "ver": "0",
"data": "0.0"
},
"7":{ "type": "flt", "ver": "0",
"data": "0.0"
},
"8":{ "type": "flt", "ver": "0",
"data": "0.0"
},
"9":{ "type": "flt", "ver": "0",
"data": "0.0"
},
"10":{ "type": "flt", "ver": "0",
"data": "600.0"
},
"11":{ "type": "flt", "ver": "0",
"data": "0.0"
}
},
".oled_cal_factor":{
"owner": "sns_tcs3701",
"clear_a":{ "type": "flt", "ver": "1",
@@ -541,6 +580,60 @@
"7":{ "type": "flt", "ver": "1",
"data": "21.4517"
}
},
".60hz_panel3_step_cmp_factor":{
"owner": "sns_tcs3701",
"0":{ "type": "flt", "ver": "1",
"data": "0.32775"
},
"1":{ "type": "flt", "ver": "1",
"data": "0.193637"
},
"2":{ "type": "flt", "ver": "1",
"data": "0.113083"
},
"3":{ "type": "flt", "ver": "1",
"data": "0.05395"
},
"4":{ "type": "flt", "ver": "1",
"data": "146.4489"
},
"5":{ "type": "flt", "ver": "1",
"data": "89.40625"
},
"6":{ "type": "flt", "ver": "1",
"data": "54.19602"
},
"7":{ "type": "flt", "ver": "1",
"data": "21.21875"
}
},
".90hz_panel3_step_cmp_factor":{
"owner": "sns_tcs3701",
"0":{ "type": "flt", "ver": "1",
"data": "0.327277"
},
"1":{ "type": "flt", "ver": "1",
"data": "0.193995"
},
"2":{ "type": "flt", "ver": "1",
"data": "0.112838"
},
"3":{ "type": "flt", "ver": "1",
"data": "0.053904"
},
"4":{ "type": "flt", "ver": "1",
"data": "147.0085"
},
"5":{ "type": "flt", "ver": "1",
"data": "90.30114"
},
"6":{ "type": "flt", "ver": "1",
"data": "54.14489"
},
"7":{ "type": "flt", "ver": "1",
"data": "21.4517"
}
}
}
}

View File

@@ -47,6 +47,15 @@
"threshold4": {
"ver": "2", "type": "flt", "data": "500"
}
},
".params_step":{
"owner": "sar_algo",
"usestep": {
"ver": "0", "type": "flt", "data": "0"
},
"stepcount": {
"ver": "0", "type": "flt", "data": "100"
}
}
}
}
}

View File

@@ -1,6 +1,6 @@
Acc lsm6dso_0_platform.accel.fac_cal.bias /vendor/etc/sensors/config/sm8250_lsm6dso_0.json 0
Gyr lsm6dso_0_platform.gyro.fac_cal.bias /vendor/etc/sensors/config/sm8250_lsm6dso_0.json 0
Lux tcs3701_platform.als.fac_cal /vendor/etc/sensors/config/sm8250_tcs3701.json 0
Lux tcs3701_platform.oled_cal_factor /vendor/etc/sensors/config/sm8250_tcs3701.json 1
Lux_B tcs3408_platform.als.fac_cal /vendor/etc/sensors/config/sm8250_tcs3408.json 0
Bar bmp285_0_platform.pressure.fac_cal.bias /vendor/etc/sensors/config/sm8250_bmp285_0.json 0
Acc lsm6dso_0_platform.accel.fac_cal.bias /vendor/etc/sensors/config/sm8250_lsm6dso_0.json 0 lsm6dso
Gyr lsm6dso_0_platform.gyro.fac_cal.bias /vendor/etc/sensors/config/sm8250_lsm6dso_0.json 0 lsm6dso
Lux tcs3701_platform.als.fac_cal /vendor/etc/sensors/config/sm8250_tcs3701.json 0 tcs3701
Lux tcs3701_platform.oled_cal_factor /vendor/etc/sensors/config/sm8250_tcs3701.json 1 tcs3701
Lux_B tcs3408_platform.als.fac_cal /vendor/etc/sensors/config/sm8250_tcs3408.json 0 tcs3408
Bar bmp285_0_platform.pressure.fac_cal.bias /vendor/etc/sensors/config/sm8250_bmp285_0.json 0 bosch_bmp285

View File

@@ -1,53 +0,0 @@
// @file qti_gravity.proto
//
// Defines standard message types for the QTI Gravity Proto
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_gravity.proto";
enum qti_gravity_msgid
{
option (nanopb_enumopt).long_names = false;
QTI_GRAVITY_MSGID_QTI_GRAVITY_MOTION_DATA_EVENT = 1029;
}
// Device Motion State detected by the gravity sensor
enum qti_gravity_device_motion_state
{
option (nanopb_enumopt).long_names = false;
// Device motion state is unknown
QTI_GRAVITY_DEVICE_MOTION_STATE_UNKNOWN = 0;
// Device is at absolute rest, an example of which
// would be lying undisturbed on a desk
QTI_GRAVITY_DEVICE_MOTION_STATE_ABS_REST = 1;
// Device is at relative rest, an example of which
// would be held steady in the user hand undergoing
// no orientation change
QTI_GRAVITY_DEVICE_MOTION_STATE_REL_REST = 2;
// Device is in motion
QTI_GRAVITY_DEVICE_MOTION_STATE_MOTION = 3;
}
// Configuration Message
// Used to either request for a certain configuration of the qti gravity sensor or
// alter an already existing configuration of the qti gravity sensor
// Uses sns_std_sensor_config defined in sns_std_sensor.proto
// The message field definitions are as follows:
// 1) float sample_rate
// containing the required sample rate of the qti gravity sensor in hertz
// Data Message
// Output data event generated by the qti gravity sensor.
message qti_gravity_motion_data_event
{
// Device motion state detected using the gravity vector
required qti_gravity_device_motion_state device_motion_state = 1 [default=QTI_GRAVITY_DEVICE_MOTION_STATE_UNKNOWN];
}

View File

@@ -1,166 +0,0 @@
// @file sns_async_com_port.proto
//
// Defines standard message types for the Async Com Port
//
// Copyright (c) 2016-2018, 2020 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std.proto";
// Asynchronous Com Port
//
// The Asynchronous Com Port provides access to buses like I2C, I3C, SPI and others.
// A complete list of all buses available in the sns_async_com_port_bus_type enum.
//
// The Asynchronous Com Port can perform read and write operations on these buses
// asynchronously. This is the recommended way to perform large bus reads (example:
// reading a large FIFO buffer). This file describes the use of the async com port
// (ascp) API.
//
// First, the client must configure the port using the sns_async_com_port_config
// message.
//
// To perform one or more read or write operations, the client should send the
// sns_async_com_port_vector_rw message.
//
// A single sns_async_com_port_vector_rw message can contain multiple
// sns_async_com_port_vector messages, the async com port will efficiently perform
// all the transactions that are part of the parent sns_async_com_port_vector_rw
// message. The results of the transaction will be sent as an sns_async_com_port_vector_rw
// event.
//
// The async com port will internally manage efficiently opening and closing the
// bus power lines and clock settings. The async com port can safely be used along
// with the synchronous com port service.
//
// To help with encoding and decoding the sns_async_com_port_vector_rw messages,
// utility functions are provided in sns_async_com_port_pb_utils.h
// The operation to be performed by the async com port
enum sns_async_com_port_operation_type
{
option (nanopb_enumopt).long_names = false;
SNS_ASYNC_COM_PORT_OPERATION_TYPE_READ = 0;
SNS_ASYNC_COM_PORT_OPERATION_TYPE_WRITE = 1;
}
// The bus type to be accessed by the async com port
enum sns_async_com_port_bus_type
{
option (nanopb_enumopt).long_names = false;
// I2C bus:
SNS_ASYNC_COM_PORT_BUS_TYPE_I2C = 0;
// SPI bus:
SNS_ASYNC_COM_PORT_BUS_TYPE_SPI = 1;
// I3C bus, standard data rate:
SNS_ASYNC_COM_PORT_BUS_TYPE_I3C_SDR = 3;
// I3C bus, double data rate:
SNS_ASYNC_COM_PORT_BUS_TYPE_I3C_HDR_DDR = 4;
// I3C bus, legacy I2C device attached to I3C bus:
SNS_ASYNC_COM_PORT_BUS_TYPE_I3C_I2C_LEGACY = 5;
}
// The registry address type to be used by async com port
enum sns_async_com_port_reg_addr_type
{
option (nanopb_enumopt).long_names = false;
SNS_ASYNC_COM_PORT_REG_ADDR_TYPE_8_BIT = 0;
SNS_ASYNC_COM_PORT_REG_ADDR_TYPE_16_BIT = 1;
SNS_ASYNC_COM_PORT_REG_ADDR_TYPE_32_BIT = 2;
}
// Configuration message
message sns_async_com_port_config
{
// The bus type
required sns_async_com_port_bus_type bus_type = 1;
// Slave Address for I2C.
// Dynamic slave address for I3C.
// Chip Select for SPI.
required fixed32 slave_control = 2;
// Register address type for the slave
required sns_async_com_port_reg_addr_type reg_addr_type = 3;
// Minimum bus clock supported by slave in kHz
required fixed32 min_bus_speed_kHz = 4;
// Maximum bus clock supported by slave in kHz
required fixed32 max_bus_speed_kHz = 5;
// Platform bus instance number (BLSP number)
required fixed32 bus_instance = 6;
}
// A single read or write operation.
message sns_async_com_port_vector
{
// Read or write operation
required sns_async_com_port_operation_type operation = 1;
// Register address
required fixed32 reg_addr = 2;
// Number of bytes to read or write.
// The async com port will ignore this field for a write
// operation and use the size of the buffer present in the message.
//
// For events generated by the async com port, this field will always match the
// size of the buffer when it is present.
optional fixed32 num_bytes = 3;
// Buffer
// The async com port will ignore this field in a request for a read operation.
optional bytes buffer = 4;
}
// A collection of read and write operations
message sns_async_com_port_vector_rw
{
// Number of operations
required fixed32 num_vectors = 1;
// Read/write operations
repeated sns_async_com_port_vector vectors = 2;
}
// Notifies the client of an error during a transaction
message sns_async_com_port_error
{
// Registry address
required fixed32 reg_addr = 1;
// Number of bytes that was to be read/written
required fixed32 num_bytes = 2;
// Error code
required sns_std_error error_code = 3;
}
// Message IDs
enum sns_async_com_port_msgid
{
option (nanopb_enumopt).long_names = false;
SNS_ASYNC_COM_PORT_MSGID_SNS_ASYNC_COM_PORT_CONFIG = 512;
SNS_ASYNC_COM_PORT_MSGID_SNS_ASYNC_COM_PORT_VECTOR_RW = 1024;
SNS_ASYNC_COM_PORT_MSGID_SNS_ASYNC_COM_PORT_ERROR = 1025;
SNS_ASYNC_COM_PORT_MSGID_SNS_ASYNC_COM_PORT_REG = 1026;
}

View File

@@ -1,35 +0,0 @@
// @file sns_ccd_ttw.proto
//
// Defines message types for the ccd_ttw Sensor.
//
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// The CCD ttw (tilt_to_wake) detects substantial phone rotation (gesture) within
// limited period ending in a specific range of the pitch and roll angles.
// tilt_to_wake Sensor Attribute Requirements:
// SNS_STD_SENSOR_ATTRID_TYPE: "ccd_ttw"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
// Stream Requests:
// - SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG is used to enable the sensor
// Message IDs for ccd_ttw Sensor
enum sns_ccd_ttw_msgid {
option (nanopb_enumopt).long_names = false;
SNS_CCD_TTW_MSGID_SNS_CCD_TTW_EVENT = 775;
}
// Stream events:
//
// A NULL message with message ID SNS_CCD_TTW_MSGID_SNS_CCD_TTW_EVENT is used to
// publish ccd_ttw event
//
// ccd_ttw does not publish configuration events.

View File

@@ -1,40 +0,0 @@
// @file sns_ccd_walk.proto
//
// Defines message types for the Walk CCD.
//
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// CCD Walk calculates a walk state.
// When a walk is detected, the sensor will send one WALK event.
// To send additional walk events, the sensor must be re-armed with the
// SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG event again.
//
// No events are generated when not in the walk state.
// CCD Walk Sensor Attribute Requirements:
// SNS_STD_SENSOR_ATTRID_TYPE: "ccd_walk"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_SINGLE_OUTPUT
// Stream Requests:
// - SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG is used to enable the sensor
// Message IDs for Walk Sensor
enum sns_ccd_walk_msgid {
option (nanopb_enumopt).long_names = false;
SNS_CCD_WALK_MSGID_SNS_CCD_WALK_EVENT = 773;
}
// Stream events:
//
// A NULL message with message ID SNS_CCD_WALK_MSGID_SNS_CCD_WALK_EVENT is used to
// publish the walk event.
//
// Walk does not publish configuration events.

View File

@@ -1,37 +0,0 @@
// @file sns_cmd.proto
//
// Defines message types for the Continuous Motion Detector (CMD) Sensor.
//
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// CMD identified continuous motions such as vehicle and walk. CMD will initially start in an
// unknown state, and later transition to motion or stationary.
// CMD Sensor Attribute Requirements:
// SNS_STD_SENSOR_ATTRID_TYPE: "cmd"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
// Stream Requests:
// - SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG is used to enable the sensor
// Message IDs for CMD Sensor
enum sns_cmd_msgid {
option (nanopb_enumopt).long_names = false;
SNS_CMD_MSGID_SNS_CMD_EVENT = 772;
}
// Stream events:
//
// A NULL message with message ID SNS_CMD_MSGID_SNS_CMD_EVENT is used to
// publish CMD event
//
// CMD does not publish configuration events.

View File

@@ -1,256 +0,0 @@
// @file sns_dae.proto
//
// Defines all high-level messages sent to/from the Nano sensor environment
//
// Copyright (c) 2017,2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_type.proto";
import "sns_interrupt.proto";
import "sns_async_com_port.proto";
enum sns_dae_msgid {
option (nanopb_enumopt).long_names = false;
// to initialize the nano sensor before it can be used
SNS_DAE_MSGID_SNS_DAE_SET_STATIC_CONFIG = 600;
// provides nano sensor with S4S config info after the initial S4S synch period
SNS_DAE_MSGID_SNS_DAE_S4S_DYNAMIC_CONFIG = 601;
// to start nano sensor streaming
SNS_DAE_MSGID_SNS_DAE_SET_STREAMING_CONFIG = 602;
// no message body
// to flush FIFO data before changing ODR and/or WM
// no data event will be generated
SNS_DAE_MSGID_SNS_DAE_FLUSH_HW = 603;
// no message body
// to request nano sensor to generate data event from the available data
// HW flush will NOT be done
SNS_DAE_MSGID_SNS_DAE_FLUSH_DATA_EVENTS = 604;
// no message body
// to stop nano sensor streaming
SNS_DAE_MSGID_SNS_DAE_PAUSE_SAMPLING = 605;
// no message body
// to stop S4S schedule
SNS_DAE_MSGID_SNS_DAE_PAUSE_S4S_SCHED = 606;
// response from DAE sensor for each request
SNS_DAE_MSGID_SNS_DAE_RESP = 800;
// message from DAE sensor to deliver all available data
SNS_DAE_MSGID_SNS_DAE_DATA_EVENT = 1200;
// message from DAE sensor to deliver unhandle interrupts
SNS_DAE_MSGID_SNS_DAE_INTERRUPT_EVENT = 1201;
}
enum sns_dae_timestamp_type {
// Unknown timestamp type
SNS_DAE_TIMESTAMP_TYPE_UNKNOWN = 0;
// The timestamp corresponds to an interrupt. Timestamp captured with hardware
// timestamping engine
SNS_DAE_TIMESTAMP_TYPE_HW_IRQ = 1;
// The timestamp corresponds to an interrupt. Timestamp captured with software
// within the interrupt handler
SNS_DAE_TIMESTAMP_TYPE_SW_IRQ = 2;
// The timestamp is the current system time when the data was read. The data
// was read due to a system timer firing (for polling & S4S sensors)
SNS_DAE_TIMESTAMP_TYPE_TIMER = 3;
// The timestamp is the current system time when the data was read. The data
// was read due to a flush command.
SNS_DAE_TIMESTAMP_TYPE_SYSTEM_TIME = 4;
}
// S4S static information
//
// This contains S4S information which does not change during the life of the S4S sensor
message sns_s4s_static_info {
// Register address of the S4S ST command
required int32 st_reg_addr = 1;
// Optional data byte which needs to be sent along with ST
optional int32 st_reg_data = 2;
// Register address of the S4S DT command
required int32 dt_reg_addr = 3;
}
// Triaxial sensor input to output axis conversion
message sensor_to_phone_conversion {
// input axis index (x=0, y=1, z=2)
required uint32 ipaxis = 1;
// output axis index the above input axis maps to
required uint32 opaxis = 2;
// whether the input needs to be negated when
// translating to the output axis
required bool invert = 3;
}
// Accel static informtaion
//
// Accel configuration setting that is not expected to change at run time
message sns_accel_static_info {
// Factory calibration: offset, in g's (DEPRECATED - moved to sns_accel_dynamic_info)
repeated float offset_cal = 1 [(nanopb).max_count = 3, deprecated = true];
// Factory calibration: scale factor (DEPRECATED - moved to sns_accel_dynamic_info)
repeated float scale_cal = 2[(nanopb).max_count = 3, deprecated = true];
// range in G
required int32 accel_range = 3;
// axis map to convert from sensor to phone
repeated sensor_to_phone_conversion axis_map = 4 [(nanopb).max_count = 3];
}
// Accel dynamic informtaion
//
// This data may be updated each time the accel configuration changes
message sns_accel_dynamic_info {
// ODR
required float odr = 1;
// How many initial samples after ODR change are invalid
required uint32 num_initial_invalid_samples = 2;
// Factory calibration: offset, in g's
repeated float offset_cal = 3 [(nanopb).max_count = 3];
// Factory calibration: scale factor
repeated float scale_cal = 4 [(nanopb).max_count = 3];
}
// Polling config info
message sns_polling_config_info {
// Absolute time, in 19.2MHz ticks since boot, at which to poll the sensor
required fixed64 polling_offset = 1;
// interval between polling
required fixed64 polling_interval_ticks = 2;
}
// Sensor static configuration
//
// This data may not change for the life of the sensor, and should be configured
// at initilization/boot time.
message sns_dae_set_static_config {
// name of the function table for the nano version of the physical sensor
required string func_table_name = 1 [(nanopb).max_size = 32];
// Operational mode of the sensor:
// 0 --> Polling
// 1 --> Interrupt
// 2 --> IBI (I3C In Band Interrupt)
required int32 interrupt = 2;
// x/y/z axis map for this sensor (DEPRECATED - moved to sns_accel_static_info)
repeated int32 axis_map = 3 [(nanopb).max_count = 3, deprecated = true];
// irq_config required if interrupt == 1
optional sns_interrupt_req irq_config = 4;
// ibi_config required if interrupt == 2
optional sns_ibi_req ibi_config = 8;
// s4s_config required if sensor supports S4S
optional sns_s4s_static_info s4s_config = 5;
// port configuration
required sns_async_com_port_config ascp_config = 6;
// Only for accel sensors
optional sns_accel_static_info accel_info = 7;
}
// S4S dynamic information
//
// This contains S4S information which may change with S4S configuration
message sns_dae_s4s_dynamic_config {
// Absolute time, in 19.2MHz ticks since boot, of the start of an S4S T_PH period
required fixed64 ideal_sync_offset = 1;
// Time, in 19.2MHz ticks, in one S4S T_PH period
required fixed64 sync_interval = 2;
// S4S resolution ratio (RR), as defined in the S4S spec. The final S4S RR will
// be 2^-(11+resolution_ratio).
required int32 resolution_ratio = 3;
// Minimum time, in 19.2MHz ticks, after the S4S T_PH period to send ST/DT
// messages. Will depend on clock accuracy of the sensor, as well as current
// sync_interval
required int32 st_delay = 4;
}
message sns_dae_set_streaming_config {
// minimum number of samples between data events; may still receive fewer samples
required uint32 dae_watermark = 1;
// discard data older than this limit (relative to current system time)
optional fixed64 data_age_limit_ticks = 2;
// required for polling sensors
optional sns_polling_config_info polling_config = 3;
// Only for accel sensors
optional sns_accel_dynamic_info accel_info = 4;
// Expected number of bytes read from sensor for each call to the DAE environment
// "get_data" driver function.
// If not included, default value is 100 bytes.
optional uint32 expected_get_data_bytes = 5;
}
message sns_dae_resp {
// Message ID this error code is associated with
required int32 msg_id = 1;
// result of the request associated with this response
required sns_std_error err = 2;
}
message sns_dae_data_event {
// Timestamp: For interrupt based sensors, this is the timestamp of the IRQ.
// For polling sensors, this is the timestamp of when get_data() was called
required fixed64 timestamp = 1;
// Timestamp type
optional sns_dae_timestamp_type timestamp_type = 3;
// Format of the sensor_data is vendor specific, and up to the nano sensor
// implementation.
required bytes sensor_data = 2;
}
message sns_dae_interrupt_event {
// timestamp of the IRQ.
required fixed64 timestamp = 1;
// Format of registers are vendor specific, and up to the nano sensor implementation.
required bytes registers = 2 [(nanopb).max_size = 8];
}

View File

@@ -1,11 +0,0 @@
// @file sns_data_acquisition_engine.proto
//
// Includes sns_dae.proto
//
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_dae.proto";

View File

@@ -1,149 +0,0 @@
// @file sns_distance_bound.proto
//
// Defines message types for the Distance Bound (DB) Sensor.
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// Distance Bound (DB) algorithm tracks the distance covered in meters
// It expects, as part of its request, distance in meters. DB reports the client
// when this distance is covered from the instant the request was received.
// After a client sends a DB request for distance, it can query DB for
// distance accumulated at any instant before the final breach occurs
// DB Sensor Attribute Requirements:
// SNS_STD_SENSOR_ATTRID_TYPE: "distance_bound"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_SINGLE_OUTPUT
// Stream Requests:
// Message IDs for DB Sensor
enum sns_distance_bound_msgid {
option (nanopb_enumopt).long_names = false;
// Uses message: sns_set_distance_bound
// Purpose:
// A distance bound request from the client
SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND = 516;
// Uses message: None
// Purpose:
// client can query the distance accumulated at a given instance
// before final breach occurs.
// Note: This message should be preceeded by a
// SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND request msg
SNS_DISTANCE_BOUND_MSGID_SNS_GET_DISTANCE_ACCUMULATED = 517;
// Uses message: sns_distance_bound_event
// Purpose:
// This event corresponds to request:
// SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND
// This event is raised when the breach occurs.
SNS_DISTANCE_BOUND_MSGID_SNS_DISTANCE_BOUND_EVENT = 772;
// Uses message: sns_get_distance_accumulated_event
// Purpose:
// This event corresponds to request:
// SNS_DISTANCE_BOUND_MSGID_SNS_GET_DISTANCE_ACCUMULATED
// This event reports the distance accumulated at a given
// instance when the request is received
SNS_DISTANCE_BOUND_MSGID_SNS_GET_DISTANCE_ACCUMULATED_EVENT = 773;
}
// Gives the state which the algorithm is capable
// of detecting
enum sns_distance_bound_motion_state
{
option (nanopb_enumopt).long_names = false;
SNS_DB_MS_UNKNOWN = 0;
SNS_DB_MS_STATIONARY = 1;
SNS_DB_MS_MOVE = 2;
SNS_DB_MS_FIDDLE = 3;
SNS_DB_MS_PEDESTRIAN = 4;
SNS_DB_MS_VEHICLE = 5;
SNS_DB_MS_WALK = 6;
SNS_DB_MS_RUN = 7;
SNS_DB_MS_BIKE = 8;
SNS_DB_MS_MAX = 9;
}
// Request message
// message associated with SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND
// This message will result in atmost one sns_distance_bound_event when
// the requested distance is covered
// If client resends a fresh sns_set_distance_bound before the older is serviced
// the older request will be lost and new distance will be calculated from that
// instant
message sns_set_distance_bound
{
// The distance bound in meters. When the distance travelled exceeds this,
// an event is sent to the requestor
required float distance_bound = 1;
// speeds associated with different motion states.
// if client does not send any motion state speed,
// default values will be taken for that motion state
message speeds {
required sns_distance_bound_motion_state state = 1;
required float speed = 2;
}
repeated speeds speed_bound = 2;
}
// Event message
// message associated with SNS_DISTANCE_BOUND_MSGID_SNS_DISTANCE_BOUND_EVENT
// This event corresponds to request:
// SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND
// This event will be raised after the breach occurs.
message sns_distance_bound_event
{
// Distance accumulated in meters since the last sns_set_distance_bound
required float distance_accumulated = 1;
}
// Event message
// message associated with
// SNS_DISTANCE_BOUND_MSGID_SNS_GET_DISTANCE_ACCUMULATED_EVENT
// This event corresponds to request:
// SNS_DISTANCE_BOUND_MSGID_SNS_GET_DISTANCE_ACCUMULATED
// This event will be raised instantly upon receiveing the above request,
// reporting the distance accumulated till that instance.
// NOTE:
// In following situation an error event,
// SNS_STD_MSGID_SNS_STD_ERROR_EVENT, with payload sns_std_error_event, having
// appropriate error code, will be raised:
// 1. In absence of any prior SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND
// error event with error code SNS_STD_ERROR_FAILED will be raised.
//
// 2. If a breach has already occurred for a prior
// SNS_DISTANCE_BOUND_MSGID_SNS_SET_DISTANCE_BOUND request, error event
// with error code SNS_STD_ERROR_NOT_AVAILABLE will be raised.
message sns_get_distance_accumulated_event
{
// Distance accumulated in meters since the last sns_set_distance_bound
required float distance_accumulated = 1;
}
// DB does not publish configuration events.

View File

@@ -1,140 +0,0 @@
// @file sns_interrupt.proto
//
// Defines standard message types for the Interrupt Sensor. The Interrupt
// Sensor is a QC written platform Sensor which is used by physical Sensor
// drivers that use interrupts like data-ready interrupt (DRI), FIFO watermark
// interrupt, etc. These physical Sensors must use the API defined in this file
// to send requests to and parse events from the Interrupt Sensor.
//
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
enum sns_interrupt_msgid
{
option (nanopb_enumopt).long_names = false;
// This message is used to register for notifications for a physical interrupt
// pin with the interrupt sensor.
SNS_INTERRUPT_MSGID_SNS_INTERRUPT_REQ = 512;
// This message is used to register for notifications for an In Band
// Interrupt (IBI).
SNS_INTERRUPT_MSGID_SNS_IBI_REQ = 514;
// Data event from interrupt Sensor.
//
// This message is generated each time a registered
// interrupt fires. This message ID corresponds to
// the message sns_interrupt_event
SNS_INTERRUPT_MSGID_SNS_INTERRUPT_EVENT = 1024;
// Interrupt sensor event marking it as registered
//
// This message is generated when an interrupt has
// been successfully registered. Sensors should not
// turn on the hardware interrupts until this
// event has been recieved from the interrupt sensor.
// This event has no body and the event length is 0
SNS_INTERRUPT_MSGID_SNS_INTERRUPT_REG_EVENT = 1025;
// Notification message to the interrupt Sensor that
// a level triggered interrupt has been serviced and cleared.
//
// In case of level triggered interrupts, when the interrupt
// fires, the interrupt sensor disables the interrupt until
// it is serviced and cleared at it's source. This message
// is used to notify the interrupt sensor that the interrupt
// has been serviced and cleared so that it can be re-enabled.
// This message is not applicable to edge triggered interrupts.
// This message does not have any payload.
SNS_INTERRUPT_MSGID_SNS_INTERRUPT_IS_CLEARED = 513;
}
// Types of interrupt triggers.
enum sns_interrupt_trigger_type
{
option (nanopb_enumopt).long_names = false;
SNS_INTERRUPT_TRIGGER_TYPE_RISING = 0; // Trigger type rising edge.
SNS_INTERRUPT_TRIGGER_TYPE_FALLING = 1; // Trigger type falling edge.
SNS_INTERRUPT_TRIGGER_TYPE_DUAL_EDGE = 2; // Trigger type rising and falling edge.
SNS_INTERRUPT_TRIGGER_TYPE_HIGH = 3; // Trigger type high level.
SNS_INTERRUPT_TRIGGER_TYPE_LOW = 4; // Trigger type low level.
}
// Types of interrupt pin drive strength.
enum sns_interrupt_drive_strength
{
option (nanopb_enumopt).long_names = false;
SNS_INTERRUPT_DRIVE_STRENGTH_2_MILLI_AMP = 0; // Specify a 2 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_4_MILLI_AMP = 1; // Specify a 4 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_6_MILLI_AMP = 2; // Specify a 6 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_8_MILLI_AMP = 3; // Specify an 8 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_10_MILLI_AMP = 4; // Specify a 10 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_12_MILLI_AMP = 5; // Specify a 12 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_14_MILLI_AMP = 6; // Specify a 14 mA drive.
SNS_INTERRUPT_DRIVE_STRENGTH_16_MILLI_AMP = 7; // Specify a 16 mA drive.
}
// Types of interrupt pin pull.
enum sns_interrupt_pull_type
{
option (nanopb_enumopt).long_names = false;
SNS_INTERRUPT_PULL_TYPE_NO_PULL = 0; // Do not specify a pull.
SNS_INTERRUPT_PULL_TYPE_PULL_DOWN = 1; // Pull the GPIO down.
SNS_INTERRUPT_PULL_TYPE_KEEPER = 2; // Designate as a Keeper.
SNS_INTERRUPT_PULL_TYPE_PULL_UP = 3; // Pull the pin up.
}
// Client request message for Interrupt Sensor.
message sns_interrupt_req
{
// Interrupt pin number.
required uint32 interrupt_num = 1;
// Interrupt trigger type.
required sns_interrupt_trigger_type interrupt_trigger_type = 2;
// Interrupt pin drive strength configuration.
required sns_interrupt_drive_strength interrupt_drive_strength = 3;
// Interrupt pin pull configuration.
required sns_interrupt_pull_type interrupt_pull_type = 4;
// Interrupt pin type. True if this is a chip
// TLMM GPIO. False if this is an SSC TLMM GPIO.
required bool is_chip_pin = 5;
}
// Client request message for Interrupt Sensor.
message sns_ibi_req
{
// Slave address for I3C
required uint32 dynamic_slave_addr = 1;
// Platform bus instance number (BLSP number)
required uint32 bus_instance = 2;
// Number of optional + mandatory bytes supported by the sensor hardware
required fixed32 ibi_data_bytes = 3;
}
// Event generated by the Interrupt Sensor.
message sns_interrupt_event
{
// Interrupt pin number or dynamic slave address
required fixed32 interrupt_num = 1;
// Timestamp when trigger event on the interrupt
// was detected.
required fixed64 timestamp = 2;
// If an IBI event, the data associated with the event
optional bytes ibi_data = 3 [(nanopb).max_size = 32];
}

View File

@@ -1,58 +0,0 @@
// @file sns_mcmd.proto
//
// Defines the API for Magnitude Change Motion Detection Sensors.
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// A magnitude change motion sensor reports once
// - The device is moving
// - The device is detected to be stationary
// The period of time to monitor for stationarity is 5 seconds.
// After reporting, conceptually the algorithm's state is reset,
// and detection begins again.
//
// Motion here refers to any change in accelerometer greater than 78ug in
// any direction
//
// Stationarity here refers to change in accelerometer smaller than 78ug in
// any direction for 5 seconds.
//
// ## Magnitude Change Motion Detect sensor attributes:
// SNS_STD_SENSOR_ATTRID_TYPE is "mcmd"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
// Message IDs for Magnitude Change Motion Sensor
enum sns_mcmd_msgid
{
option (nanopb_enumopt).long_names = false;
// Configuration Request
SNS_MCMD_MSGID_SNS_MCMD_CONFIG = 512;
// Empty Event
// Indicates that the requested state has been detected
SNS_MCMD_MSGID_SNS_MCMD_EVENT = 770;
}
// Detected states supported by the MC Motion Detector
enum sns_mcmd_type
{
option (nanopb_enumopt).long_names = false;
SNS_MCMD_TYPE_STATIONARY = 0;
SNS_MCMD_TYPE_MOTION = 1;
}
// Configuration Message
// Used to specify the MCMD configuration
message sns_mcmd_config
{
// Which detector type to enable
required sns_mcmd_type type = 1;
}

View File

@@ -1,52 +0,0 @@
// @file sns_motion_detect.proto
//
// Defines standard message types for Motion Detect Sensor. All physical Sensor
// drivers that support Motion Detect Sensor are required to support the
// event messages as defined in this file.
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
import "sns_physical_sensor_test.proto";
// Attribute requirements:
// The Motion Detect Sensor publishes:
// 1. SNS_STD_SENSOR_ATTRID_TYPE attribute value as "motion_detect".
// 2. SNS_STD_SENSOR_ATTRID_RESOLUTIONS, SNS_STD_SENSOR_ATTRID_RANGES,
// SNS_STD_SENSOR_ATTRID_RATES attributes are not applicable since this is
// a single output sensor.
// 3. See sns_std_sensor.proto for other attributes.
// Handling stream requests:
// 1. A message with ID SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG is an
// enable request to the motion_detect sensor.
// 2. A client deletes the data stream with motion_detect Sensor to disable it's
// original enable request.
// Message IDs for motion_detect Sensor
enum sns_motion_detect_msgid {
option (nanopb_enumopt).long_names = false;
// The motion_detect Sensor publishes an event with this message ID
SNS_MOTION_DETECT_MSGID_SNS_MOTION_DETECT_EVENT = 771;
}
enum sns_motion_detect_event_type {
option (nanopb_enumopt).long_names = false;
SNS_MOTION_DETECT_EVENT_TYPE_DISABLED = 0;
SNS_MOTION_DETECT_EVENT_TYPE_ENABLED = 1;
SNS_MOTION_DETECT_EVENT_TYPE_FIRED = 2;
}
// Events types from motion detect Sensor
message sns_motion_detect_event
{
required sns_motion_detect_event_type motion_detect_event_type = 1 [default = SNS_MOTION_DETECT_EVENT_TYPE_DISABLED];
}

View File

@@ -1,71 +0,0 @@
// @file sns_multishake.proto
//
// Defines message types for the the multishake sensor
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
// The multishake sensor detects shakes along an axis and
// generates an event when a client specified number of consecutive shakes
// to the device occur. There is a sleep period after a multishake event
// is reported during which shakes are not detected. This sleep period
// is configurable through the registry.
//
// ## Multishake sensor attributes:
// SNS_STD_SENSOR_ATTRID_TYPE is "multishake"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
//
// ## Request Message: SNS_MULTISHAKE_MSGID_SNS_MULTISHAKE_CONFIG
// No configuration is available for this sensor.
//
// ## Event Message: SNS_MULTISHAKE_MSGID_SNS_MULTISHAKE_EVENT
// Reported upon new detection of multishake event.
//
// ## Configuration Message: Multishake does not publish configuration
// messages.
enum sns_multishake_msgid
{
option (nanopb_enumopt).long_names = false;
SNS_MULTISHAKE_MSGID_SNS_MULTISHAKE_CONFIG = 512;
SNS_MULTISHAKE_MSGID_SNS_MULTISHAKE_EVENT = 1024;
}
enum multishake_axis
{
option (nanopb_enumopt).long_names = false;
// Phone is shaken, but phone shake direction cannot be clearly determined
MULTISHAKE_AXIS_UNKNOWN_AXIS = 0;
// Phone is shaken in the X axis according
// to the android coordinate system
MULTISHAKE_AXIS_X_AXIS = 1;
// Phone is shaken in the Y axis according
// to the android coordinate system
MULTISHAKE_AXIS_Y_AXIS = 2;
}
message sns_multishake_config
{
// Select the shake axis along which shake events are detected by
// the algorithm instance. Multiple axes can be selected.
// To detect shakes starting from a left shake or a right shake, use
// shake_axis = [MULTISHAKE_AXIS_LEFT, MULTISHAKE_AXIS_RIGHT]
//
// If shake_axis is not provided, then a multishake event along any
// axis will be reported.
repeated multishake_axis shake_axis = 1 [(nanopb).max_count = 3];
}
message sns_multishake_event
{
// Specifies the axis along which the shakes were detected If shakes in
// multiple axes were detected, the direction of the first shake is reported
// in this field.
required multishake_axis shake_axis = 1;
}

View File

@@ -1,63 +0,0 @@
// @file sns_remote_proc_state.proto
//
// Defines standard message types for the Remote Processor State sensor
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_type.proto";
// remote_proc_state sensor receives remote processor state
// notifications and sends these notifications to its clients
// remote_proc_state Sensor Attribute Requirements:
// SNS_STD_SENSOR_ATTRID_NAME: "Remote Processor State"
// SNS_STD_SENSOR_ATTRID_TYPE: "remote_proc_state"
// SNS_STD_SENSOR_ATTRID_VENDOR: "QTI"
enum sns_remote_proc_state_msgid {
option (nanopb_enumopt).long_names = false;
// Uses message: sns_remote_proc_state_config
// Config request to receive remote processor stat updates
SNS_REMOTE_PROC_STATE_MSGID_SNS_REMOTE_PROC_STATE_CONFIG = 512;
// Uses message: sns_remote_proc_state_event
// This event is generated when the remote_proc_state service
// sends out the remote processor state change notification
SNS_REMOTE_PROC_STATE_MSGID_SNS_REMOTE_PROC_STATE_EVENT = 1024;
}
// Remote processor state config request
// Note: Currently the only supported processor is Apps:
// SNS_STD_PROCESSOR_APSS
message sns_remote_proc_state_config
{
// Requested processor type
required sns_std_client_processor proc_type = 1;
}
// Supported processor state event types
enum sns_remote_proc_state_event_type
{
option (nanopb_enumopt).long_names = false;
// Processor is suspended
SNS_REMOTE_PROC_STATE_SUSPEND = 0;
// Processor is awake
SNS_REMOTE_PROC_STATE_AWAKE = 1;
}
// Remote processor state event
message sns_remote_proc_state_event
{
// Processor type whose state is updated
required sns_std_client_processor proc_type = 1;
// Event type with state of the processor
required sns_remote_proc_state_event_type event_type = 2;
}

View File

@@ -1,47 +0,0 @@
// @file sns_signal_sensor.proto
//
// Defines standard message types for the Signal Sensor
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
// Signal sensor
//
// The signal sensor provides a mechanism to turn asynchronous callbacks into
// events that are passed to the client. The client subscribes to this sensor
// using the sns_signal_sensor_req message.
//
// The signal sensor provides a thread and a flag to the client via the
// sns_signal_sensor_token_event event upon subscribing to the service.
// Message IDs
enum sns_signal_sensor_msgid
{
option (nanopb_enumopt).long_names = false;
SNS_SIGNAL_SENSOR_MSGID_SNS_SIGNAL_SENSOR_REQ = 512;
SNS_SIGNAL_SENSOR_MSGID_SNS_SIGNAL_SENSOR_TOKEN = 1024;
SNS_SIGNAL_SENSOR_MSGID_SNS_SIGNAL_SENSOR_NOTIFY = 1025;
}
// Signal sensor request
//
// Subscribe to the signal sensor.
message sns_signal_sensor_req
{
required bool enable = 1;
}
// Signal sensor token
//
// Provides the thread and flag to the client
message sns_signal_sensor_token
{
required fixed64 thread = 1;
required fixed32 flag = 2;
}

View File

@@ -1,30 +0,0 @@
// @file sns_sim.proto
//
// Defines Header config packet strcture for finding out sim sensors config info
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
import "sns_std_type.proto";
enum sns_sim_msgid
{
option (nanopb_enumopt).long_names = false;
// message not required
// Purpose: Created only for Offline/Online Playback to inform end of the
// file status to client
SNS_SIM_MSGID_SNS_SIM_END_OF_THE_FILE_EVENT = 1027;
}
/*Header config packet proto message. It will come as a first packet in event dlf file*/
message header_info {
message sensor_info{
required sns_std_suid suid = 1;
required string data_type = 2;
repeated sns_std_attr attributes = 3;
}
repeated sensor_info info= 1;
}

View File

@@ -1,32 +0,0 @@
// @file sns_sim_legacy.proto
//
// Defines standard message types for the Simulation Sensor
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// Data Message
// Data event generated by the simulation sensor.
// Uses sns_std_sensor_event message defined in sns_std_sensor.proto
// The data field of the sns_std_sensor_event message
// contains a float array of length 3 with the following definition
// 1) float data[0] to data[2]
// containing the triaxial sensor data in floating point.
// Units for different sensors are as follows
// Accel: m/s2
// Gyro: rad/s
// 2) sns_std_sensor_sample_status status;
// containing the sample status as defined by the sns_std_sensor_sample_status enum
// in sns_std_sensor.proto
// Configuration Message
// Used to either request for a certain configuration of the Sim Sensor or
// alter an already existing configuration of the Simulation Sensor
// Uses sns_std_sensor_config defined in sns_std_sensor.proto
// The message field definitions are as follows:
// 1) float sample_rate
// containing the required sample rate of the Sim sensor in hertz

View File

@@ -1,149 +0,0 @@
// @file sns_timer.proto
//
// Defines standard message types for the Timer Sensor
//
// Copyright (c) 2017 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
enum sns_timer_sensor_timeout
{
option (nanopb_enumopt).long_names = false;
SNS_TIMER_SENSOR_TIMEOUT_MIN_TIMEOUT_NANOSEC = 100000;
}
enum sns_timer_msgid {
option (nanopb_enumopt).long_names = false;
// Timer config message.
//
//Corresponds to the message sns_timer_sensor_config.
// This message is used to start, reconfigure or
// stop the timer sensor
SNS_TIMER_MSGID_SNS_TIMER_SENSOR_CONFIG = 512;
// Timer event message.
//
// Corresponds to the message sns_timer_sensor_event.
// This event is generated when a timer's timeout
// occurs.
SNS_TIMER_MSGID_SNS_TIMER_SENSOR_EVENT = 1025;
// Timer registration message
//
// This message is used to acknowledge that a timer was successfully
// registered. This event contains the sns_timer_reg_event with the
// options selected by the timer sensor. The event will be re-sent each time
// the timer sensor automatically adjusts the period of a periodic timer.
SNS_TIMER_MSGID_SNS_TIMER_SENSOR_REG_EVENT = 1026;
}
// Priority of timer events
enum sns_timer_priority {
option (nanopb_enumopt).long_names = false;
// Priority LOWEST is used for low priority timers
SNS_TIMER_PRIORITY_LOWEST = 0;
// Priority OTHER is used for general timer events, and should be used
// by default
SNS_TIMER_PRIORITY_OTHER = 10;
// Priority POLLING is used for polling physical sensors
SNS_TIMER_PRIORITY_POLLING = 50;
// Priority S4S is used for S4S schedules
SNS_TIMER_PRIORITY_S4S = 100;
}
// Timer configuration message.
// The minimum time resolution supported by the timer is
// min_timeout_nanosec
message sns_timer_sensor_config
{
// The time of starting the timer in ticks. This is typically current time.
required uint64 start_time = 1;
// The timeout period starting from start_time, in ticks.
required uint64 timeout_period = 2;
// If this timer is periodic. If true, the timer will be rearmed to
// timeout_period when the timer fires. If false, the timer will be disarmed
// after firing once. The memory associated with this timer will not be
// released until this connection is terminated.
required bool is_periodic = 3;
// The start_config allows the timer sensor to modify the start_time. This may
// allow the timer sensor to synchronize with other nearby timers to save power
// if the exact value of start_time is flexible.
// If this message is not present, default values are 0.
message start_config_message {
// The start_time may be adjusted to start early by this many ticks.
required uint32 early_start_delta = 1;
// The start_time may be adjusted to start late by this many ticks.
required uint32 late_start_delta = 2;
}
optional start_config_message start_config = 4;
// The timeout_config allows the timer sensor to modify the timeout_period.
// This may allow the timer sensor to synchronize with other timers to save
// power if the exact perodicity is flexible.
// If this message is not present, default values are 0.
message timeout_config_message {
// The initial timeout_period may be adjusted smaller by this many ticks.
required uint32 low_timeout_delta = 1;
// The initial timeout_period may be adjusted larger by this many ticks.
required uint32 high_timeout_delta = 2;
// jitter_ticks only applies if "is_periodic" is true. After the first
// TIMER_SENSOR_EVENT, the timeout_period will only be adjusted by this many
// ticks in each period. The accumulated adjustments will stay within the
// low/high bounds defined in this message.
optional uint32 jitter_ticks = 3;
}
optional timeout_config_message timeout_config = 5;
// Set this to true to cause the timer sensor to send a TIMER_SENSOR_REG_EVENT
// and include this timer as part of the timers to be synchronized, but the
// timer will not actually be started, and no TIMER_SENSOR_EVENTs will
// be generated.
// This is useful to know how to synchronize to other timers on the system
// without actually causing timer events to occur.
optional bool is_dry_run = 6 [default = false];
// If multiple timers expire at the same time, timer events with higher
// priority will be sent first.
// default: other
optional sns_timer_priority priority = 7 [default = SNS_TIMER_PRIORITY_OTHER];
}
// Timer Sensor event
// This event is generated each time the timer fires. The time at which the timer
// fires can differ from the requested timeout by up to min_timeout_nanosec.
// The client is responsible for checking the requested_timeout_time and the
// timeout_time fields and determine if additional delays must be added.
message sns_timer_sensor_event
{
// The timeout period generated from the timer_sensor_config message in ticks.
required uint64 requested_timeout_time = 1;
// The time at which the timer fired, in ticks.
required uint64 timeout_time = 2;
}
// Timer registration message
//
// This message is used to acknowledge that a timer was successfully
// registered. This event contains options selected by the timer sensor based
// on the config event.
// The event will be re-sent each time the timer sensor automatically adjusts
// the period of a periodic timer.
message sns_timer_sensor_reg_event
{
required uint64 start_time = 1;
required uint64 timeout_period = 2;
required bool is_periodic = 3;
required bool is_dry_run = 4;
required sns_timer_priority priority = 5;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,25 +0,0 @@
[VIRTUAL-SENSOR]
algo_type virtual
sensors battery cam_therm1 conn_therm quiet_therm wireless_therm xo_therm
weight 223 150 440 -143 115 149
polling 2000
weight_sum 1000
compensation 1541
[CHG-MONITOR-BAT]
algo_type monitor
sensor VIRTUAL-SENSOR
device battery
polling 2000
trig 37000 40000 42000 43000 44000 45000 46000 47000 60000
clr 35000 38000 40000 42000 43000 44000 45000 46000 48000
target 1103 1206 1206 1306 1309 1310 1312 1414 1515
[CHG-MONITOR-WIRELESS]
algo_type monitor
sensor VIRTUAL-SENSOR
device wireless_charge
polling 2000
trig 37000 38500 40000 40800 41600 42400 43200 44000
clr 35000 37000 38500 40000 40800 41600 42400 43200
target 400 600 802 804 806 1008 1010 1313

Binary file not shown.

View File

@@ -1,2 +0,0 @@
# File empty by default.
# Replace contents of this file with custom configuration.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1 +0,0 @@
hHW1u@k|<7C><>Z<EFBFBD>?<3F>O,f<><11><><EFBFBD>*<2A>i2<69><32><EFBFBD><EFBFBD>{<7B>n<EFBFBD><6E><EFBFBD>/<02>ߊ<ECA581>̟<EFBFBD>^<5E>s<EFBFBD>u<EFBFBD><75><13>W

Binary file not shown.

View File

@@ -1,83 +0,0 @@
#Device discribe config
#GPU
[
name:gpu
cooling_name:thermal-devfreq-0
def_target:0
select_higher:1
]
#battery
[
name:battery
cooling_name:battery
def_target:0
select_higher:1
]
#backlight
[
name:backlight
cooling_name:panel0-backlight
def_target:0
select_higher:1
]
#backlight-clone
[
name:backlight-clone
cooling_name:brightness0-clone
def_target:0
select_higher:1
]
#temp_state
[
name:temp_state
path:/sys/class/thermal/thermal_message/temp_state
def_target:0
select_higher:1
]
#hbm
[
name:thermal_hbm_disabled
path:/sys/class/drm/card0-DSI-1/thermal_hbm_disabled
def_target:0
select_higher:1
]
#wireless charge
[
name:wireless_charge
path:/sys/class/power_supply/battery/dc_thermal_levels
def_target:0
select_higher:1
]
#modem uplink
[
name:modem_ul
cooling_name:modem_pa
def_target:0
select_higher:1
]
#modem downlink
[
name:modem_dl
cooling_name:modem_tj
def_target:0
select_higher:1
]
#market_download_limit
[
name:market_download_limit
path:/sys/class/thermal/thermal_message/market_download_limit
def_target:0
select_higher:1
]

BIN
proprietary/vendor/firmware/ipa_fws.b00 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_fws.b01 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_fws.b02 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_fws.b03 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_fws.b04 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_fws.elf vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_fws.mdt vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_uc.b00 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_uc.b01 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_uc.b02 vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_uc.elf vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/firmware/ipa_uc.mdt vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More