Add 32.4.1.54 satsuki blobs

This commit is contained in:
Joel16 2020-02-12 18:58:21 -05:00
parent e9bf711760
commit cc999d4921
560 changed files with 1096 additions and 0 deletions

22
satsuki/Android.mk Normal file
View File

@ -0,0 +1,22 @@
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file is generated by device/sony/satsuki/setup-makefiles.sh
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),satsuki)
endif

View File

@ -0,0 +1,17 @@
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file is generated by device/sony/satsuki/setup-makefiles.sh

Binary file not shown.

BIN
satsuki/proprietary/bin/qseecomd Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,116 @@
# Configuration file for libcameralight and depending software stack.
# This file is used for $(PRODUCT) only and shall be used for trimming
# flash and camera performance.
#
# Comments are started with "#" or space.
# newlines are ignored.
# LED If setting for Indicator(uA)
if_indicator_level = 3125
# LED If setting for Torch or video recording (uA).
if_torch_vr = 25000
# Vf measured at factory (mV).
vf_factory = 2869
# Min voltage for VBat (mV)
v_batt_min = 3500
# Secure margin ratio (%)
ratio_vdrop_normal = 80
# Secure margin ration for torch. (%)
ratio_vdrop_torch = 50
# Secure margin HIGH temp (%).
ratio_vdrop_high = 50
# High efficiency (%)
eff_h = 80
# Low efficiency. (%)
eff_l = 68
# Threshold in current for efficiency high and low (uA)
drv_eff_threshold = 500000
# Coefficient of max current for Red_eye pulse. (%)
c_redeye = 100
# Coefficient of max current for Alien battery (%)
c_alien = 30
# Coefficient of max current for Charging status (%)
c_charging = 30
# Rtotal value as a minimum (mOhm)
rtotal_min = 320
# Rtotal value for high temp (mOhm)
rtotal_offset = 0
# Temperature threshold for Rtotal (Deg C)
t_rtotal_threshold = 20
# Coefficient a for calculation of Rtotal
c_rtotal_a = 490
# Coefficient b for calculation of Rtotal
c_rtotal_b = -28510
# Coefficient c for calculation of Rtotal
c_rtotal_c = 701000
# Coefficient a for conversion of Vdrop_max
c_vdrop_a = 0
# Coefficient b for conversion of Vdrop_max
c_vdrop_b = 0
# Coefficient c for conversion of Vdrop_max
c_vdrop_c = 0
# Coefficient a for calculation of Vf
c_vf_a = -119700
# Coefficient b for calculation of Vf
c_vf_b = 487000
# Coefficient c for calculation of Vf
c_vf_c = 2733400
# Coefficient of Vf change in terms of temperature (uV/Ohm)
c_vf_t = -1800
# Reference temperature (Deg C)
t_ref = 25
# Reference Vf value (mV)
vf_ref = 2869
# Max current of battery at 60 degC (uA)
i_batt_max_high = 1000000
# Max current for Torch (uA)
i_batt_max_torch = 1000000
# Flash LED_If max current (uA)
max_if_flash = 1500000
# Torch max current for camera 3A (uA)
max_if_torch_3a = 250000
# Threshold for good battery voltage measuremnet (mV)
v_batt_meas_range = 0
# Threshold for good battery current measuremnet (uA)
i_batt_meas_range = 0
# LED_If value is set to flash brightness when NTC fault and
# Vdrop_max=0 happen (uA)
if_flash_critical = 125000
# LED_If value is set to torch brightness when NTC fault and
# Vdrop_max=0 happen (uA).
if_torch_critical = 25000

View File

