sgm4154x:add sgm41513 macro control.

add sgm41513 macro control
for devon 4g.

Change-Id: I2b19dfaff351b523d0ea953d593e8c6cdaa21e64
Signed-off-by: xieqiong2 <xieqiong2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2211406
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2221209
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
This commit is contained in:
xieqiong2 2022-03-09 16:59:16 +08:00 • committed by Qiong Xie
commit a2e6fde7f6
3 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,10 @@ ifeq ($(MMI_QC3P_WT6670_DETECTED),true)
KERNEL_CFLAGS += CONFIG_MMI_QC3P_WT6670_DETECTED=y
endif
ifeq ($(MMI_SGM41513_CHARGER),true)
KERNEL_CFLAGS += CONFIG_MMI_SGM41513_CHARGER=y
endif
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/mmi_discrete_charger_class.ko

View file

@ -11,6 +11,10 @@ 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
obj-m += sgm4154x_charger.o
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../mmi_discrete_charger/$(GKI_OBJ_MODULE_DIR)/Module.symvers

View file

@ -19,7 +19,9 @@
#define __SGM41542_CHIP_ID__
//#define __SGM41516_CHIP_ID__
//#define __SGM41516D_CHIP_ID__
#ifdef CONFIG_MMI_SGM41513_CHARGER
#define __SGM41513_CHIP_ID__
#endif
#ifdef __SGM41541_CHIP_ID__
#define SGM4154x_NAME "sgm41541"