diff options
| author | Rashed Abdel-Tawab <rashed@linux.com> | 2015-03-10 13:09:47 -0400 |
|---|---|---|
| committer | Rashed Abdel-Tawab <rashed@linux.com> | 2015-05-31 16:26:36 -0400 |
| commit | 8656d452692c4a1a4bf5d1479dc6bd2f4a324be5 (patch) | |
| tree | 5cee56126a046c634800d83b691ac1211619e4d8 | |
| parent | 054a5f73cfae6c4e8ec9fb9c41dda324e55dc919 (diff) | |
ls980: Add variant specific sensor configuration
Change-Id: I25b6becd2f89340443fcdac4015290876c4d2fe6
| -rw-r--r-- | configs/sensor_def_ls980.conf | 121 | ||||
| -rw-r--r-- | device.mk | 4 |
2 files changed, 125 insertions, 0 deletions
diff --git a/configs/sensor_def_ls980.conf b/configs/sensor_def_ls980.conf new file mode 100644 index 0000000..01364b5 --- /dev/null +++ b/configs/sensor_def_ls980.conf @@ -0,0 +1,121 @@ +# +# File: sensor_def_g2_spr_us.conf +# +# Tihs file contains default sensor registry values for LGE development +# Model platforms. +# +# Copyright (c) 2012-2013 by LGE, Incorporated. +# LGE Proprietary + + +# 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 +# /proc/cpuinfo. +# Items will only be used as default values in the registry if the hardware +# string value is a substring of the /proc/cpuinfo 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. +# +# - "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. +# +# - "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. +# ex) +# H/W Board's revision - property ro.revision <value> +# Target product - property ro.product.name <value> +# +# 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 0x00000002 + +######################################################################## +### g2_spr_us +######################################################################## +:property + +## Orientation of sensors +#---------------------------------- +# accelerometer x/y/z of AXIS +#---------------------------------- +# ID VALUE VERSION +700 -1 0x00000003 +701 2 0x00000003 +702 -3 0x00000003 +# gyroscope x/y/z of AXIS +800 -1 0x00000003 +801 2 0x00000003 +802 -3 0x00000003 +# magnetic x/y/z of AXIS +900 2 0x00000003 +901 -1 0x00000003 +902 3 0x00000003 + +## Proximity & ambient sensor +#---------------------------------- +# ID VALUE VERSION +107 0 0x00000003 # version_num +108 0 0x00000003 # id +109 7 0x00000003 # als_change_pcnt +110 173 0x00000003 # als_ga +111 200 0x00000003 # als_coe_b +112 43 0x00000003 # als_coe_c +113 78 0x00000003 # als_coe_d +114 8 0x00000003 # prx_ppcount +115 0x40 0x00000003 # prx_control +116 100 0x00000003 # prx_cal_hysteresis +117 720 0x00000003 # prx_cal_threshold +118 300 0x00000003 # prx_cal_threshold_offset +119 800 0x00000003 # threshold_near +120 700 0x00000003 # threshold_far +121 0x04 0x00000003 # prx_gain +122 0x22 0x00000003 # prx_als_pers +123 0 0x00000003 # reserved param +124 0 0x00000003 # reserved param +125 0 0x00000003 # reserved param +126 0 0x00000003 # reserved param +127 0 0x00000003 # reserved param +128 0 0x00000003 # reserved param +129 0 0x00000003 # reserved param +130 0 0x00000003 # reserved param +131 0 0x00000003 # reserved param +132 0 0x00000003 # reserved param +133 0 0x00000003 # reserved param +134 0 0x00000003 # reserved param +135 0 0x00000003 # reserved param @@ -35,3 +35,7 @@ PRODUCT_COPY_FILES += \ # GPS PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/gps.conf:system/etc/gps.conf + +# Sensors +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/sensor_def_ls980.conf:system/etc/sensor_def_variable.conf |
