mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
power/driver: upload mmi parallel charge manager driver
upload mmi parallel charge manager driver Change-Id: Id34950931f75430c8d13bbdb66f1310c0f0994a1 Signed-off-by: xuwt2 <xuwt2@lenovo.com> Reviewed-on: https://gerrit.mot.com/1197169 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1202300 Reviewed-by: Ling Jin <lingjin@motorola.com>
This commit is contained in:
parent
4e5372dc1e
commit
d87e797026
4 changed files with 2045 additions and 0 deletions
8
drivers/power/mmi_pl_chg_manager/Android.mk
Normal file
8
drivers/power/mmi_pl_chg_manager/Android.mk
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
DLKM_DIR := motorola/kernel/modules
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := mmi_pl_chg_manager.ko
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
||||
include $(DLKM_DIR)/AndroidKernelModule.mk
|
||||
6
drivers/power/mmi_pl_chg_manager/Kbuild
Normal file
6
drivers/power/mmi_pl_chg_manager/Kbuild
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include \
|
||||
-I$(TOP)/motorola/kernel/modules/drivers/power/mmi_pl_chg_manager
|
||||
|
||||
obj-m += mmi_pl_chg_manager.o
|
||||
11
drivers/power/mmi_pl_chg_manager/Makefile
Normal file
11
drivers/power/mmi_pl_chg_manager/Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS)
|
||||
|
||||
modules_install:
|
||||
$(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install
|
||||
|
||||
clean:
|
||||
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
|
||||
|
||||
2020
drivers/power/mmi_pl_chg_manager/mmi_pl_chg_manager.c
Normal file
2020
drivers/power/mmi_pl_chg_manager/mmi_pl_chg_manager.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue