Skip to content

Commit

Permalink
Revert 'sensors: driver updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
CaelestisZ committed May 25, 2020
1 parent 890d4f4 commit e3b7ea0
Show file tree
Hide file tree
Showing 24 changed files with 5,111 additions and 7,496 deletions.
20 changes: 10 additions & 10 deletions build_aether.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# / ___| |___| / | | |__| |\ \
# /_/ |______\_/|_/ /_____\| \_\
#
# Aether Kernel Build Script
# AetherAura Kernel Build Script
# Coded by CaelestisZ @2020
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -42,7 +42,7 @@ BUILD_ZIMAGE()
echo " "
export ARCH=arm
export CROSS_COMPILE=$AE_TOOLCHAIN
export LOCALVERSION=-Aether_Aura-$AE_VERSION-$AE_VARIANT-$AE_DATE
export LOCALVERSION=-AetherAura-$AE_VERSION-$AE_VARIANT-$AE_DATE
mkdir output
make -C $AE_DIR -j5 O=output aether_msm8916_defconfig VARIANT_DEFCONFIG=$AE_DEFCON SELINUX_DEFCONFIG=aether_selinux_defconfig
make -C $AE_DIR -j5 O=output
Expand Down Expand Up @@ -90,15 +90,15 @@ PACK_ZIP()
}
# Main Menu
clear
echo " _ _ "
echo " _______| |____ / |_________ "
echo " / | ____ __/| | ________/ "
echo " / /| |__ | | | |__| |__| |_| | "
echo " / /_| __|| |_| __ __| _/ "
echo " / ___| |___| / | | |__| |\ \ "
echo " /_/ |______\_/|_/ /_____\| \_\ "
echo " _ _ "
echo " _______| |____ / |_________ "
echo " / | ____ __/| | ________/ "
echo " / /| |__ | | | |__| |__| |_| | "
echo " / /_| __|| |_| __ __| _/ "
echo " / ___| |___| / | | |__| |\ \ "
echo " /_/ |______\_/|_/ /_____\| \_\ "
echo " "
echo " AetherKernel $AE_VERSION Build Script "
echo " AetherAura $AE_VERSION Build Script "
echo " Coded by CaelestisZ "
echo " "
PS3='Please select your option (1-5): '
Expand Down
218 changes: 194 additions & 24 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,20 @@ config SENSORS_K2HH_VDD
This option enables accelerometer sensors using
STMicroelectronic K2HH device driver with VDD control.

config SENSORS_K303C
depends on I2C
tristate "ST K303C accel,magnetic combo"
default n
help
This option enables st k303c accel and mag driver

config SENSORS_CM36672P
depends on I2C
tristate "CM36672P driver"
default n
help
This option enables proximity sensor using CM36672P driver.

config SENSORS_CM36672P_PMIC_LEDA
depends on I2C
tristate "CM36672P leda_en controlled by charger chipset SM5703"
config SENSORS_CM36672P_SMART_PERS
depends on SENSORS_CM36672P
tristate "CM36672P driver"
default n
help
This option enables leda_en controlled by SM5703 using CM36672P driver.
This option enables smart persistence option using CM36672P driver.

config SENSORS_CM36652
depends on I2C
tristate "CM366852 driver"
Expand All @@ -76,6 +70,20 @@ config SENSORS_CM36652_LEDA_EN_GPIO
help
This option enables leda_en controlled by GPIO using CM36652 driver.

config SENSORS_CM36652_SENSOR_EN_GPIO
depends on I2C
tristate "CM36652 sensor_en controlled by GPIO"
default n
help
This option enables leda_en controlled by GPIO using CM36652 driver.

config SENSORS_CM36655
depends on I2C
tristate "CM36655 driver"
default n
help
This option enables proximity & light sensors using CM36655 driver.

config SENSORS_CM36686
depends on I2C
tristate "CM36686 driver"
Expand All @@ -98,19 +106,74 @@ config SENSORS_GP2A002
If you say yes here you get support for sharp Sensortec's
proximity sensors GP2A002.

config SENSORS_GP2A002_PMIC_LEDA
depends on I2C
tristate "GP2A002 leda_en controlled by SM5703 (SUB PMIC)"
config SENSORS_GP2A_MODE_A
bool "GP2A002 proximity sensor A mode support"
depends on SENSORS_GP2A002
default n
help
If you say yes here you get support for sharp Sensortec's
proximity sensors GP2A002 A mode values.

