mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
FG: Add mm8013c driver code
add mm8013 origin drive code. this code provided by the Misumi Change-Id: I7527eb0662f3f8fed5cfd3a61b64745082ce5674 Signed-off-by: liuyc20 <liuyc20@lenovo.com> Reviewed-on: https://gerrit.mot.com/2205106 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Reviewed-by: Yuecai Liu <liuyc20@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c16859fba6
commit
2c1dea4c10
4 changed files with 1031 additions and 0 deletions
8
drivers/power/mm8013c_fg_mmi/Android.mk
Normal file
8
drivers/power/mm8013c_fg_mmi/Android.mk
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
DLKM_DIR := motorola/kernel/modules
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := mm8013c_fg_mmi.ko
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
||||
include $(DLKM_DIR)/AndroidKernelModule.mk
|
||||
7
drivers/power/mm8013c_fg_mmi/Kbuild
Normal file
7
drivers/power/mm8013c_fg_mmi/Kbuild
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# 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/mm8013c_fg_mmi
|
||||
|
||||
mm8013c_fg_mmi-objs += mm8013c_battery.o
|
||||
obj-m += mm8013c_fg_mmi.o
|
||||
11
drivers/power/mm8013c_fg_mmi/Makefile
Normal file
11
drivers/power/mm8013c_fg_mmi/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
|
||||
|
||||
1005
drivers/power/mm8013c_fg_mmi/mm8013c_battery.c
Normal file
1005
drivers/power/mm8013c_fg_mmi/mm8013c_battery.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue