diff options
| author | TheStrix <parthbhatia@lineageos.org> | 2017-08-29 13:55:29 +0530 |
|---|---|---|
| committer | TheStrix <parthbhatia@lineageos.org> | 2017-08-29 13:58:25 +0530 |
| commit | ca62d401b9e101e68d28bf9cacf45e639526e974 (patch) | |
| tree | 1bd5e20f97a0ea2bb71ff711f20b150b3cdcb20e | |
| parent | 4d5d2bbfdbc77463ef8e43290b043d4d53cd2ca5 (diff) | |
kenzo: Move sensor configs to proprietary vendor tree
Change-Id: I49174d0f7c3ce00f739c93081ade48eb396afa18
| -rw-r--r-- | configs/sensors/hals.conf | 1 | ||||
| -rw-r--r-- | configs/sensors/sensor_def_qcomdev.conf | 332 | ||||
| -rw-r--r-- | device.mk | 5 | ||||
| -rwxr-xr-x | proprietary-files.txt | 4 |
4 files changed, 4 insertions, 338 deletions
diff --git a/configs/sensors/hals.conf b/configs/sensors/hals.conf deleted file mode 100644 index 5f3a14b..0000000 --- a/configs/sensors/hals.conf +++ /dev/null @@ -1 +0,0 @@ -sensors.ssc.so diff --git a/configs/sensors/sensor_def_qcomdev.conf b/configs/sensors/sensor_def_qcomdev.conf deleted file mode 100644 index 9f12e32..0000000 --- a/configs/sensors/sensor_def_qcomdev.conf +++ /dev/null @@ -1,332 +0,0 @@ -# -# File: sensor_def_qcomdev.conf -# -# Tihs file contains default sensor registry values for Qualcomm development -# test platforms. -# -# Copyright (c) 2013-2016 Qualcomm Technologies, Inc. -# All Rights Reserved. -# Confidential and Proprietary - Qualcomm Technologies, Inc. - - -# File format: -# -# Lines starting with "#" are comments and ignored. -# -# File metadata uses this format: -# :key value1 value2 -# -# The following keys are defined: -# - "version" : value1 is non-zero positive version number of the file. This -# number will be stored in the sensors registry. It should be equal to the -# largest version of any item. It will be saved in the sensors registry for -# later use when initializing values. See the item format below. -# This value should only be specified once in the file. -# -# - "hardware" : The value1 will be compared to the "Hardware" string from -# the property of ro.board.platform. -# Items will only be used as default values in the registry if the hardware -# string value is a substring of the ro.board.platform string. -# This metadata key can be used more than once, so that one file can support -# more than one type of hardware. -# The value may be NULL, indicating common item values for all hardware. -# Common conf entries for multiple hardware can be mentioned as below. -# configuration below this string is common for 8952,8956 and 8974 -# :hardware 8952 8956 8974 -# hardware list gets overwritten with the new one every time when "hardware" -# tag appears while parsing conf file. -# -# - "platform" : Similar to the "hardware" key, but this string will need to -# match the text of either /sys/devices/soc0/hw_platform or -# /sys/devices/soc0/platform_subtype. -# Common conf entries for multiple platform can be mentioned as below. -# configuration below this string is common for MTP and QRD -# :platfrom MTP QRD -# platform list gets overwritten with the new one every time when "platfrom" -# tag appears while parsing conf file. -# -# -# - "soc_id" : Similar to the "hardware" key, but this string will need to -# match the text of /sys/devices/soc0/soc_id. -# Common conf entries for multiple soc_id can be mentioned as below. -# configuration below this string is common for soc_id 264 and 278 -# :soc_id 264 278 -# soc_id list gets overwritten with the new one every time when "soc_id" -# tag appears while parsing conf file. -# -# - "subtype" : Similar to the "hardware" key, but this string will need to -# match the text of /sys/devices/soc0/platform_subtype. -# Common conf entries for multiple subtype can be mentioned as below. -# configuration below this string is common for subtype X and Y -# :subtype X Y -# subtype list gets overwritten with the new one every time when "subtype" -# tag appears while parsing conf file. -# -# - "soc_rev" : Similar to the "hardware" key, but this string will need to -# match the text of /sys/devices/soc0/revision. -# Common conf entries for multiple soc_rev can be mentioned as below. -# configuration below this string is common for soc_rev 1.0,2.0 and 3.0 -# :soc_rev 1.0 2.0 3.0 -# soc_rev list gets overwritten with the new one every time when "soc_rev" -# tag appears while parsing conf file. -# -# - "property" : value1 is the Android system property key, and value2 is -# the desired property value. If the system property value matches the -# desired property value, then the following items will be applied. -# This metadata key can be used more than once, in which case the new -# property value overrides the old. -# value1 and 2 may be NULL, indicating common item values for all properties. -# -# Registry items are in lines with the following format: -# <itemID> <value> <version> -# Where: -# itemID is the numeric item ID defined in sns_reg_api_v02.h -# -# "value" is the numeric value of the item. -# -# "version" is a non-zero version of the item value. -# The version field will be compared against the previous saved -# value in the sensors registry. If this value is greater than the -# saved value, the default will be applied. Otherwise, the default -# will be skipped. -# -# Registry item values will only be applied if the hardware, platform, and -# property values match for the current hardware configuration. -# -# The numeric fields are parsed with the strtoull function, base 0. -# - -:version 0x00010001 - -####################################################################### -### MSM8976,APQ8076 and MSM8956 Chipsets -####################################################################### -# msm8976,apq8076 and msm8956 share the same property(ro.board.platfrom) -# as msm8952. -# use 8952 as hardware,8976,8076 and 8956 identification is done by -# soc_id which is unique. -:hardware 8952 -:platform -:property -# soc_id for msm8976 targets is 278 -# soc_id for apq8076 targets is 277 -# soc_id for msm8956 targets is 266 -# soc_id for apq8056 targets is 274 -# Below configuration is common for msm8976, apq8076, apq8056 & msm8956 -:soc_id 278 266 277 274 -# Orientation of sensors -# accel x/y/z -700 -1 0x00010001 #accel-x-axis -701 2 0x00010001 #accel-y-axis -702 -3 0x00010001 #accel-z-axis -# gyro x/y/z -800 -1 0x00010001 #gyro-x-axis -801 2 0x00010001 #gyro-y-axis -802 -3 0x00010001 #gyro-z-axis -# mag x/y/z -900 2 0x00010001 #mag-x-axis -901 -1 0x00010001 #mag-y-axis -902 3 0x00010001 #mag-z-axis - -#for registry is equal 0 - -306 0 0x00011111 -307 0 0x00011111 -308 0 0x00011111 -309 0 0x00011111 -310 0 0x00011111 -311 0 0x00011111 - - -# SSI SMGR Version -1900 0 0x00010001 #Maj Ver -1901 1 0x00010001 #Min Ver - - -#ACCEL 2 -2000 1 0x00010001 -2001 2 0x00010001 - -#GYRO 2 -2100 1 0x00010001 -2101 2 0x00010001 - -#mag 2 -2200 1 0x00010001 -2201 2 0x00010001 - -#P/L 2 -2300 1 0x00010001 -2301 2 0x00010001 - - -# -# SAM config -# -203 65536 0x10001 # AMD -225 983040 0x10001 # RMD -504 65536 0x10001 # Gyro Cal -1703 65536 0x10001 # Ped -2800 983040 0x10001 # basic ges -2900 983040 0x10001 # Facing -3400 65536 0x10001 # CMC -609 983040 0x10001 # FMV -1005 983040 0x10001 # Grav -1103 983040 0x10001 # orientation -3000 983040 0x10001 # gyro quat -3100 983040 0x10001 # rot vec -3500 983040 0x10001 # game rv -4112 65536 0x10001 # SMD -4103 5 0x10001 # SMD_ACC_WIN_TIME - -# SSI SMGR Cfg 0 BMI160 FIFO -2003 0x0f4d0fd654c7eab5 0x00010001 #UUID -2002 0xd646cb83ec0cd5a5 0x00010001 #UUID -2004 10000 0x00010001 #off_to_idle -2005 30000 0x00010001 #idle_to_ready -2006 138 0x00010001 #gpio1 -2007 1000 0x00010001 #reg_group_id -2008 0 0x00010001 #cal_grp_id -2009 5 0x00010001 #i2c_bus -2010 0x68 0x00010001 #i2c_address -2011 1 0x00010001 #sens_default -2012 0xD0 0x00010001 #flags - -# SSI SMGR Cfg 1 BMI160 FIFO -2103 0x0f4d0fd654c7eab5 0x00010001 #UUID -2102 0xd646cb83ec0cd5a5 0x00010001 #UUID -2104 10000 0x00010001 #off_to_idle -2105 30000 0x00010001 #idle_to_ready -2106 139 0x00010001 #gpio1 -2107 1010 0x00010001 #reg_group_id -2108 10 0x00010001 #cal_grp_id -2109 5 0x00010001 #i2c_bus -2110 0x68 0x00010001 #i2c_address -2111 4 0x00010001 #sens_default -2112 0xD0 0x00010001 #flags - - -# SSI SMGR Cfg 0 LSM6DS3 FIFO -2014 0x1a0bd9d5956c508e 0x00010001 #UUID -2013 0x1246e1cb09a92baa 0x00010001 #UUID -2015 10000 0x00010001 #off_to_idle -2016 30000 0x00010001 #idle_to_ready -2017 138 0x00010001 #gpio1 -2018 1000 0x00010001 #reg_group_id -2019 0 0x00010001 #cal_grp_id -2020 5 0x00010001 #i2c_bus -2021 0x6a 0x00010001 #i2c_address -2022 1 0x00010001 #sens_default -2023 0xD0 0x00010001 #flags - -# SSI SMGR Cfg 1 LSM6DS3 FIFO -2114 0x1a0bd9d5956c508e 0x00010001 #UUID -2113 0x1246e1cb09a92baa 0x00010001 #UUID -2115 10000 0x00010001 #off_to_idle -2116 30000 0x00010001 #idle_to_ready -2117 139 0x00010001 #gpio1 -2118 1010 0x00010001 #reg_group_id -2119 10 0x00010001 #cal_grp_id -2120 5 0x00010001 #i2c_bus -2121 0x6a 0x00010001 #i2c_address -2122 4 0x00010001 #sens_default -2123 0xD0 0x00010001 #flags - - - - -# SSI SMGR Cfg 3: YAS537 POLL -2214 0x1dc79ad346a827b3 0x00010001 #UUID -2213 0xbd403129b15b7905 0x00010001 #UUID -2215 3000 0x00010001 #off_to_idle -2216 10000 0x00010001 #idle_to_ready -2217 0xFFFF 0x00010001 #gpio1 -2218 1020 0x00010001 #reg_group_id -2219 0xFFFF 0x00010001 #cal_grp_id -2220 5 0x00010001 #i2c_bus -2221 0x2e 0x00010001 #i2c_address -2222 0 0x00010001 #sens_default -2223 0x00 0x00010001 #flags - - - -# SSI SMGR Cfg 4: AKM09911 POLL -2203 0xf0d01b6a2181e767 0x00010001 #UUID -2202 0xa7a42bb985b38dcb 0x00010001 #UUID -#2203 0x90611b98d561168f 0x00010001 #UUID -#2202 0x564d2b94fe80aef6 0x00010001 #UUID -2204 3000 0x00010001 #off_to_idle -2205 10000 0x00010001 #idle_to_ready -2206 0xFFFF 0x00010001 #gpio1 -2207 1020 0x00010001 #reg_group_id -2208 0xFFFF 0x00010001 #cal_grp_id -2209 5 0x00010001 #i2c_bus -2210 0x0c 0x00010001 #i2c_address -2211 0 0x00010001 #sens_default -2212 0x00 0x00010001 #flags - - -# SSI SMGR Cfg 4: LTR55X POLL -2303 0x2f1531647b9aa8b3 0x00010001 #UUID -2302 0x194a7a549019f36d 0x00010001 #UUID -2304 5000 0x00010001 #off_to_idle -2305 0 0x00010001 #idle_to_ready -2306 0xFFFF 0x00010001 #gpio1 -2307 1040 0x00010001 #reg_group_id -2308 0xFFFF 0x00010001 #cal_grp_id -2309 5 0x00010001 #i2c_bus -2310 0x23 0x00010001 #i2c_address -2311 0 0x00010001 #sens_default -2312 0x00 0x00010001 #flags - - -# SSI SMGR Cfg 4: sensortek POLL -2314 0x0bd0c3512401a6a5 0x00010001 #UUID -2313 0xfe4aaf16ee837f5d 0x00010001 #UUID -2315 5000 0x00010001 #off_to_idle -2316 0 0x00010001 #idle_to_ready -2317 0xFFFF 0x00010001 #gpio1 -2318 1040 0x00010001 #reg_group_id -2319 0xFFFF 0x00010001 #cal_grp_id -2320 5 0x00010001 #i2c_bus -2321 0x48 0x00010001 #i2c_address -2322 0 0x00010001 #sens_default -2323 0x00 0x00010001 #flags - - -# SSI SMGR Version -3600 1 0x00010001 #Maj Ver -3601 1 0x00010001 #Min Ver - -# QMAG_CAL Configuration -3801 1 0x00010001 -3804 0x000A0000 0x00010001 #Sample Rate - -# -# SSI GPIO configuration -#----------------------------- -2700 1 0x00010001 #maj ver -2701 1 0x00010001 #min ver -2702 136 0x00010001 #I2C SDA_1 -2703 137 0x00010001 #I2C SCL_1 -2704 0xFFFF 0x00010001 #I2C SDA_2 -2705 0xFFFF 0x00010001 #I2C SCL_2 -2706 142 0x00010001 #RESET pin -2709 138 0x00010001 #ACCEL DRI -2710 139 0x00010001 #GYRO DRI -2711 0xFFFF 0x00010001 #MAG DRI -2712 0xFFFF 0x00010001 #ALS/PRX INT -2714 0xFFFF 0x00010001 #PRESS INT - -# AMD Cfg -200 0x000A0000 0x00010001 #AMD Default Sample rate -201 0x00000CDC 0x00010001 #AMD INT Cfg param1 -202 0x00008000 0x00010001 #AMD INT Cfg param2 - -# RMD Cfg -220 0x001E0000 0x00010001 #RMD Default Sample rate -221 0X0001B333 0x00010001 #RMD INT Cfg param1 -222 0x00003333 0x00010001 #RMD INT Cfg param2 -223 0x00050000 0x00010001 #RMD INT Cfg param3 -224 0x00003333 0x00010001 #RMD INT Cfg param4 - @@ -45,11 +45,6 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ init.target.rc -# Sensors -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/sensors/hals.conf:system/etc/sensors/hals.conf \ - $(LOCAL_PATH)/configs/sensors/sensor_def_qcomdev.conf:system/etc/sensors/sensor_def_qcomdev.conf - # Wifi PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin diff --git a/proprietary-files.txt b/proprietary-files.txt index caf9acb..9182bac 100755 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -572,6 +572,10 @@ vendor/lib64/libsystem_health_mon.so vendor/lib/libmdmdetect.so vendor/qcril.db +# Sensors +etc/sensors/hals.conf +etc/sensors/sensor_def_qcomdev.conf + # Time services -app/TimeService/TimeService.apk bin/time_daemon |
