qti_battery_charger_mmi: Initial add

Add a mmi version of the qti_battery_charger that is built
into the kernel.

This version renames battery to main_battery and updates the
power supply type so it doesn't get recognized by Android.

Wireless charging is removed

A combo battery has been added that reads props from the
mmi_charger

Change-Id: Ib70dfbc3d07d0199e6d55fa8e2571abba8fa9bb0
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1916389
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Ryan Lattrel 2021-04-02 16:34:06 -05:00
parent ea74da3f4a
commit 79dbab5f38
3 changed files with 1558 additions and 0 deletions

View file

@ -0,0 +1,11 @@
DLKM_DIR := motorola/kernel/modules
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := qti_battery_charger_mmi.ko
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
KBUILD_OPTIONS_GKI += GKI_OBJ_MODULE_DIR=gki
include $(DLKM_DIR)/AndroidKernelModule.mk
include $(call first-makefiles-under,$(LOCAL_PATH))

View file

@ -0,0 +1,5 @@
# add -Wall to try to catch everything we can.
EXTRA_CFLAGS += -Wall
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
obj-m += qti_battery_charger_mmi.o

File diff suppressed because it is too large Load diff