mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
power: qpnp-smbcharger-mmi: Add Initial MMI Charging driver
Add the dlkm for mmi control over the qcom smb charger. This initial drop only gives access to the factory interfaces but over time will be granted more control over total system charging. Change-Id: I408a4e36dab976697d1f98499bf33b6378deaf96 Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com> Reviewed-on: https://gerrit.mot.com/1200750 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3634bf64d3
commit
94e2472fb0
4 changed files with 1091 additions and 0 deletions
9
drivers/power/qpnp-smbcharger-mmi/Android.mk
Executable file
9
drivers/power/qpnp-smbcharger-mmi/Android.mk
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
DLKM_DIR := motorola/kernel/modules
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := qpnp-smbcharger-mmi.ko
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
||||
include $(DLKM_DIR)/AndroidKernelModule.mk
|
||||
|
||||
5
drivers/power/qpnp-smbcharger-mmi/Kbuild
Executable file
5
drivers/power/qpnp-smbcharger-mmi/Kbuild
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
|
||||
obj-m += qpnp-smbcharger-mmi.o
|
||||
10
drivers/power/qpnp-smbcharger-mmi/Makefile
Executable file
10
drivers/power/qpnp-smbcharger-mmi/Makefile
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
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
|
||||
1067
drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c
Executable file
1067
drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c
Executable file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue