Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01a1835d authored by junwen.ye's avatar junwen.ye Committed by Rohit Sekhar
Browse files

input/misc: Import VL53L1 TOF AF sensor driver

[ALM:10872982] [FP4]:vl53l3 power on
 &&&%%%comment:[FP4]:vl53l3 power on
 &&&%%%bug number:10872982
 &&&%%%product name:sm7225_r_fp4
 &&&%%%root cause:coding
 &&&%%%Bug category:T2M
 &&&%%%Module_Impact:kernel
 &&&%%%Test_Suggestion:tof function
 &&&%%%Solution:NA
 &&&%%%Test_Report:ok in native
 &&&%%%VAL Can Test:NO

[merothh]:
- Unset default y
parent 941aac77
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -885,4 +885,14 @@ config INPUT_SC27XX_VIBRA
	  To compile this driver as a module, choose M here. The module will
	  be called sc27xx_vibra.

config STMVL53L1
       tristate "STM VL53L3 Proximity support"
       depends on I2C=y
       help
         Say Y here if you want to use STMicroelectronics's vl53L3 TOF AF sensor
         through I2C interface.

         To compile this driver as a module, choose M here: the
         module will be called stmvl53l3.

endif
+1 −0
Original line number Diff line number Diff line
@@ -85,3 +85,4 @@ obj-$(CONFIG_INPUT_WM831X_ON) += wm831x-on.o
obj-$(CONFIG_INPUT_XEN_KBDDEV_FRONTEND)	+= xen-kbdfront.o
obj-$(CONFIG_INPUT_YEALINK)		+= yealink.o
obj-$(CONFIG_INPUT_IDEAPAD_SLIDEBAR)	+= ideapad_slidebar.o
obj-$(CONFIG_STMVL53L1)			+= vl53L1/
+1 −0
Original line number Diff line number Diff line
/doc_out/
+49 −0
Original line number Diff line number Diff line
#
# Kbuild for the vl53L1 drivers.
#

ccflags-y	+= -I$(src)/inc -I$(src)


ccflags-y	+= -I$(src)/protected/inc
ccflags-y	+= -DVL53L1_FULL_KERNEL



ccflags-y	+= -DVL53L3


# define this environment variable if you want to compile driver for an old
# kernel
ifdef OLD_NETLINK_API
ccflags-y	+= -DOLD_NETLINK_API
endif

VL53L1_LOG_ENABLE := true
ifdef VL53L1_LOG_ENABLE
ccflags-y	+= -DVL53L1_LOG_ENABLE
endif

obj-$(CONFIG_STMVL53L1)	+= stmvl53l1.o
stmvl53l1-objs		:= stmvl53l1_module.o stmvl53l1_module-i2c.o

stmvl53l1-objs		+= vl53l1_platform_ipp.o
stmvl53l1-objs		+= protected/src/vl53l1_hist_funcs.o
stmvl53l1-objs		+= protected/src/vl53l1_xtalk.o
stmvl53l1-objs		+= protected/src/vl53l1_hist_algos_gen3.o
stmvl53l1-objs		+= protected/src/vl53l1_hist_core.o
stmvl53l1-objs		+= protected/src/vl53l1_sigma_estimate.o
stmvl53l1-objs		+= protected/src/vl53l1_dmax.o
stmvl53l1-objs		+= protected/src/vl53l1_hist_algos_gen4.o

stmvl53l1-objs		+= stmvl53l1_i2c.o stmvl53l1_log.o
stmvl53l1-objs		+= src/vl53l1_api.o src/vl53l1_api_core.o
stmvl53l1-objs		+= src/vl53l1_api_strings.o src/vl53l1_error_strings.o
stmvl53l1-objs		+= src/vl53l1_core.o src/vl53l1_register_funcs.o
stmvl53l1-objs		+= src/vl53l1_api_preset_modes.o
stmvl53l1-objs		+= src/vl53l1_api_calibration.o
stmvl53l1-objs		+= src/vl53l1_silicon_core.o
stmvl53l1-objs		+= src/vl53l1_zone_presets.o src/vl53l1_nvm.o
stmvl53l1-objs		+= src/vl53l1_api_debug.o src/vl53l1_core_support.o
stmvl53l1-objs		+= src/vl53l1_wait.o
stmvl53l1-objs		+= src/vl53l1_nvm_debug.o
+12 −0
Original line number Diff line number Diff line
ifneq ($(KERNELRELEASE),)
include Kbuild

else
KDIR ?= /lib/modules/`uname -r`/build

default:
	CONFIG_STMVL53L1=m $(MAKE) -C $(KDIR) M=$$PWD
clean:
	CONFIG_STMVL53L1=m $(MAKE) -C $(KDIR) M=$$PWD clean

endif
Loading