@ -0,0 +1,312 @@
#
# File: sensor_def_qcomdev.conf
#
# Tihs file contains default sensor registry values for Qualcomm development
# test platforms.
#
# Copyright (c) 2013 Qualcomm Technologies, Inc. All Rights Reserved.
# Qualcomm Technologies Proprietary and Confidential
#
# NOTE: This file has been modified by Sony Mobile Communications Inc.
# Modifications are Copyright (C) 2014 Sony Mobile Communications Inc.,
# and licensed under the license of the file.
# 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.
#
# - "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.
#
# - "soc_id" : Similar to the "hardware" key, but this string will need to
# match the text of /sys/devices/soc0/soc_id.
#
# - "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
########################################################################
### 8994 Chipsets
########################################################################
:hardware 8994
:platform
:property
# 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 3 0x00010001 #mag-y-axis
902 -1 0x00010001 #mag-z-axis
# SSI SMGR Version
1900 1 0x00010001 #Maj Ver
1901 1 0x00010001 #Min Ver
# SAM config
#
203 65536 0x10001 # AMD
225 327680 0x10001 # RMD
504 65536 0x10001 # Gyro Cal
1703 65536 0x10001 # Ped
2800 327680 0x10001 # basic ges
2900 327680 0x10001 # Facing
3400 65536 0x10001 # CMC
609 65536 0x10001 # FMV
1005 65536 0x10001 # Grav
1103 65536 0x10001 # orientation
3000 65536 0x10001 # gyro quat
3100 65536 0x10001 # rot vec
3500 65536 0x10001 # game rv
4112 65536 0x10001 # SMD
# SSI SMGR Cfg 0 ICM-20628 Accelerometer DRI
1903 0x0b25b8431bfd46bc 0x00010001 #UUID
1902 0xc14075963795c661 0x00010001 #UUID
1904 500000 0x00010001 #off_to_idle
1905 2000 0x00010001 #idle_to_ready
1906 5 0x00010001 #i2c_bus
1907 1000 0x00010001 #reg_group_id
1908 0 0x00010001 #cal_grp_id
1909 64 0x00010001 #gpio1
1910 0xFFFF 0x00010001 #gpio2
1911 0 0x00010001 #sensor_id
1912 0x68 0x00010001 #i2c_address
1913 1 0x00010001 #data_type1
1914 0 0x00010001 #data_type2
1915 1 0x00010001 #rel_sns_idx
1916 1 0x00010001 #sens_default
1917 0xD0 0x00010001 #flags
1982 0 0x00010001 #device_select
# SSI SMGR Cfg 1 ICM-20628 Gyroscope DRI
1919 0x0b25b8431bfd46bc 0x00010001 #UUID
1918 0xc14075963795c661 0x00010001 #UUID
1920 500000 0x00010001 #off_to_idle
1921 2000 0x00010001 #idle_to_ready
1922 5 0x00010001 #i2c_bus
1923 1010 0x00010001 #reg_group_id
1924 10 0x00010001 #cal_grp_id
1925 64 0x00010001 #gpio1
1926 0xFFFF 0x00010001 #gpio2
1927 10 0x00010001 #sensor_id
1928 0x68 0x00010001 #i2c_address
1929 3 0x00010001 #data_type1
1930 0 0x00010001 #data_type2
1931 0 0x00010001 #rel_sns_idx
1932 3 0x00010001 #sens_default
1933 0xD0 0x00010001 #flags
1983 0 0x00010001 #device_select
# SSI SMGR Cfg 2 AK09912C DRI
1935 0x0b25b8431bfd46bc 0x00010001 #UUID
1934 0xc14075963795c661 0x00010001 #UUID
1936 500000 0x00010001 #off_to_idle
1937 2000 0x00010001 #idle_to_ready
1938 5 0x00010001 #i2c_bus
1939 1020 0x00010001 #reg_group_id
1940 0xFFFF 0x00010001 #cal_grp_id
1941 64 0x00010001 #gpio1
1942 0xFFFF 0x00010001 #gpio2
1943 20 0x00010001 #sensor_id
1944 0x0c 0x00010001 #i2c_address
1945 2 0x00010001 #data_type1
1946 0 0x00010001 #data_type2
1947 0xFF 0x00010001 #rel_sns_idx
1948 0 0x00010001 #sens_default
1949 0xD0 0x00010001 #flags
1984 0 0x00010001 #device_select
# SSI SMGR Cfg 3: HSPPAD038A POLL
1951 0x5588c14de03f6490 0x00010001 #UUID
1950 0x69469b7038b0dde8 0x00010001 #UUID
1952 7680 0x00010001 #off_to_idle
1953 10000 0x00010001 #idle_to_ready
1954 5 0x00010001 #i2c_bus
1955 0xFFFF 0x00010001 #reg_group_id
1956 0xFFFF 0x00010001 #cal_grp_id
1957 76 0x00010001 #gpio1
1958 0xFFFF 0x00010001 #gpio2
1959 30 0x00010001 #sensor_id
1960 0x48 0x00010001 #i2c_address
1961 7 0x00010001 #data_type1
1962 0 0x00010001 #data_type2
1963 0xFF 0x00010001 #rel_sns_idx
1964 0 0x00010001 #sens_default
1965 0 0x00010001 #flags
1985 0 0x00010001 #device_select
# SSI SMGR Cfg 4: APDS9910 DRI
1967 0x2c95aafbde68bd9d 0x00010001 #UUID
1966 0xc04992988b1365d3 0x00010001 #UUID
1968 10000 0x00010001 #off_to_idle
1969 5000 0x00010001 #idle_to_ready
1970 5 0x00010001 #i2c_bus
1971 1040 0x00010001 #reg_group_id
1972 0xFFFF 0x00010001 #cal_grp_id
1973 40 0x00010001 #gpio1
1974 0xFFFF 0x00010001 #gpio2
1975 40 0x00010001 #sensor_id
1976 0x39 0x00010001 #i2c_address
1977 5 0x00010001 #data_type1
1978 6 0x00010001 #data_type2
1979 0xFF 0x00010001 #rel_sns_idx
1980 0 0x00010001 #sens_default
1981 0x80 0x00010001 #flags
1986 0 0x00010001 #device_select
103 0x384 0x00010001 #prx_near_thresh
104 0x320 0x00010001 #prx_far_thresh
105 0 0x00010001 #prx_factor
106 100 0x00010001 #als_factor
107 1 0x00010001 #version_num
108 0x58 0x00010001 #id
109 7 0x00010001 #als_change_pcnt
110 0x04 0x00010001 #prx_pulse
111 0x00 0x00010001 #prx_drive
112 0x08 0x00010001 #prx_gain
113 1999 0x00010001 #als_coe_b
114 252 0x00010001 #als_coe_c
115 450 0x00010001 #als_coe_d
116 326 0x00010001 #als_dgf
117 12800 0x00010001 #als_ch0_default
118 3117 0x00010001 #als_ch1_default
119 0x00 0x00010001 #prx_offset
# SSI SMGR Cfg 5 ICM-20628 Game Rotation Vector DRI
3603 0x0b25b8431bfd46bc 0x00010001 #UUID
3602 0xc14075963795c661 0x00010001 #UUID
3604 500000 0x00010001 #off_to_idle
3605 2000 0x00010001 #idle_to_ready
3606 5 0x00010001 #i2c_bus
3607 0xFFFF 0x00010001 #reg_group_id
3608 0xFFFF 0x00010001 #cal_grp_id
3609 64 0x00010001 #gpio1
3610 0xFFFF 0x00010001 #gpio2
3611 226 0x00010001 #sensor_id
3612 0x68 0x00010001 #i2c_address
3613 26 0x00010001 #data_type
3614 34 0x00010001 #data_type2
3615 0xFF 0x00010001 #rel_sns_idx
3616 0 0x00010001 #sens_default
3617 0xD0 0x00010001 #flags
3682 0 0x00010001 #device_select
# SSI SMGR Cfg 6 ICM-20628 SMD DRI
3619 0x0b25b8431bfd46bc 0x00010001 #UUID
3618 0xc14075963795c661 0x00010001 #UUID
3620 500000 0x00010001 #off_to_idle
3621 2000 0x00010001 #idle_to_ready
3622 5 0x00010001 #i2c_bus
3623 0xFFFF 0x00010001 #reg_group_id
3624 0xFFFF 0x00010001 #cal_grp_id
3625 64 0x00010001 #gpio1
3626 0xFFFF 0x00010001 #gpio2
3627 224 0x00010001 #sensor_id
3628 0x68 0x00010001 #i2c_address
3629 25 0x00010001 #data_type1
3630 0 0x00010001 #data_type2
3631 0xFF 0x00010001 #rel_sns_idx
3632 0 0x00010001 #sens_default
3633 0xC0 0x00010001 #flags
3683 0 0x00010001 #device_select
# SSI SMGR Cfg 7 ICM-20628 Step Counter DRI
3635 0x0b25b8431bfd46bc 0x00010001 #UUID
3634 0xc14075963795c661 0x00010001 #UUID
3636 500000 0x00010001 #off_to_idle
3637 2000 0x00010001 #idle_to_ready
3638 5 0x00010001 #i2c_bus
3639 0xFFFF 0x00010001 #reg_group_id
3640 0xFFFF 0x00010001 #cal_grp_id
3641 64 0x00010001 #gpio1
3642 0xFFFF 0x00010001 #gpio2
3643 222 0x00010001 #sensor_id
3644 0x68 0x00010001 #i2c_address
3645 24 0x00010001 #data_type1
3646 0 0x00010001 #data_type2
3647 0xFF 0x00010001 #rel_sns_idx
3648 0 0x00010001 #sens_default
3649 0xC0 0x00010001 #flags
3684 0 0x00010001 #device_select
# SSI SMGR Cfg 8 ICM-20628 Step Detector DRI
3651 0x0b25b8431bfd46bc 0x00010001 #UUID
3650 0xc14075963795c661 0x00010001 #UUID
3652 500000 0x00010001 #off_to_idle
3653 2000 0x00010001 #idle_to_ready
3654 5 0x00010001 #i2c_bus
3655 0xFFFF 0x00010001 #reg_group_id
3656 0xFFFF 0x00010001 #cal_grp_id
3657 64 0x00010001 #gpio1
3658 0xFFFF 0x00010001 #gpio2
3659 220 0x00010001 #sensor_id
3660 0x68 0x00010001 #i2c_address
3661 23 0x00010001 #data_type1
3662 0 0x00010001 #data_type2
3663 0xFF 0x00010001 #rel_sns_idx
3664 0 0x00010001 #sens_default
3665 0xD0 0x00010001 #flags
3685 0 0x00010001 #device_select
#
# SSI GPIO configuration
#-----------------------------
2700 1 0x00010001 #maj ver
2701 0 0x00010001 #min ver
2702 23 0x00010001 #I2C SDA_1
2703 24 0x00010001 #I2C SCL_1
2704 0xFFFF 0x00010001 #I2C SDA_2(Reserved)
2705 0xFFFF 0x00010001 #I2C SCL_2(Reserved)
# Mag Cal config
#-----------------------------
3801 1 0x00010001
3804 0x000a0000 0x10001 #Sample Rate

