summaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/combo_mt66xx
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-13 15:08:24 +0530
committerSrikant Patnaik2015-01-13 15:08:24 +0530
commit97327692361306d1e6259021bc425e32832fdb50 (patch)
treefe9088f3248ec61e24f404f21b9793cb644b7f01 /drivers/misc/mediatek/combo_mt66xx
parent2d05a8f663478a44e088d122e0d62109bbc801d0 (diff)
parenta3a8b90b61e21be3dde9101c4e86c881e0f06210 (diff)
downloadFOSSEE-netbook-kernel-source-97327692361306d1e6259021bc425e32832fdb50.tar.gz
FOSSEE-netbook-kernel-source-97327692361306d1e6259021bc425e32832fdb50.tar.bz2
FOSSEE-netbook-kernel-source-97327692361306d1e6259021bc425e32832fdb50.zip
dirty fix to merging
Diffstat (limited to 'drivers/misc/mediatek/combo_mt66xx')
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/Kconfig35
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/Makefile39
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/bt/Makefile41
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/bt/uhid/Makefile46
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/fm/Makefile72
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/fm/private/Makefile44
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/gps/Makefile50
-rwxr-xr-xdrivers/misc/mediatek/combo_mt66xx/wmt/Makefile78
8 files changed, 405 insertions, 0 deletions
diff --git a/drivers/misc/mediatek/combo_mt66xx/Kconfig b/drivers/misc/mediatek/combo_mt66xx/Kconfig
new file mode 100755
index 00000000..148f0505
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/Kconfig
@@ -0,0 +1,35 @@
+menuconfig MTK_COMBO_MT66XX
+ bool "MediaTek combo_mt66xx Config"
+ help
+ Config MTK combo chip mt6628&mt6620
+
+if MTK_COMBO_MT66XX
+
+config MTK_COMBO_WMT
+ tristate "MediaTek Combo Chip wireless managment tool"
+ default y
+ help
+ MTK wireless managment tool for WIFI/BT/GPS/FM
+
+config MTK_COMBO_BT
+ tristate "MediaTek Combo Chip BT driver"
+ default y
+ #depends on MTK_COMBO_WMT
+ help
+ MTK BT /dev/stpbt driver for Bluedroid (mtk_stp_bt.ko)
+
+config MTK_COMBO_FM
+ tristate "MediaTek Combo Chip FM driver"
+ default y
+ #depends on MTK_COMBO_WMT
+ help
+ MTK FM /dev/fm driver
+
+config MTK_COMBO_GPS
+ tristate "MediaTek GPS Support"
+ default y
+ #depends on MTK_COMBO_WMT
+ help
+ MTK GPS /dev/gps driver (mtk_gps.ko)
+
+endif
diff --git a/drivers/misc/mediatek/combo_mt66xx/Makefile b/drivers/misc/mediatek/combo_mt66xx/Makefile
new file mode 100755
index 00000000..586fc7a6
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/Makefile
@@ -0,0 +1,39 @@
+# Copyright Statement:
+#
+# This software/firmware and related documentation ("MediaTek Software") are
+# protected under relevant copyright laws. The information contained herein
+# is confidential and proprietary to MediaTek Inc. and/or its licensors.
+# Without the prior written permission of MediaTek inc. and/or its licensors,
+# any reproduction, modification, use or disclosure of MediaTek Software,
+# and information contained herein, in whole or in part, shall be strictly prohibited.
+#
+# MediaTek Inc. (C) 2010. All rights reserved.
+#
+# BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+# THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+# RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
+# AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+# NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+# SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+# SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
+# THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
+# THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
+# CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
+# SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
+# STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
+# CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+# AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+# OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
+# MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+#
+# The following software/firmware and/or related documentation ("MediaTek Software")
+# have been modified by MediaTek Inc. All revisions are subject to any receiver's
+# applicable license agreements with MediaTek Inc.
+
+#obj-y += wmt/
+#obj-y += fm/
+#obj-y += bt/
+#obj-y += gps/
+
diff --git a/drivers/misc/mediatek/combo_mt66xx/bt/Makefile b/drivers/misc/mediatek/combo_mt66xx/bt/Makefile
new file mode 100755
index 00000000..e94d4c72
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/bt/Makefile
@@ -0,0 +1,41 @@
+# Copyright Statement:
+#
+# This software/firmware and related documentation ("MediaTek Software") are
+# protected under relevant copyright laws. The information contained herein
+# is confidential and proprietary to MediaTek Inc. and/or its licensors.
+# Without the prior written permission of MediaTek inc. and/or its licensors,
+# any reproduction, modification, use or disclosure of MediaTek Software,
+# and information contained herein, in whole or in part, shall be strictly prohibited.
+#
+# MediaTek Inc. (C) 2010. All rights reserved.
+#
+# BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+# THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+# RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
+# AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+# NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+# SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+# SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
+# THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
+# THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
+# CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
+# SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
+# STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
+# CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+# AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+# OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
+# MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+#
+# The following software/firmware and/or related documentation ("MediaTek Software")
+# have been modified by MediaTek Inc. All revisions are subject to any receiver's
+# applicable license agreements with MediaTek Inc.
+
+
+#
+# Makefile for the Linux Bluetooth HCI device drivers.
+#
+
+#obj-y += uhid/
+
diff --git a/drivers/misc/mediatek/combo_mt66xx/bt/uhid/Makefile b/drivers/misc/mediatek/combo_mt66xx/bt/uhid/Makefile
new file mode 100755
index 00000000..f2e00c9d
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/bt/uhid/Makefile
@@ -0,0 +1,46 @@
+# Copyright Statement:
+#
+# This software/firmware and related documentation ("MediaTek Software") are
+# protected under relevant copyright laws. The information contained herein
+# is confidential and proprietary to MediaTek Inc. and/or its licensors.
+# Without the prior written permission of MediaTek inc. and/or its licensors,
+# any reproduction, modification, use or disclosure of MediaTek Software,
+# and information contained herein, in whole or in part, shall be strictly prohibited.
+
+# MediaTek Inc. (C) 2010. All rights reserved.
+#
+# BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+# THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+# RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
+# AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+# NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+# SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+# SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
+# THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
+# THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
+# CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
+# SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
+# STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
+# CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+# AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+# OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
+# MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+#
+# The following software/firmware and/or related documentation ("MediaTek Software")
+# have been modified by MediaTek Inc. All revisions are subject to any receiver's
+# applicable license agreements with MediaTek Inc.
+
+
+#
+# Makefile for the Bluetooth UHID driver.
+#
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+
+obj-y += bt_uhid.o
+
+# EOF
diff --git a/drivers/misc/mediatek/combo_mt66xx/fm/Makefile b/drivers/misc/mediatek/combo_mt66xx/fm/Makefile
new file mode 100755
index 00000000..11c3ca61
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/fm/Makefile
@@ -0,0 +1,72 @@
+# Makefile generated by Mediatek
+CONFIG_MTK_COMBO_FM:=m
+#mt6628 fm
+ccflags-y += -I$(src)/inc \
+ -I$(src)/mt6628/inc \
+ -I$(src)/../wmt/include \
+ -I$(src)/../wmt/linux/include \
+ -I$(src)/cust/mt6628 \
+ -I$(src)/private/inc \
+ -DMT6628_FM
+
+obj-$(CONFIG_MTK_COMBO_FM) += mtk_fm_drv.o
+ mtk_fm_drv-objs += core/fm_module.o \
+ core/fm_main.o \
+ core/fm_config.o \
+ core/fm_rds_parser.o \
+ core/fm_patch.o \
+ core/fm_utils.o \
+ core/fm_link.o \
+ core/fm_eint.o \
+ mt6628/pub/mt6628_fm_lib.o \
+ mt6628/pub/mt6628_fm_rds.o \
+ mt6628/pub/mt6628_fm_cmd.o \
+ mt6628/pub/mt6628_fm_config.o
+#mt6620 fm start
+ ccflags-y += -I$(src)/inc \
+ -I$(src)/mt6620/inc \
+ -I$(src)/../wmt/include \
+ -I$(src)/../wmt/linux/include \
+ -I$(src)/cust/mt6620 \
+ -I$(src)/private/inc \
+ -DMT6620_FM
+
+ obj-$(CONFIG_MTK_COMBO_FM) += mtk_fm_drv.o
+ mtk_fm_drv-objs += core/fm_module.o \
+ core/fm_main.o \
+ core/fm_config.o \
+ core/fm_rds_parser.o \
+ core/fm_patch.o \
+ core/fm_utils.o \
+ core/fm_link.o \
+ core/fm_eint.o \
+ mt6620/pub/mt6620_fm_lib.o \
+ mt6620/pub/mt6620_fm_rds.o \
+ mt6620/pub/mt6620_fm_cmd.o \
+ mt6620/pub/mt6620_fm_config.o
+
+# MT6626 FM driver
+ifeq ($(CONFIG_MTK_COMBO_CHIP_MT6626), y)
+FM_CHIP = mt6626
+FM_CHIP_PATH = $(FM_CHIP)/pub/$(FM_CHIP)
+ccflags-y := -I$(src)/inc \
+ -I$(src)/$(FM_CHIP)/inc \
+ -I$(src)/cust/$(FM_CHIP) \
+ -I$(src)/private/inc \
+ -DMT6626_FM
+
+obj-$(CONFIG_MTK_COMBO_FM) += mtk_fm_drv.o
+mtk_fm_drv-objs := core/fm_module.o \
+ core/fm_main.o \
+ core/fm_config.o \
+ core/fm_patch.o \
+ core/fm_rds_parser.o \
+ core/fm_utils.o \
+ core/fm_link.o \
+ $(FM_CHIP_PATH)_fm_lib.o \
+ $(FM_CHIP_PATH)_fm_rds.o \
+ $(FM_CHIP_PATH)_fm_link.o \
+ $(FM_CHIP_PATH)_fm_eint.o
+endif
+
+
diff --git a/drivers/misc/mediatek/combo_mt66xx/fm/private/Makefile b/drivers/misc/mediatek/combo_mt66xx/fm/private/Makefile
new file mode 100755
index 00000000..1a8e7960
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/fm/private/Makefile
@@ -0,0 +1,44 @@
+# Makefile generated by Mediatek
+
+# fm support
+ifeq ($(MTK_FM_SUPPORT), yes)
+
+ifeq ($(CUSTOM_KERNEL_FM), mt6628)
+PRIV_CHIP = mt6628
+PRIV_SRC_PATH = private/src/$(PRIV_CHIP)
+PRIV_CONFIG = $(CONFIG_MTK_FM)
+
+ccflags-y := \
+ -I$(src)/inc \
+ -I$(src)/$(PRIV_SRC_PATH) \
+ -I$(src)/../inc \
+ -I$(src)/../cust/$(PRIV_CHIP) \
+ -I$(src)/../../combo/common_mt6628/include \
+ -I$(src)/../../combo/common_mt6628/linux/include
+
+
+obj-$(PRIV_CONFIG) += mtk_fm_priv.o
+mtk_fm_priv-objs := \
+ src/$(PRIV_CHIP)/$(PRIV_CHIP)_fm_private.o
+endif
+
+ifeq ($(CUSTOM_KERNEL_FM), mt6620)
+PRIV_CHIP = mt6620
+PRIV_SRC_PATH = private/src/$(PRIV_CHIP)
+PRIV_CONFIG = $(CONFIG_MTK_FM)
+
+ccflags-y := \
+ -I$(src)/inc \
+ -I$(src)/$(PRIV_SRC_PATH) \
+ -I$(src)/../inc \
+ -I$(src)/../cust/$(PRIV_CHIP) \
+ -I$(src)/../../combo/common/include \
+ -I$(src)/../../combo/common/linux/include
+
+
+obj-$(PRIV_CONFIG) += mtk_fm_priv.o
+mtk_fm_priv-objs := \
+ src/$(PRIV_CHIP)/$(PRIV_CHIP)_fm_private.o
+endif
+
+endif
diff --git a/drivers/misc/mediatek/combo_mt66xx/gps/Makefile b/drivers/misc/mediatek/combo_mt66xx/gps/Makefile
new file mode 100755
index 00000000..19d0d43a
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/gps/Makefile
@@ -0,0 +1,50 @@
+# Copyright Statement:
+#
+# This software/firmware and related documentation ("MediaTek Software") are
+# protected under relevant copyright laws. The information contained herein
+# is confidential and proprietary to MediaTek Inc. and/or its licensors.
+# Without the prior written permission of MediaTek inc. and/or its licensors,
+# any reproduction, modification, use or disclosure of MediaTek Software,
+# and information contained herein, in whole or in part, shall be strictly prohibited.
+
+# MediaTek Inc. (C) 2010. All rights reserved.
+#
+# BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+# THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+# RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
+# AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+# NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+# SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+# SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
+# THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
+# THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
+# CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
+# SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
+# STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
+# CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+# AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+# OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
+# MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+#
+# The following software/firmware and/or related documentation ("MediaTek Software")
+# have been modified by MediaTek Inc. All revisions are subject to any receiver's
+# applicable license agreements with MediaTek Inc.
+
+
+# drivers/barcelona/gps/Makefile
+#
+# Makefile for the Barcelona GPS driver.
+#
+# Copyright (C) 2004,2005 TomTom BV <http://www.tomtom.com/>
+# Author: Dimitry Andric <dimitry.andric@tomtom.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+
+obj-y += gps.o
+
+
+# EOF
diff --git a/drivers/misc/mediatek/combo_mt66xx/wmt/Makefile b/drivers/misc/mediatek/combo_mt66xx/wmt/Makefile
new file mode 100755
index 00000000..64e0b362
--- /dev/null
+++ b/drivers/misc/mediatek/combo_mt66xx/wmt/Makefile
@@ -0,0 +1,78 @@
+MTK_WCN_CMB_SDIO_EINT := y
+CONFIG_MTK_COMBO_WMT:=m
+CONFIG_MTK_COMBO_BT:=m
+CONFIG_MTK_COMBO_GPS:=m
+
+ccflags-y += -I$(src)/linux/include -I$(src)/core/include -I$(src)/include -I$(src)/
+ccflags-y += -DWMT_PLAT_APEX=1
+ccflags-y += -DWMT_PLAT_ALPS=0
+ccflags-y += -DWMT_UART_RX_MODE_WORK=1 # 1. work thread 0. tasklet
+ccflags-y += -DREMOVE_MK_NODE=1
+ifeq ($(strip $(MTK_WCN_CMB_SDIO_EINT)), y)
+ccflags-y += -DMTK_CMB_SDIO_EINT
+endif
+
+#stub to build-in
+obj-y += platform/vendor/mtk_wcn_cmb_stub.o
+
+#Common SDIO driver for WIFI and STP(mtk_hif_sdio.ko)
+obj-$(CONFIG_MTK_COMBO_WMT) += mtk_hif_sdio.o
+mtk_hif_sdio-objs := linux/hif_sdio.o \
+ linux/hif_sdio_chrdev.o \
+ linux/osal.o
+
+ifeq ($(MTK_WCN_CMB_SDIO_EINT), y)
+mtk_hif_sdio-objs += linux/hif_sdio_eint.o
+endif
+
+# WMT/STP DRIVER(mtk_stp_wmt.ko)
+obj-$(CONFIG_MTK_COMBO_WMT) += mtk_stp_wmt.o
+mtk_stp_wmt-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 \
+ core/wmt_ic_6628.o \
+ linux/wmt_dev.o \
+ linux/wmt_tm.o \
+ platform/vendor/wmt_plat.o \
+ platform/vendor/wmt_plat_stub.o \
+ platform/vendor/mtk_wcn_cmb_hw.o \
+ core/stp_exp.o \
+ core/stp_core.o \
+ core/psm_core.o \
+ core/btm_core.o \
+ linux/stp_dbg.o
+ifeq ($(CONFIG_MTK_COMBO_WMT), m)
+mtk_stp_wmt-objs += linux/osal.o
+endif
+
+#WMT/STP use UART interface(mtk_stp_uart.ko)
+obj-$(CONFIG_MTK_COMBO_WMT) += mtk_stp_uart.o
+mtk_stp_uart-objs := linux/stp_uart.o
+
+#WMT/STP use SDIO interface(mtk_stp_sdio.ko)
+obj-$(CONFIG_MTK_COMBO_WMT) += mtk_stp_sdio.o
+mtk_stp_sdio-objs := linux/stp_sdio.o \
+
+ifeq ($(CONFIG_MTK_COMBO_WMT), m)
+mtk_stp_sdio-objs += linux/osal.o
+endif
+
+#BT character device driver
+obj-$(CONFIG_MTK_COMBO_BT) += mtk_stp_bt.o
+mtk_stp_bt-objs := linux/stp_chrdev_bt.o
+
+#GPS character device driver
+obj-$(CONFIG_MTK_COMBO_GPS) += mtk_stp_gps.o
+mtk_stp_gps-objs := linux/stp_chrdev_gps.o
+
+#WIFI character device driver
+obj-$(CONFIG_MTK_COMBO_WIFI) += mtk_wmt_wifi.o
+mtk_wmt_wifi-objs := linux/wmt_chrdev_wifi.o
+
+#FM don't need such character device
+