MT6620: add the new driver JB2 V1.0
[firefly-linux-kernel-4.4.55.git] / drivers / mtk_wcn_combo / common / Makefile
1 #ccflags-y += -I$(src)/core/include
2 ccflags-y += -I$(src)/linux/include -I$(src)/core/include -I$(src)/include -I$(src)/
3 ccflags-y += -DWMT_PLAT_APEX=1
4 ccflags-y += -DWMT_PLAT_ALPS=0
5 ccflags-y += -DWMT_UART_RX_MODE_WORK=1 # 1. work thread 0. tasklet
6 #ifeq ($(MTK_COMBO_CHIP), MT6628)
7 #EXT_FLAG=
8 #else
9 #EXT_FLAG=_mt6628
10 #endif
11 EXT_FLAG=
12 COMMON_SRC_PATH := $(src)
13 COMMON_OBJ_PATH := $(src)
14
15 # WMT DRIVER
16 obj-$(CONFIG_MTK_COMBO_COMM) += mtk_stp_wmt$(EXT_FLAG).o
17 # WMT DRIVER-core part
18 mtk_stp_wmt$(EXT_FLAG)-objs     := core/wmt_core.o core/wmt_ctrl.o  core/wmt_func.o core/wmt_ic_6620.o core/wmt_lib.o core/wmt_conf.o core/wmt_dbg.o core/wmt_exp.o
19
20 #ifeq ($(MTK_COMBO_CHIP), MT6628)
21 mtk_stp_wmt$(EXT_FLAG)-objs     += core/wmt_ic_6628.o
22 #endif
23 # WMT DRIVER-linux private part
24 mtk_stp_wmt$(EXT_FLAG)-objs     += linux/wmt_dev.o
25 mtk_stp_wmt$(EXT_FLAG)-objs     += linux/wmt_tm.o
26
27 # WMT DRIVER-OSAL
28 mtk_stp_wmt$(EXT_FLAG)-objs     += linux/osal.o
29 # WMT DRIVER-platform implementation
30 #ccflags-y += -D WMT_PLAT_ALPS #Jake modify
31
32 # WMT DRIVER-platform part, specified by string CONFIG_MTK_COMBO_PLAT_PATH
33 PLAT := $(shell echo $(CONFIG_MTK_COMBO_PLAT_PATH))
34
35
36
37 #obj-y += platform/$(PLAT)/mtk_wcn_cmb_stub_$(PLAT).o
38 mtk_stp_wmt$(EXT_FLAG)-objs     += platform/$(PLAT)/wmt_plat_$(PLAT).o
39 mtk_stp_wmt$(EXT_FLAG)-objs     += platform/$(PLAT)/wmt_plat_stub.o
40
41 # FIXME: select desired hw according to project configuration
42 #ifeq ($(MTK_COMBO_CHIP), MT6628)
43 #mtk_stp_wmt$(EXT_FLAG)-objs    += platform/alps/mtk_wcn_cmb_hw_6628.o 
44 #else
45 mtk_stp_wmt$(EXT_FLAG)-objs     += platform/$(PLAT)/mtk_wcn_cmb_hw.o
46 #endif
47
48 mtk_stp_wmt$(EXT_FLAG)-objs     += core/stp_exp.o core/stp_core.o core/psm_core.o core/btm_core.o linux/stp_dbg.o
49 #ifeq ($(MTK_COMBO_CHIP), MT6628)
50 # WMT stub part (built-in kernel image)
51 obj-y                   += platform/$(PLAT)/mtk_wcn_cmb_stub_$(PLAT).o
52 #endif
53
54 obj-$(CONFIG_MTK_COMBO_COMM_UART) += mtk_stp_uart$(EXT_FLAG).o
55 mtk_stp_uart$(EXT_FLAG)-objs    := linux/stp_uart.o
56
57
58 obj-$(CONFIG_MTK_COMBO_COMM) += mtk_hif_sdio$(EXT_FLAG).o
59 mtk_hif_sdio$(EXT_FLAG)-objs    := linux/hif_sdio.o
60 mtk_hif_sdio$(EXT_FLAG)-objs    += linux/hif_sdio_chrdev.o
61 mtk_hif_sdio$(EXT_FLAG)-objs    += platform/$(PLAT)/mtk_wcn_cmb_hw.o
62 mtk_hif_sdio$(EXT_FLAG)-objs    += platform/$(PLAT)/wmt_plat_$(PLAT).o
63 mtk_hif_sdio$(EXT_FLAG)-objs    += linux/osal.o
64
65
66 # obj-$(CONFIG_MTK_COMBO) += mtk_stp_sdio$(EXT_FLAG).o
67 # mtk_stp_sdio$(EXT_FLAG)-objs  := linux/stp_sdio.o
68 # mtk_stp_sdio$(EXT_FLAG)-objs  += linux/osal.o
69
70
71 obj-$(CONFIG_MTK_COMBO_BT) += mtk_stp_bt$(EXT_FLAG).o
72 mtk_stp_bt$(EXT_FLAG)-objs              := linux/stp_chrdev_bt.o
73
74 obj-$(CONFIG_MTK_COMBO_GPS) += mtk_stp_gps$(EXT_FLAG).o
75 mtk_stp_gps$(EXT_FLAG)-objs     := linux/stp_chrdev_gps.o
76
77
78 obj-$(CONFIG_MTK_COMBO_WIFI) += mtk_wmt_wifi$(EXT_FLAG).o
79 mtk_wmt_wifi$(EXT_FLAG)-objs       := linux/wmt_chrdev_wifi.o