View File

@ -0,0 +1,52 @@
#!/system/bin/sh
# Copyright (c) 2015 Sony Mobile Communications Inc.
index=0
count=6
data_id=0
ic_id=1
module_id_h=4
module_id_l=5
block_pos=19
blank_pos=-1
touch_path="/sys/devices/virtual/input"
sh_path="/system/bin/sh"
if [ -a "$touch_path/clearpad" ]; then
while [ $block_pos -ge 0 ]; do
pca_data=$($sh_path /system/etc/ioctl_pca.sh r $block_pos $index $count)
if [ $? -ne 0 ]; then
break;
fi
pca_array=($(echo $pca_data))
if [ ${pca_array[$data_id]} -eq 2 -a ${pca_array[$ic_id]} -eq 1 ]; then
touch_module_id=0x${pca_array[$module_id_h]}${pca_array[$module_id_l]}
/system/bin/clearpad_fwloader default $touch_module_id
return;
elif [ $((0x${pca_array[$data_id]})) -eq 0 ]; then
blank_pos=$block_pos
fi
block_pos=$((block_pos-1))
done
touch_module_id=0x$(cat $touch_path/clearpad/fwfamily)
if [ $(($touch_module_id)) -ne 0 ]; then
/system/bin/clearpad_fwloader default $touch_module_id
touch_chip_id=0x$(cat $touch_path/clearpad/fwchip_id)
if [ $block_pos -eq -1 -a $blank_pos -gt -1 -a $(($touch_chip_id)) -ne 0 ]; then
chip_data=($((0x0102)) $((${touch_chip_id}00)) $((${touch_module_id}00)))
$sh_path /system/etc/ioctl_pca.sh w $blank_pos ${chip_data[@]}
fi
fi
elif [ -a "$touch_path/max1187x" ]; then
touch_vendor_id=$(/system/bin/ta_param_loader -p -t 4950 -d 0 -f "0x%02x")
if [ "$touch_vendor_id" = "0x02" ]; then
touch_chip_id=0x$(/system/bin/ta_param_loader -p -t 4950 -d 1 -c 2 -f "%02x")
touch_config_id=0x$(/system/bin/ta_param_loader -p -t 4950 -d 3 -c 2 -f "%02x")
echo 1 $touch_config_id $touch_chip_id > "$touch_path/max1187x/dflt_cfg"
echo default > "$touch_path/max1187x/fw_update"
else
touch_chip_id=$(cat $touch_path/max1187x/chip_id)
touch_config_id=$(cat $touch_path/max1187x/config_id)
echo 1 $touch_config_id $touch_chip_id > "$touch_path/max1187x/dflt_cfg"
echo default > "$touch_path/max1187x/fw_update"
fi
fi

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.

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.

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.

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.

Binary file not shown.

Binary file not shown.

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