[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/os/linux/linux-3.4.x/drivers/slic/Makefile b/ap/os/linux/linux-3.4.x/drivers/slic/Makefile
new file mode 100644
index 0000000..280e7e7
--- /dev/null
+++ b/ap/os/linux/linux-3.4.x/drivers/slic/Makefile
@@ -0,0 +1,95 @@
+ifeq ($(CONFIG_SI3217X),y)
+SI3217X_SUPPORT=y
+SILAB_SUPPORT_LCQC=y
+endif
+ifeq ($(CONFIG_SI3217X),m)
+SI3217X_SUPPORT=y
+SILAB_SUPPORT_LCQC=y
+endif
+
+ifeq ($(CONFIG_SI3218X),y)
+SI3218X_SUPPORT=y
+SILAB_SUPPORT_LCQC=y
+SI3218X_SPI_SELECT_STDSPI=y
+endif
+ifeq ($(CONFIG_SI3218X),m)
+SI3218X_SUPPORT=y
+SILAB_SUPPORT_LCQC=y
+SI3218X_SPI_SELECT_STDSPI=y
+endif
+
+obj-$(CONFIG_SI3217X)        +=slic.o 
+obj-$(CONFIG_SI3218X)        +=slic.o
+
+EXTRA_CFLAGS += -Wno-format-extra-args -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function
+EXTRA_CFLAGS += -Wno-format -Wno-return-type -Wno-strict-prototypes -Wno-unused -Wno-implicit -D__KERNEL__ -DLINUX_KERNEL
+
+DRV_OBJS = $(MOD_NMAE).o
+
+ccflags-y+= -Idrivers/slic/si_lib/include
+ccflags-y+= -Idrivers/slic/
+ccflags-y+= -Idrivers/slic/silicon_mlt/include
+#ccflags-y += -I$(TOPDIR_AP)/../pub/project/zx297520v3/include/drv
+#ccflags-y += -I$(TOPDIR_AP)/../pub/project/zx297520v3/include/nv
+ccflags-y += -I$(TOPDIR_AP)/../cp/ps/driver/inc/misc
+ccflags-y += -I$(TOPDIR_AP)/os/linux/linux-3.4.x/sound/soc/sanechips
+ccflags-y += -I$(TOPDIR_AP)/os/linux/linux-3.4.x/include/linux
+
+SRC = si_lib/source
+MLT_SRC = silicon_mlt/source
+
+slic-objs := $(SRC)/spi_adt.o \
+                    $(SRC)/proslic.o \
+                    $(SRC)/si_voice.o \
+                    $(SRC)/si_voice_version.o \
+                    $(SRC)/timer_adt.o \
+                    $(MLT_SRC)/proslic_mlt.o \
+                    $(MLT_SRC)/proslic_mlt_dcfeed.o \
+                    $(MLT_SRC)/proslic_mlt_diag_madc.o \
+                    $(MLT_SRC)/proslic_mlt_math.o \
+                    $(MLT_SRC)/proslic_mlt_version.o \
+                    usr_line.o \
+                    si_adt.o
+
+ifeq ($(SI3217X_SUPPORT),y)
+EXTRA_CFLAGS += -DSI3217X_SUPPORT
+EXTRA_CFLAGS += -DSILAB_SUPPORT_LCQC
+
+slic-objs += $(SRC)/si3217x_MULTI_BOM_constants.o \
+                    $(SRC)/si3217x_patch_B_BB_2012DEC10.o \
+                    $(SRC)/si3217x_patch_B_FB_2012DEC10.o \
+                    $(SRC)/si3217x_patch_C_FB_2014JUN18.o \
+                    $(SRC)/si3217x_revb_intf.o \
+                    $(SRC)/si3217x_revc_intf.o \
+                    $(SRC)/si3217x_intf.o \
+		    $(MLT_SRC)/si3217x_mlt.o \
+                    $(SRC)/vdaa.o \
+                    $(SRC)/vdaa_constants.o
+
+endif
+
+ifeq ($(SI3218X_SUPPORT),y)
+EXTRA_CFLAGS += -DSI3218X_SUPPORT
+EXTRA_CFLAGS += -DSILAB_SUPPORT_LCQC
+
+slic-objs += $(SRC)/si3218x_MULTI_BOM_constants.o \
+                    $(SRC)/si3218x_patch_A_2016DEC06.o \
+                    $(SRC)/si3218x_intf.o \
+		    $(MLT_SRC)/si3218x_mlt.o \
+                    $(SRC)/vdaa.o \
+                    $(SRC)/vdaa_constants.o
+
+endif
+ifeq ($(SI3218X_SPI_SELECT_STDSPI),y)
+EXTRA_CFLAGS += -DUSE_STD_SPI_SLIC
+else
+EXTRA_CFLAGS += -DUSE_GPIO_SPI_SLIC
+
+endif
+
+ifeq ($(CHIP_TYPE),zx297520v3)
+EXTRA_CFLAGS += -DUSE_SLIC_ON_7520V3
+else
+EXTRA_CFLAGS += -DUSE_SLIC_ON_7520V2
+endif
+