mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
enable support CS47L35 dynamically.
Change-Id: I5720f102a0be1d71a573aec8565d98693c126afb Signed-off-by: huangys <huangys@motorola.com> Reviewed-on: https://gerrit.mot.com/1159925 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
38c2d139aa
commit
5fdd35cce4
2 changed files with 12 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
|||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
EXTRA_CFLAGS += -DCONFIG_MADERA_IRQ_CS47L90
|
||||
|
||||
ifeq ($(CONFIG_ARCH_SDM450), y)
|
||||
EXTRA_CFLAGS += -DCONFIG_MADERA_IRQ_CS47L35
|
||||
cirrus_irq-madera-objs = irq-madera.o irq-madera-cs47l35.o
|
||||
else
|
||||
EXTRA_CFLAGS += -DCONFIG_MADERA_IRQ_CS47L90
|
||||
cirrus_irq-madera-objs = irq-madera.o irq-madera-cs47l90.o
|
||||
endif
|
||||
|
||||
obj-m += cirrus_irq-madera.o
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
ifeq ($(CONFIG_ARCH_SDM450), y)
|
||||
EXTRA_CFLAGS += -DCONFIG_MFD_CS47L35
|
||||
cirrus_madera-core-objs = madera-core.o madera-spi.o madera-core.o madera-spi.o cs47l35-tables.o
|
||||
else
|
||||
EXTRA_CFLAGS += -DCONFIG_MFD_CS47L90
|
||||
|
||||
cirrus_madera-core-objs = madera-core.o madera-spi.o madera-core.o madera-spi.o cs47l90-tables.o
|
||||
endif
|
||||
|
||||
obj-m += cirrus_madera-core.o
|
||||
|
|
|
|||
Loading…
Reference in a new issue