treewide: Setup inline build for moto bengal/hawao modules
Change-Id: Id038b9398777ad7fad8c50de1da0059d346d112b
This commit is contained in:
1 parent
a5159e41d7
commit
5397e7c3cc
44 files changed
+487
-249
No files matched your search
@@ -889,4 +889,6 @@ source "drivers/input/misc/ets_fps_mmi/Kconfig"
|
||||
source "drivers/input/misc/fpc_fps_mmi/Kconfig"
|
||||
source "drivers/input/misc/qpnp_power_on_mmi/Kconfig"
|
||||
source "drivers/input/misc/vl53L1/Kconfig"
|
||||
source "drivers/input/misc/rbs_fps_mmi/Kconfig"
|
||||
source "drivers/input/misc/chipone_fps_mmi/Kconfig"
|
||||
endif
|
||||
@@ -90,3 +90,5 @@ obj-$(CONFIG_INPUT_EGISTEC_FPS) += ets_fps_mmi/
|
||||
obj-$(CONFIG_INPUT_MISC_FPC1020) += fpc_fps_mmi/
|
||||
obj-$(CONFIG_INPUT_QPNP_POWER_ON_MMI) += qpnp_power_on_mmi/
|
||||
obj-$(CONFIG_INPUT_STMVL53L1) += vl53L1/
|
||||
obj-$(CONFIG_INPUT_EGIS_FPS) += rbs_fps_mmi/
|
||||
obj-$(CONFIG_INPUT_CHIPONE_FPS_MMI) += chipone_fps_mmi/
|
||||
@@ -1,14 +1,3 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
ccflags-$(CONFIG_INPUT_CHIPONE_FPS_SUPPORT_POWER_GPIO) += -DSUPPORT_POWER_GPIO
|
||||
|
||||
prod_list := hawao penang pnangn
|
||||
find_target := $(foreach find, $(prod_list), $(findstring $(find), $(TARGET_PRODUCT)))
|
||||
find_target := $(strip $(find_target))
|
||||
$(warning find_target=$(find_target))
|
||||
ifneq ($(find_target),)
|
||||
$(warning define SUPPORT_POWER_GPIO)
|
||||
EXTRA_CFLAGS += -DSUPPORT_POWER_GPIO
|
||||
endif
|
||||
|
||||
obj-m += fpsensor_spi_tee.o
|
||||
obj-$(CONFIG_INPUT_CHIPONE_FPS_MMI) += fpsensor_spi_tee.o
|
||||
@@ -0,0 +1,20 @@
|
||||
config INPUT_CHIPONE_FPS_MMI
|
||||
tristate "Fingerprint chip TEE driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for MMI Chipone finger print sensor.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called fpsensor_spi_tee.
|
||||
|
||||
config INPUT_CHIPONE_FPS_SUPPORT_POWER_GPIO
|
||||
bool "Enable Chipone fingerprint sensor power GPIO"
|
||||
depends on INPUT_CHIPONE_FPS_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for MMI Chipone finger print sensor
|
||||
power GPIO.
|
||||
|
||||
If unsure, say N.
|
||||
@@ -1,18 +1,6 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/misc/rbs_fps_mmi
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_EGIS_PANEL_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_ET721_FOD)),)
|
||||
EXTRA_CFLAGS += -DET721_FOD
|
||||
endif
|
||||
ccflags-$(CONFIG_PANEL_NOTIFICATIONS) += -DCONFIG_PANEL_NOTIFICATIONS
|
||||
ccflags-$(CONFIG_ET721_FOD) += -DET721_FOD
|
||||
|
||||
rbs_fps_mmi-y += etxxx_fp.o
|
||||
|
||||
|
||||
obj-m += rbs_fps_mmi.o
|
||||
|
||||
obj-$(CONFIG_INPUT_EGIS_FPS) += rbs_fps_mmi.o
|
||||
@@ -0,0 +1,10 @@
|
||||
config INPUT_EGIS_FPS
|
||||
tristate "egis fingerprint driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for MMI EGIS finger print sensor.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called rbs_fps_mmi.
|
||||
@@ -1376,4 +1376,6 @@ source "drivers/input/touchscreen/touchscreen_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/stmicro_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/focaltech_v2_mmi/Kconfig"
|
||||
|
||||
endif
|
||||
@@ -120,3 +120,4 @@ obj-$(CONFIG_TOUCHSCREEN_HIMAX_CHIPSET) += hxchipset/
|
||||
obj-$(CONFIG_TOUCHSCREEN_NT36xxx_HOSTDL_SPI_MMI) += nova_0flash_mmi/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_MMI) += touchscreen_mmi/
|
||||
obj-$(CONFIG_TOUCHSCREEN_FTS_TS) += stmicro_mmi/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI) += focaltech_v2_mmi/
|
||||
@@ -1,11 +1,4 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/focaltech_v2_mmi \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/focaltech_v2_mmi/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/focaltech_v2_mmi/focaltech_test
|
||||
|
||||
obj-m := focaltech_v2_mmi.o
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI) := focaltech_v2_mmi.o
|
||||
focaltech_v2_mmi-objs += focaltech_core.o
|
||||
focaltech_v2_mmi-objs += focaltech_ex_fun.o
|
||||
focaltech_v2_mmi-objs += focaltech_ex_mode.o
|
||||
@@ -17,28 +10,17 @@ focaltech_v2_mmi-objs += focaltech_flash/focaltech_upgrade_ft3518u.o
|
||||
focaltech_v2_mmi-objs += focaltech_flash/focaltech_upgrade_ft5452i.o
|
||||
focaltech_v2_mmi-objs += focaltech_i2c.o
|
||||
|
||||
ifneq ($(filter ft3519,$(CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME_FT3519
|
||||
ifneq ($(filter "ft3519",$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_IC_NAME)),)
|
||||
ccflags-y += -DCONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME_FT3519
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_TOUCHSCREEN_MMI)),)
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../touchscreen_mmi/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
focaltech_v2_mmi-objs += focaltech_ts_mmi.o
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_FOCALTECH_MMI_ENABLE_DOUBLE_TAP)),)
|
||||
EXTRA_CFLAGS += -DFOCALTECH_SENSOR_EN
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_FOCALTECH_MMI_ENABLE_PALM)),)
|
||||
EXTRA_CFLAGS += -DFOCALTECH_PALM_SENSOR_EN
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_FOCALTECH_MMI_PEN_NOTIFIER)),)
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../misc/pen/Module.symvers
|
||||
EXTRA_CFLAGS += -DFOCALTECH_PEN_NOTIFIER
|
||||
ccflags-y += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
focaltech_v2_mmi-objs += focaltech_ts_mmi.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_DRM_PANEL_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/msm-$(MODULE_KERNEL_VERSION)/Module.symvers
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../mmi_info/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_ENABLE_DOUBLE_TAP) += -DFOCALTECH_SENSOR_EN
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_ENABLE_PALM) += -DFOCALTECH_PALM_SENSOR_EN
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_PEN_NOTIFIER) += -DFOCALTECH_PEN_NOTIFIER
|
||||
|
||||
ccflags-$(CONFIG_DRM_PANEL_NOTIFICATIONS) += -DCONFIG_DRM_PANEL_NOTIFICATIONS
|
||||
@@ -15,3 +15,54 @@ config TOUCHSCREEN_FTS_DIRECTORY
|
||||
default "focaltech_touch"
|
||||
depends on TOUCHSCREEN_FTS
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI
|
||||
tristate "FocalTech Touchscreen Driver V2 MMI"
|
||||
depends on INPUT_TOUCHSCREEN_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for FocalTech Touchscreen V2 MMI.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called focaltech_v2_mmi.
|
||||
|
||||
|
||||
if INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_IC_NAME
|
||||
string "FocalTech V2 MMI IC Name"
|
||||
depends on INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI
|
||||
default "ft3518u"
|
||||
help
|
||||
Provide the IC name of the FocalTech V2 MMI device.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_ENABLE_DOUBLE_TAP
|
||||
bool "FocalTech V2 MMI Double tap"
|
||||
depends on INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have Double tap support on Moto FocalTech V2.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_ENABLE_PALM
|
||||
bool "FocalTech V2 MMI Palm Sensor"
|
||||
depends on INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have palm sensor support on Moto FocalTech V2.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI_PEN_NOTIFIER
|
||||
bool "FocalTech V2 MMI Pen notifier"
|
||||
depends on INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have pen notifier support on Moto FocalTech V2.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
|
||||
endif
|
||||
@@ -1,5 +1,6 @@
|
||||
config INPUT_TOUCHSCREEN_MMI
|
||||
tristate "Moto touchscreen gestures"
|
||||
depends on SENSORS_CLASS && MMI_RELAY
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for Moto touchscreen gestures.
|
||||
|
||||
@@ -816,6 +816,19 @@ config LEDS_QPNP_VIBRATOR
|
||||
manually or by the DTEST lines.It uses the android timed-output
|
||||
framework.
|
||||
|
||||
config LEDS_INDICATOR_PWM
|
||||
tristate "PWM LED driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have PWM LED in
|
||||
your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called leds-indicator-pwm.
|
||||
|
||||
|
||||
comment "LED Triggers"
|
||||
source "drivers/leds/trigger/Kconfig"
|
||||
|
||||
|
||||
@@ -94,3 +94,6 @@ obj-$(CONFIG_LEDS_USER) += uleds.o
|
||||
|
||||
# LED Triggers
|
||||
obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
|
||||
|
||||
# PWM LED driver
|
||||
obj-$(CONFIG_LEDS_INDICATOR_PWM) += leds-indicator-pwm.o
|
||||
@@ -60,3 +60,4 @@ source "drivers/media/platform/msm/synx/Kconfig"
|
||||
source "drivers/media/platform/msm/dvb/Kconfig"
|
||||
source "drivers/media/platform/msm/broadcast/Kconfig"
|
||||
source "drivers/media/platform/msm/sde/Kconfig"
|
||||
source "drivers/media/platform/msm/camera/cam_sensor_module/cam_cci/Kconfig"
|
||||
@@ -12,3 +12,4 @@ obj-$(CONFIG_MSM_GLOBAL_SYNX) += synx/
|
||||
obj-$(CONFIG_TSPP) += broadcast/
|
||||
obj-$(CONFIG_DVB_MPQ) += dvb/
|
||||
obj-$(CONFIG_MSMB_CAMERA) += camera_v2/
|
||||
obj-$(CONFIG_CAMERA_CCI_DEBUG_INTF) += camera/cam_sensor_module/cam_cci/
|
||||
@@ -1,35 +1,15 @@
|
||||
HAVE_KERNEL_4_19 = $(shell test -d $(ANDROID_BUILD_TOP)/kernel/msm-4.19 && echo 1)
|
||||
KERNEL_CAMERA_DRIVER_PATH := $(srctree)/techpack/camera/drivers
|
||||
|
||||
HAVE_KERNEL_5_4 = $(shell test -d $(ANDROID_BUILD_TOP)/kernel/msm-5.4 && echo 1)
|
||||
ccflags-y += -DCONFIG_SPECTRA_CAMERA=1
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/../include
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/../include/uapi
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/../include/uapi/camera
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_utils
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_cpas/include
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_sensor_module/cam_sensor_io
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_sensor_module/cam_sensor_utils
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_sensor_module/cam_cci
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_req_mgr
|
||||
ccflags-y += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_smmu
|
||||
|
||||
ifeq ($(HAVE_KERNEL_4_19),1)
|
||||
KERNEL_SOURCE_PATH ?= kernel/msm-4.19
|
||||
else ifeq ($(HAVE_KERNEL_5_4),1)
|
||||
KERNEL_SOURCE_PATH ?= kernel/msm-5.4
|
||||
else
|
||||
KERNEL_SOURCE_PATH ?= kernel/msm-4.9
|
||||
endif
|
||||
|
||||
HAVE_TECHPACK_CAMERA = $(shell test -d $(ANDROID_BUILD_TOP)/$(KERNEL_SOURCE_PATH)/techpack/camera && echo 1)
|
||||
|
||||
ifeq ($(HAVE_TECHPACK_CAMERA),1)
|
||||
KERNEL_CAMERA_DRIVER_PATH ?= $(ANDROID_BUILD_TOP)/$(KERNEL_SOURCE_PATH)/techpack/camera/drivers
|
||||
EXTRA_CFLAGS += -DCONFIG_SPECTRA_CAMERA=1
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/../include
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/../include/uapi
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/../include/uapi/camera
|
||||
else
|
||||
KERNEL_CAMERA_DRIVER_PATH ?= $(ANDROID_BUILD_TOP)/$(KERNEL_SOURCE_PATH)/drivers/media/platform/msm/camera
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_utils
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_cpas/include
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_sensor_module/cam_sensor_io
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_sensor_module/cam_sensor_utils
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_sensor_module/cam_cci
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_req_mgr
|
||||
EXTRA_CFLAGS += -I$(KERNEL_CAMERA_DRIVER_PATH)/cam_smmu
|
||||
|
||||
obj-m += cci_intf.o
|
||||
obj-$(CONFIG_CAMERA_CCI_DEBUG_INTF) += cci_intf.o
|
||||
@@ -0,0 +1,10 @@
|
||||
config CAMERA_CCI_DEBUG_INTF
|
||||
tristate "Camera CCI DEBUG INTF"
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include Camera CCI DEBUG INTF.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called cci_intf.
|
||||
@@ -652,6 +652,8 @@ source "drivers/misc/mmi_sys_temp/Kconfig"
|
||||
source "drivers/misc/sx933x/Kconfig"
|
||||
source "drivers/misc/sx937x/Kconfig"
|
||||
source "drivers/misc/utag/Kconfig"
|
||||
source "drivers/misc/aw9610x/Kconfig"
|
||||
source "drivers/misc/regulator_vibrator_mmi/Kconfig"
|
||||
endmenu
|
||||
|
||||
config OKL4_USER_VIPC
|
||||
|
||||
@@ -84,3 +84,5 @@ obj-$(CONFIG_MMI_SYS_TEMP) += mmi_sys_temp/
|
||||
obj-$(CONFIG_MOTO_UTAGS) += utag/
|
||||
obj-$(CONFIG_SARSENSOR_SX933X) += sx933x/
|
||||
obj-$(CONFIG_SARSENSOR_SX937X) += sx937x/
|
||||
obj-$(CONFIG_AW9610X_SAR) += aw9610x/
|
||||
obj-$(CONFIG_REGULATOR_VIBRATOR_MMI) += regulator_vibrator_mmi/
|
||||
@@ -1,34 +1,8 @@
|
||||
KERNEL_DIR_PATH = $(shell find $(ANDROID_BUILD_TOP)/kernel/ -name "msm-*" -type d | head -1 | grep -i "kernel/msm-*")
|
||||
ccflags-y += -I$(srctree)/drivers/base
|
||||
|
||||
KERNEL_VERSION_NAME = $(shell basename $(KERNEL_DIR_PATH))
|
||||
ccflags-$(CONFIG_AW9610X_POWER_SUPPLY_ONLINE) += -DCONFIG_USE_POWER_SUPPLY_ONLINE
|
||||
ccflags-$(CONFIG_AW9610X_HARDWARE_VERSION) += -DCONFIG_USE_HARDWARE_VERSION
|
||||
|
||||
KERNEL_PLATFORM_PATH = $(shell find $(ANDROID_BUILD_TOP) -maxdepth 1 -name "kernel_platform" -type d)
|
||||
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_AW9610X_POWER_SUPPLY_ONLINE)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_USE_POWER_SUPPLY_ONLINE
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_AW9610X_HARDWARE_VERSION)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_USE_HARDWARE_VERSION
|
||||
endif
|
||||
|
||||
|
||||
ifneq (,$(KERNEL_DIR_PATH))
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/kernel/$(KERNEL_VERSION_NAME)/drivers/base
|
||||
else ifneq (,$(KERNEL_PLATFORM_PATH))
|
||||
EXTRA_CFLAGS += -I$(KERNEL_PLATFORM_PATH)/common/drivers/base
|
||||
else
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/kernel/drivers/base
|
||||
endif
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../sensors/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
|
||||
obj-m := aw9610x.o
|
||||
obj-$(CONFIG_AW9610X_SAR) := aw9610x.o
|
||||
aw9610x-objs += aw9610x_sar.o
|
||||
aw9610x-objs += aw_bin_parse.o
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
config AW9610X_SAR
|
||||
tristate "AW9610X SAR Driver"
|
||||
depends on SENSORS_CLASS
|
||||
help
|
||||
Say Y here if you have Aw9610x Sar Sensor Device in
|
||||
your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called aw9610x.
|
||||
|
||||
config AW9610X_POWER_SUPPLY_ONLINE
|
||||
bool "Enable Aw9610x power supply online usage"
|
||||
depends on AW9610X_SAR
|
||||
help
|
||||
Enable online power supply usage.
|
||||
|
||||
config AW9610X_HARDWARE_VERSION
|
||||
bool "Enable Aw9610x hardware revision support"
|
||||
depends on AW9610X_SAR
|
||||
help
|
||||
Enable hardware revision support.
|
||||
@@ -1,12 +1,5 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_VIBRATOR_NOISE_CAMERA)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_VIBRATOR_NOISE_CAMERA
|
||||
endif
|
||||
ccflags-$(CONFIG_VIBRATOR_NOISE_CAMERA) += -DCONFIG_VIBRATOR_NOISE_CAMERA
|
||||
|
||||
regulator_vibrator_mmi-y += moto_regulator_vibrator.o
|
||||
|
||||
obj-m += regulator_vibrator_mmi.o
|
||||
|
||||
obj-$(CONFIG_REGULATOR_VIBRATOR_MMI) += regulator_vibrator_mmi.o
|
||||
@@ -0,0 +1,16 @@
|
||||
config REGULATOR_VIBRATOR_MMI
|
||||
tristate "EXT Vibrator-LDO driver"
|
||||
help
|
||||
Say Y here if you have EXT Vibrator-LDO Device in
|
||||
your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called regulator_vibrator_mmi.
|
||||
|
||||
config VIBRATOR_NOISE_CAMERA
|
||||
bool "Enable Vibrator Noise Camera"
|
||||
depends on REGULATOR_VIBRATOR_MMI
|
||||
help
|
||||
Enable Vibrator Noise Camera.
|
||||
@@ -7,3 +7,9 @@ source "drivers/power/qpnp-smbcharger-mmi/Kconfig"
|
||||
source "drivers/power/mmi_parallel_charger/Kconfig"
|
||||
source "drivers/power/mmi_parallel_charger_qc3p/Kconfig"
|
||||
source "drivers/power/bq2597x_mmi/Kconfig"
|
||||
source "drivers/power/sgm4154x_chg_mmi/Kconfig"
|
||||
source "drivers/power/bq2589x_chg_mmi/Kconfig"
|
||||
source "drivers/power/mmi_charger/Kconfig"
|
||||
source "drivers/power/mmi_discrete_charger/Kconfig"
|
||||
source "drivers/power/cw2217b_fg_mmi/Kconfig"
|
||||
source "drivers/power/sm5602_fg_mmi/Kconfig"
|
||||
@@ -8,3 +8,9 @@ obj-$(CONFIG_QPNP_SMBCHARGER_MMI) += qpnp-smbcharger-mmi/
|
||||
obj-$(CONFIG_MMI_PARALLEL_CHARGER) += mmi_parallel_charger/
|
||||
obj-$(CONFIG_MMI_PARALLEL_CHARGER_QC3P) += mmi_parallel_charger_qc3p/
|
||||
obj-$(CONFIG_BQ2597X_MMI) += bq2597x_mmi/
|
||||
obj-$(CONFIG_BQ2589X_CHARGER) += bq2589x_chg_mmi/
|
||||
obj-$(CONFIG_MMI_CHARGER) += mmi_charger/
|
||||
obj-$(CONFIG_MMI_DISCRETE_CHARGER) += mmi_discrete_charger/
|
||||
obj-$(CONFIG_SGM4154X_CHARGER) += sgm4154x_chg_mmi/
|
||||
obj-$(CONFIG_CW2217B_FG_MMI) += cw2217b_fg_mmi/
|
||||
obj-$(CONFIG_SM5602_FQ_MMI) += sm5602_fg_mmi/
|
||||
@@ -1,20 +1,4 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/power/bq2589x_chg_mmi
|
||||
ccflags-$(CONFIG_BQ2589X_MMI_QC3P_TURBO_CHARGER) += -DCONFIG_MMI_QC3P_TURBO_CHARGER
|
||||
ccflags-$(CONFIG_BQ2589X_MMI_QC3P_WT6670_DETECTED) += -DCONFIG_MMI_QC3P_WT6670_DETECTED
|
||||
|
||||
obj-m += bq2589x_charger.o
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_QC3P_TURBO_CHARGER)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_QC3P_TURBO_CHARGER
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_QC3P_WT6670_DETECTED)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_QC3P_WT6670_DETECTED
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_EXT_CHG_LED)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_EXT_CHG_LED
|
||||
endif
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../mmi_discrete_charger/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
obj-$(CONFIG_BQ2589X_CHARGER) += bq2589x_charger.o
|
||||
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# BQ2589X Charger Driver
|
||||
#
|
||||
|
||||
config BQ2589X_CHARGER
|
||||
tristate "TI BQ2589x Charger Driver"
|
||||
depends on MMI_DISCRETE_CHARGER_CLASS
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a bq2589x charging device in
|
||||
your system.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called bq2589x_charger.
|
||||
|
||||
config BQ2589X_MMI_QC3P_TURBO_CHARGER
|
||||
bool "Enable BQ2589X Moto QC3P Turbo Charger"
|
||||
depends on BQ2589X_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a BQ2589X Moto QC3P turbo charger compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config BQ2589X_MMI_QC3P_WT6670_DETECTED
|
||||
bool "Enable BQ2589X Moto QC3P WT6670"
|
||||
depends on BQ2589X_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a BQ2589X Moto QC3P WT6670 compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config MMI_EXT_CHG_LED
|
||||
bool "Enable MMI external charger LED"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a MMI external charger LED.
|
||||
|
||||
If unsure, say N.
|
||||
@@ -1,11 +1,4 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/drivers/power/cw2217b_fg_mmi
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_DYNAMIC_UPDATE_UI_FULL)),)
|
||||
EXTRA_CFLAGS += -DDYNAMIC_UPDATE_UI_FULL
|
||||
endif
|
||||
ccflags-$(CONFIG_DYNAMIC_UPDATE_UI_FULL) += -DDYNAMIC_UPDATE_UI_FULL
|
||||
|
||||
cw2217b_fg_mmi-objs += cw2217B_fuel_gauge_base.o
|
||||
obj-m += cw2217b_fg_mmi.o
|
||||
obj-$(CONFIG_CW2217B_FG_MMI) += cw2217b_fg_mmi.o
|
||||
@@ -0,0 +1,20 @@
|
||||
config CW2217B_FG_MMI
|
||||
tristate "CW2217 FGADC Device Driver V1.2"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have CW2217 FGADC Device support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called cw2217b_fg_mmi.
|
||||
|
||||
config DYNAMIC_UPDATE_UI_FULL
|
||||
bool "Save the value of CW2217 ui_full to the 0xA2 register"
|
||||
depends on CW2217B_FG_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here to save the value of ui_full to the 0xA2 register.
|
||||
|
||||
If unsure, say N.
|
||||
@@ -1,16 +1,7 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/power/mmi_charger
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
#ifeq ($(TARGET_BUILD_VARIANT),userdebug)
|
||||
# EXTRA_CFLAGS += -DMMI_GKI_API_ALLOWANCE
|
||||
#endif
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT),userdebug)
|
||||
EXTRA_CFLAGS += -DMMI_GKI_API_ALLOWANCE
|
||||
endif
|
||||
ccflags-$(CONFIG_MMI_RECHARGER_HAWAO_MODE) += -DCONFIG_MMI_RECHARGER_HAWAO_MODE
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_RECHARGER_HAWAO_MODE)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_RECHARGER_HAWAO_MODE
|
||||
endif
|
||||
|
||||
obj-m += mmi_charger.o
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../mmi_info/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
obj-$(CONFIG_MMI_CHARGER) += mmi_charger.o
|
||||
@@ -0,0 +1,21 @@
|
||||
config MMI_CHARGER
|
||||
tristate "MMI Charger Driver"
|
||||
depends on MMI_INFO
|
||||
default n
|
||||
help
|
||||
Say Y here if you have mmi charger support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called mmi_charger.
|
||||
|
||||
config MMI_RECHARGER_HAWAO_MODE
|
||||
bool "Enable MMI Recharger Hawao Mode"
|
||||
depends on MMI_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a mmi recharger hawao mode compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
@@ -1,16 +1,10 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/power/mmi_charger
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/power/mmi_discrete_charger
|
||||
ccflags-y += -I$(srctree)/drivers/power/mmi_charger
|
||||
ccflags-y += -I$(srctree)/drivers/power/mmi_discrete_charger
|
||||
|
||||
obj-m += mmi_discrete_charger.o
|
||||
obj-$(CONFIG_MMI_DISCRETE_CHARGER) += mmi_discrete_charger.o
|
||||
mmi_discrete_charger-objs += mmi_discrete_charger_core.o
|
||||
mmi_discrete_charger-objs += mmi_discrete_charger_iio.o
|
||||
mmi_discrete_charger-objs += mmi_discrete_voter.o
|
||||
mmi_discrete_charger-objs += mmi_discrete_factory_tcmd.o
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../usb/typec/adapter_class/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../mmi_charger/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
|
||||
obj-m += mmi_discrete_charger_class.o
|
||||
obj-$(CONFIG_MMI_DISCRETE_CHARGER_CLASS) += mmi_discrete_charger_class.o
|
||||
@@ -0,0 +1,24 @@
|
||||
config MMI_DISCRETE_CHARGER
|
||||
tristate "MMI Discrete Charger Driver"
|
||||
depends on ADAPTER_CLASS && MMI_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have mmi discrete charger support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called mmi_discrete_charger.
|
||||
|
||||
config MMI_DISCRETE_CHARGER_CLASS
|
||||
tristate "MMI Discrete Charger Class Device"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have mmi discrete charger class support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called mmi_discrete_charger_class.
|
||||
@@ -1,3 +1,7 @@
|
||||
ccflags-$(CONFIG_USE_MMI_CHARGER) += -DUSE_MMI_CHARGER
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_CHARGER)),)
|
||||
ccflags-y += -DUSE_MMI_CHARGER
|
||||
ccflags-y += -I$(srctree)/drivers/power/mmi_charger
|
||||
endif
|
||||
|
||||
obj-$(CONFIG_QPNP_ADAPTIVE_CHARGE) += qpnp_adaptive_charge.o
|
||||
ccflags-$(CONFIG_ADAPTIVE_TOLERANCE_OPTIMIZATION) += -DADAPTIVE_TOLERANCE_OPTIMIZATION
|
||||
@@ -1,27 +1,5 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/power/sgm4154x_chg_mmi
|
||||
ccflags-$(CONFIG_SGM4154X_MMI_QC3P_TURBO_CHARGER) += -DCONFIG_MMI_QC3P_TURBO_CHARGER
|
||||
ccflags-$(CONFIG_SGM4154X_MMI_QC3P_WT6670_DETECTED) += -DCONFIG_MMI_QC3P_WT6670_DETECTED
|
||||
ccflags-$(CONFIG_SGM4154X_MMI_SGM41513_CHARGER) += -DCONFIG_MMI_SGM41513_CHARGER
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_QC3P_TURBO_CHARGER)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_QC3P_TURBO_CHARGER
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_QC3P_WT6670_DETECTED)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_QC3P_WT6670_DETECTED
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_SGM41513_CHARGER)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_SGM41513_CHARGER
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_QC3P_Z350_DETECTED)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_QC3P_Z350_DETECTED
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_MMI_EXT_CHG_LED)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_MMI_EXT_CHG_LED
|
||||
endif
|
||||
|
||||
obj-m += sgm4154x_charger.o
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../mmi_discrete_charger/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
obj-$(CONFIG_SGM4154X_CHARGER) += sgm4154x_charger.o
|
||||
@@ -0,0 +1,41 @@
|
||||
#
|
||||
# SGM4154X Charger driver
|
||||
#
|
||||
|
||||
config SGM4154X_CHARGER
|
||||
tristate "sgm4154x charger driver"
|
||||
depends on MMI_DISCRETE_CHARGER_CLASS
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a sgm415x charging device in
|
||||
your system.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called sgm415x_charger.
|
||||
|
||||
config SGM4154X_MMI_QC3P_TURBO_CHARGER
|
||||
bool "Enable SGM4154X Moto QC3P Turbo Charger"
|
||||
depends on SGM4154X_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a SGM4154X Moto QC3P turbo charger compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config SGM4154X_MMI_QC3P_WT6670_DETECTED
|
||||
bool "Enable SGM4154X Moto QC3P WT6670"
|
||||
depends on SGM4154X_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a SGM4154X Moto QC3P WT6670 compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config SGM4154X_MMI_SGM41513_CHARGER
|
||||
bool "Enable SGM4154X Moto SGM41513 Charger"
|
||||
depends on SGM4154X_CHARGER
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a SGM4154X Moto SGM41513 Charger compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
@@ -1,7 +1,2 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/drivers/power/sm5602_fg_mmi
|
||||
|
||||
sm5602_fg_mmi-objs += sm5602_fg.o
|
||||
obj-m += sm5602_fg_mmi.o
|
||||
obj-$(CONFIG_SM5602_FQ_MMI) += sm5602_fg_mmi.o
|
||||
@@ -0,0 +1,11 @@
|
||||
config SM5602_FQ_MMI
|
||||
tristate "SM SM5602 Fuel Gauge Driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have SM SM5602 Fuel Gauge support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called sm5602_fg_mmi.
|
||||
@@ -107,4 +107,8 @@ source "drivers/usb/typec/mux/Kconfig"
|
||||
|
||||
source "drivers/usb/typec/altmodes/Kconfig"
|
||||
|
||||
source "drivers/usb/typec/mmi_tcpc/Kconfig"
|
||||
|
||||
source "drivers/usb/typec/adapter_class/Kconfig"
|
||||
|
||||
endif # TYPEC
|
||||
@@ -10,3 +10,5 @@ obj-$(CONFIG_TYPEC_TPS6598X) += tps6598x.o
|
||||
obj-$(CONFIG_TYPEC) += mux/
|
||||
obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
|
||||
obj-$(CONFIG_TYPEC_RT1711H) += tcpci_rt1711h.o
|
||||
obj-$(CONFIG_TCPC_CLASS) += mmi_tcpc/
|
||||
obj-$(CONFIG_ADAPTER_CLASS) += adapter_class/
|
||||
@@ -1,5 +1 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
|
||||
obj-m += adapter_class.o
|
||||
obj-$(CONFIG_ADAPTER_CLASS) += adapter_class.o
|
||||
@@ -0,0 +1,11 @@
|
||||
config ADAPTER_CLASS
|
||||
tristate "Adapter Class Device Driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have Adapter Class Device support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called adapter_class.
|
||||
@@ -1,35 +1,14 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/usb/typec/mmi_tcpc
|
||||
|
||||
subdir-ccflags-y += -Wall -Werror -DCONFIG_RT_REGMAP
|
||||
|
||||
EXTRA_CFLAGS += -DCONFIG_PD_DBG_INFO
|
||||
ccflags-y += -DCONFIG_PD_DBG_INFO
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TCPC_CLASS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_TCPC_CLASS
|
||||
endif
|
||||
ccflags-$(CONFIG_USB_POWER_DELIVERY) += -DCONFIG_USB_POWER_DELIVERY
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_USB_POWER_DELIVERY)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_USB_POWER_DELIVERY
|
||||
endif
|
||||
obj-$(CONFIG_TCPC_RT1711H) += tcpc_rt1711h.o
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TCPC_RT1711H)),)
|
||||
obj-m += tcpc_rt1711h.o
|
||||
endif
|
||||
obj-$(CONFIG_TCPC_AW35616) += tcpc_aw35616.o
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TCPC_AW35616)),)
|
||||
obj-m += tcpc_aw35616.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TCPC_SGM7220)),)
|
||||
obj-m += tcpc_sgm7220.o
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_TCPC_MAX_POLLING_COUNT),)
|
||||
EXTRA_CFLAGS += -DCONFIG_TCPC_MAX_POLLING_COUNT=$(CONFIG_TCPC_MAX_POLLING_COUNT)
|
||||
endif
|
||||
obj-$(CONFIG_TCPC_SGM7220) += tcpc_sgm7220.o
|
||||
|
||||
tcpc_class-objs += tcpci_core.o tcpci_typec.o tcpci_timer.o \
|
||||
tcpm.o tcpci.o pd_dbg_info.o tcpci_alert.o rt-regmap.o tcpci_dual_role.o
|
||||
@@ -48,8 +27,5 @@ tcpc_class-objs += tcpci_event.o \
|
||||
pd_dpm_mmi_adapter.o
|
||||
endif
|
||||
|
||||
obj-m += tcpc_class.o
|
||||
obj-m += rt_pd_manager.o
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../adapter_class/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../power/mmi_discrete_charger/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
obj-$(CONFIG_TCPC_CLASS) += tcpc_class.o
|
||||
obj-$(CONFIG_RT_PD_MANAGER) += rt_pd_manager.o
|
||||
@@ -0,0 +1,75 @@
|
||||
config TCPC_CLASS
|
||||
tristate "TypeC Port Control Class"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have TCPC class support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called tcpc_class.
|
||||
|
||||
config TCPC_MAX_POLLING_COUNT
|
||||
int "Configure USB Power Delivery max polling count"
|
||||
depends on TCPC_CLASS
|
||||
default 100
|
||||
help
|
||||
Configure USB Power Delivery max polling count.
|
||||
|
||||
config USB_POWER_DELIVERY
|
||||
bool "Enable USB Power Delivery"
|
||||
depends on TCPC_CLASS && ADAPTER_CLASS
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a usb power delivery compatible device connected.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config TCPC_RT1711H
|
||||
tristate "RT1711 TCPC Driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have RT1711 TypeC Port Control support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called tcpc_rt1711h.
|
||||
|
||||
config TCPC_AW35616
|
||||
tristate "AW35616 TCPC Driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have AW35616 TypeC Port Control support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called tcpc_aw35616.
|
||||
|
||||
config TCPC_SGM7220
|
||||
tristate "SGM7220 TCPC Driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have SGM7220 TypeC Port Control support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called tcpc_sgm7220.
|
||||
|
||||
config RT_PD_MANAGER
|
||||
tristate "Richtek pd manager driver"
|
||||
default n
|
||||
help
|
||||
Say Y here if you have Richtek pd manager driver support
|
||||
in your system.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called rt_pd_manager.
|
||||
Reference in new issue
Block a user