config SENSORS_GP2A_MODE_B1
bool "GP2A002 proximity sensor B1 mode support"
depends on SENSORS_GP2A002
default n
help
If you say yes here you get support for sharp Sensortec's
proximity sensors GP2A002 B1 mode values.

config SENSORS_GP2A_MODE_B15
bool "GP2A002 proximity sensor B15 mode support"
depends on SENSORS_GP2A002
default n
help
This option enables leda_en controlled by SM5703 using GP2A002 driver.
If you say yes here you get support for sharp Sensortec's
proximity sensors GP2A002 B15 mode values.

config SENSORS_GP2A_VDD
tristate "SENSORS_K2HH_VDD"
depends on SENSORS_GP2A002
default n
help
Say Y here if you use SENSORS_GP2A002.
This option enables proximity sensors using
sharp Sensortec's GP2A002S device driver with VDD control.

config SENSORS_LEDA_EN_GPIO
depends on I2C
tristate "LEDA_EN controlled by GPIO"
default n
help
This option enables leda_en controlled by GPIO using optical sensor driver.

config SENSORS_CM3323
depends on I2C
tristate "CM3323 driver"
default n
help
Say Y here if you use cm3323.
This option enables RGB sensors using
Capella cm3323 device driver.

Say N here if you do not use cm3323.

config SENSORS_CM3323_ESD_DEFENCE
depends on I2C
tristate "CM3323 ESD Defence"
default n
help
Say Y here if you use ESD defence in cm3323.
This option enables ESD defence code.

Say N here if you do not use ESD defence in cm3323.

config SENSORS_STK3013
depends on I2C
tristate "STK3013 driver"
default n
help
This option enables proximity sensor using STK3013 driver.

config SENSORS_TCS3490
depends on I2C
tristate "TCS3490 driver"
Expand All @@ -131,38 +194,54 @@ config SENSORS_SX9500

config SENSORS_SX9500_INIT_TOUCH_THRESHOLD
int "SX9500 Grip sensor threshold for init touch"
depends on SENSORS_SX9500
depends on I2C
default "3000"
help
This value is the standard of init touch using
SemTech sx9500 device driver.

config SENSORS_SX9500_NORMAL_TOUCH_THRESHOLD
int "SX9500 Grip sensor threshold for normal touch"
depends on SENSORS_SX9500
depends on I2C
default "17"
help
This value is the standard of normal touch using
SemTech sx9500 device driver.

config SENSORS_SX9500_TEMPERATURE_COMPENSATION
depends on SENSORS_SX9500
depends on I2C
tristate "SX9500 Grip sensor temperature compensation"
default n
help
Say Y here if you use temperature compensation code.
This option enables grip sensors using
temperature compensation code.

config SENSORS_SX9500_DEFENCE_CODE_FOR_TA_NOISE
depends on I2C
tristate "SX9500 Grip sensor defence code for TA noise"
default n
help
Say Y here if you use defence code for TA noise.
This option enables grip sensors using
defence code for TA noise.

config SENSORS_SX9500_REGULATOR_ONOFF
depends on SENSORS_SX9500
depends on I2C
tristate "SX9500 Grip sensor Regulator"
default n
help
Say Y here if you use regulator for grip sensor.
This option enables regulator for grip sensor using
SemTech sx9500 device driver.

config SENSORS_SX9500_SAMPLE_RATE_SET_125KHZ
depends on I2C
tristate "SX9500 sample rate set 125KHZ"
default n
help
Say Y here if you want to set the sample rate to 125KHZ.

config SENSORS_SX9500_WIFI
depends on I2C
tristate "SX9500 driver for wifi"
Expand All @@ -175,24 +254,33 @@ config SENSORS_SX9500_WIFI
Say N here if you do not use sx9500 for wifi.

config SENSORS_SX9500_WIFI_INIT_TOUCH_THRESHOLD
int "SX9500 Grip sensor threshold for init touch for wifi"
int "SX9500 wifi Grip sensor threshold for init touch"
depends on SENSORS_SX9500_WIFI
default "3000"
help
This value is the standard of init touch using
SemTech sx9500 device driver for wifi.

config SENSORS_SX9500_WIFI_NORMAL_TOUCH_THRESHOLD
int "SX9500 Grip sensor threshold for normal touch for wifi"
int "SX9500 wifi Grip sensor threshold for normal touch"
depends on SENSORS_SX9500_WIFI
default "17"
help
This value is the standard of normal touch using
SemTech sx9500 device driver for wifi.

config SENSORS_SX9500_WIFI_DEFENCE_CODE_FOR_TA_NOISE
depends on SENSORS_SX9500_WIFI
tristate "SX9500 wifi Grip sensor wifi defence code for TA noise"
default n
help
Say Y here if you use defence code for TA noise.
This option enables grip sensors using
defence code for TA noise.

config SENSORS_SX9500_WIFI_TEMPERATURE_COMPENSATION
depends on SENSORS_SX9500_WIFI
tristate "SX9500 Grip sensor temperature compensation for wifi"
tristate "SX9500 wifi Grip sensor temperature compensation"
default n
help
Say Y here if you use temperature compensation code.
Expand All @@ -201,20 +289,57 @@ config SENSORS_SX9500_WIFI_TEMPERATURE_COMPENSATION

config SENSORS_SX9500_WIFI_REGULATOR_ONOFF
depends on SENSORS_SX9500_WIFI
tristate "SX9500 Grip sensor Regulator for WIFI"
tristate "SX9500 wifi Grip sensor Regulator"
default n
help
Say Y here if you use regulator for grip sensor for WIFI.
This option enables regulator for grip sensor using
SemTech sx9500 device driver for WIFI.

config SENSORS_SX9310
depends on I2C
tristate "SX9310 driver"
default n
help
Say Y here if you use sx9310.
This option enables grip sensors using
SemTech sx9310 device driver.

Say N here if you do not use sx9310.

config SENSORS_SX9310_NORMAL_TOUCH_THRESHOLD
int "SX9310 Grip sensor threshold for normal touch"
depends on SENSORS_SX9310
default "193"
help
This value is the standard of normal touch using
SemTech sx9310 device driver.

config SENSORS_SX9500_ALWAYS
depends on I2C
tristate "SX9500 driver"
default n
help
Say Y here if you use sx9500 always on mode.
This option enables grip sensors using
SemTech sx9500 device driver.

Say N here if you do not use sx9500.

config SENSORS_BMA2X2
tristate "BMA255/BMA250E/BMA222E/BMA280 acceleration sensor support"
depends on I2C=y
help
If you say yes here you get support for Bosch Sensortec's
acceleration sensors BMA255/BMA250E/BMA222E/BMA280.

config SENSORS_BMA2X2_ENABLE_INT1
tristate "BMA2X2 acceleration sensor interrupt INT1 support"
depends on SENSORS_BMA2X2
help
If you say yes here, you get INT1 support for Bosch Sensortec
acceleration sensors BMA255/BMA254/BMA355/BMA250E/BMA222E/BMA280.

config SENSORS_BMM050
tristate "BMM050 Magnetic Sensor Driver"
depends on I2C=y
Expand All @@ -227,3 +352,48 @@ config INPUT_BMA2x2_ACC_ALERT_INT
help
If you say yes here you get support for Bosch Sensortec's
acceleration sensors BMA255/BMA250E/BMA222E/BMA280.

config SENSORS_BMC150_VDD
tristate "BMC150 ACC MAGNETIC Sensor Driver"
depends on I2C=y
help
BMC150 ACC MAGNETIC Sensor Driver implemented by Bosch-Sensortec.

config SENSORS_TMD3782S
depends on I2C
tristate "SENSORS_TMD3782S"
default n
help
Say Y here if you use TAOS_TMD3782S.
This option enables optial sensors using
Sharp TAOS_TMD3782S device driver.

config CHARGER_NOTIFY_SENSOR
tristate "Nofity sensor when charging"
default n
help
Say Y here if you need to know the status if charging or not.

config SENSORS_ACCELEROMETER_2G
depends on SENSORS_BMA2X2
tristate "Set 2G BMA2X2 accelerometer sensor"
default n
help
This config is temporary option for L OS upgrade models.
If you want to enable this option, you must enable HAL 2G feature also.

config SENSORS_AK09911C
tristate "AK09911C compass support"
default n
depends on I2C
help
If you say yes here you get support for Asahi Kasei's
orientation sensor AK09911C.

config SENSORS_AK09916C
tristate "AK09916C compass support"
default n
depends on I2C
help
If you say yes here you get support for Asahi Kasei's
orientation sensor AK09911C.
Loading

0 comments on commit e3b7ea0

Please sign in to comment.