You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

616 lines
25 KiB

###############################################################################
# export variables
###############################################################################
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved5")
chip_dir = reserved5
else ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved9")
chip_dir = reserved9
else ifeq ($(CONFIG_SOCT_CHIP_TYPE), "hi3751v811")
chip_dir = hi3751v811
else
chip_dir = reserved19
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved5")
atv_chip_dir = reserved5
else ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved9")
atv_chip_dir = reserved9
else ifeq ($(CONFIG_SOCT_CHIP_REVERSION), "reserved19_c")
atv_chip_dir = reserved19_c
else ifeq ($(CONFIG_SOCT_CHIP_REVERSION), "hi3751v811_c")
atv_chip_dir = hi3751v811_c
else
atv_chip_dir = reserved19
endif
ccflags-y += -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-all
## header search path
ccflags-y += -Idrivers/drv/ioctl_inc/generic
ccflags-y += -Idrivers/drv/ioctl_inc/tvd
ccflags-y += -Idrivers/drv/ioctl_inc/common
ccflags-y += -Idrivers/drv/ioctl_inc/i2c
ccflags-y += -Idrivers/drv/ioctl_inc/frontend
ccflags-y += -Idrivers/drv/ioctl_inc/gpio
ccflags-y += -Idrivers/drv/ioctl_inc/video
ccflags-y += -Idrivers/drv/ext_inc/base
ccflags-y += -Idrivers/drv/ext_inc/osal
ccflags-y += -Idrivers/drv/ext_inc/frontend
ccflags-y += -Idrivers/drv/ext_inc/common
ccflags-y += -Idrivers/drv/ext_inc/gpio
ccflags-y += -Idrivers/drv/ext_inc/tvd
ccflags-y += -Idrivers/drv/ext_inc/i2c
ccflags-y += -Idrivers/drv/ext_inc/dftevent
ccflags-y += -Idrivers/drv/common/include
ccflags-y += -Idrivers/drv/frontend
ccflags-y += -Idrivers/drv/frontend/common/math
ccflags-y += -Idrivers/drv/frontend/common/i2c
ccflags-y += -Idrivers/drv/frontend/common/time
ccflags-y += -Idrivers/drv/frontend/common/mem
ccflags-y += -Idrivers/drv/frontend/demod/fe3130v200
#################### base #####################
MODNAME := soc_frontend
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
obj-$(CONFIG_SOCT_FRONTEND_SUPPORT) += $(MODNAME).o
else
obj-m += $(MODNAME).o
endif
$(MODNAME)-objs-y := drv_frontend_intf.o
$(MODNAME)-objs-y += drv_frontend_ctrl.o
$(MODNAME)-objs-y += drv_frontend_dts.o
$(MODNAME)-objs-y += drv_frontend_fmea.o
$(MODNAME)-objs-y += drv_frontend_proc.o
$(MODNAME)-objs-y += common/math/drv_fe_math.o
$(MODNAME)-objs-y += common/i2c/drv_fe_i2c.o
$(MODNAME)-objs-y += common/time/drv_fe_time.o
$(MODNAME)-objs-y += common/mem/drv_fe_mem.o
############### demod type config #############
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_CXD2878_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_CXD2878 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_CXD2878_TER),y)
CONFIG_SOCT_DEMOD_TYPE_CXD2878 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_CXD2878_SAT),y)
CONFIG_SOCT_DEMOD_TYPE_CXD2878 = y
endif
frontend_dir := $(srctree)/drivers/drv/frontend
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_CXD2878),y)
ccflags-y += -Idrivers/drv/frontend/demod/cxd2878
ccflags-y += -Idrivers/drv/frontend/demod/cxd2878/i2c/adp_sony_i2c
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/i2c
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/dvb_terr
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/dvb_cable
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/dvb_sat
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/sat_device_ctrl
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/sat_device_ctrl/lnb_controller
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/atsc
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/isdb_terr
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/isdb_cable
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/isdb_sat
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/j83b
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/tuner
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/tuner/terr_cable_ascot3
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/tuner/terr_cable_ascot3/refcode
ccflags-y += -Idrivers/drv/frontend/development/demod/cxd2878/lib
ccflags-y += -DSONY_DRIVER_BUILD_OPTION_CXD2878
ccflags-y += -DDEMOD_DEV_TYPE_CXD2878
$(MODNAME)-objs-y += demod/cxd2878/cxd2878.o
$(MODNAME)-objs-y += demod/cxd2878/i2c/adp_sony_i2c/adp_sony_i2c.o
$(MODNAME)-objs-y += development/demod/cxd2878/sony_stopwatch_port.o
$(MODNAME)-objs-y += development/demod/cxd2878/lib/sony_math.o
$(MODNAME)-objs-y += development/demod/cxd2878/sony_demod.o
$(MODNAME)-objs-y += development/demod/cxd2878/sony_integ.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_sat/sony_integ_dvbs_s2.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_sat/sony_demod_dvbs_s2_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_sat/sony_demod_dvbs_s2.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_terr/sony_demod_isdbt.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_terr/sony_integ_isdbt.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_terr/sony_demod_isdbt_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_integ_dvbt2.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_demod_dvbt2.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_demod_dvbt.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_integ_dvbt.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_demod_dvbt2_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_integ_dvbt_t2.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_terr/sony_demod_dvbt_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/atsc/sony_demod_atsc.o
$(MODNAME)-objs-y += development/demod/cxd2878/atsc/sony_demod_atsc_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/atsc/sony_demod_atsc3.o
$(MODNAME)-objs-y += development/demod/cxd2878/atsc/sony_demod_atsc3_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/atsc/sony_demod_atsc3_chbond.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_sat/sony_integ_isdbs.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_sat/sony_demod_isdbs.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_sat/sony_demod_isdbs_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_sat/sony_demod_isdbs3.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_sat/sony_integ_isdbs3.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_sat/sony_demod_isdbs3_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/i2c/sony_i2c.o
$(MODNAME)-objs-y += development/demod/cxd2878/j83b/sony_demod_j83b.o
$(MODNAME)-objs-y += development/demod/cxd2878/j83b/sony_integ_j83b.o
$(MODNAME)-objs-y += development/demod/cxd2878/j83b/sony_demod_j83b_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/sony_common.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_cable/sony_demod_dvbc2_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_cable/sony_integ_dvbc2.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_cable/sony_demod_dvbc_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_cable/sony_demod_dvbc2.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_cable/sony_integ_dvbc.o
$(MODNAME)-objs-y += development/demod/cxd2878/dvb_cable/sony_demod_dvbc.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_cable/sony_demod_isdbc_monitor.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_cable/sony_integ_isdbc.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_cable/sony_demod_isdbc.o
$(MODNAME)-objs-y += development/demod/cxd2878/isdb_cable/sony_demod_isdbc_chbond.o
$(MODNAME)-objs-y += development/demod/cxd2878/tuner/terr_cable_ascot3/sony_tuner_ascot3.o
$(MODNAME)-objs-y += development/demod/cxd2878/tuner/terr_cable_ascot3/refcode/sony_ascot3.o
$(MODNAME)-objs-y += development/demod/cxd2878/sat_device_ctrl/sony_demod_sat_device_ctrl.o
else
CXD2878_SHADOW_DIR = demod_shadow/cxd2878
ccflags-y += -Idrivers/drv/frontend/demod_shadow/cxd2878
$(MODNAME)-objs-y += $(CXD2878_SHADOW_DIR)/cxd2878.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_MXL541),y)
ccflags-y += -Idrivers/drv/frontend/demod/mxl5xx
ccflags-y += -Idrivers/drv/frontend/thirdparty/demod/mxl5xx
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/mxl541.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_FW_Download.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_ChanBondApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_BERTApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_CommonApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_DemodTunerApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_DeviceApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_DiseqcFskApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_PhyCtrl.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_TsMuxCtrlApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl5xx/MxLWare_HYDRA_OEM_Drv.o
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/mxl5xx
$(MODNAME)-objs-y += demod_shadow/mxl5xx/mxl541.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_MXL254_MXL214),y)
ccflags-y += -Idrivers/drv/frontend/demod/mxl254
ccflags-y += -Idrivers/drv/frontend/thirdparty/demod/mxl254
$(MODNAME)-objs-y += demod/mxl254/mxl254.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_CalCtrl.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_CommonApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_DebugApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_DemodApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_OEM_Drv.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_OobApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_PhyCtrl.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_SerdesApi.o
$(MODNAME)-objs-y += thirdparty/demod/mxl254/MxL_HRCLS_XptApi.o
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/mxl254
$(MODNAME)-objs-y += demod_shadow/mxl254/mxl254.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FE3130V200),y)
ccflags-y += -DDEMOD_DEV_TYPE_FE3130
ccflags-y += -Idrivers/drv/frontend/demod/fe3130v200/dvb_c
$(MODNAME)-objs-y += demod/fe3130v200/dvb_c/drv_frontend_fe3130v200.o
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/fe3130v200/dvb_c
$(MODNAME)-objs-y += demod_shadow/fe3130v200/dvb_c/drv_frontend_fe3130v200.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_J83B),y)
ccflags-y += -DDEMOD_DEV_TYPE_J83B
ccflags-y += -Idrivers/drv/frontend/demod/fe3130v200/j83b
$(MODNAME)-objs-y += demod/fe3130v200/j83b/drv_frontend_j83b.o
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/fe3130v200/j83b
$(MODNAME)-objs-y += demod_shadow/fe3130v200/j83b/drv_frontend_j83b.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FE3138_SAT),y)
CONFIG_SOCT_DEMOD_TYPE_FE3138 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FE3138_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FE3138 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FE3138_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FE3138 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FE3138),y)
$(MODNAME)-objs-y += demod/fe3138/fe3138.o
$(MODNAME)-objs-y += demod/fe3138/mcu/fe3138_mcu.o
$(MODNAME)-objs-y += demod/fe3138/fe3138_hal.o
$(MODNAME)-objs-y += demod/fe3138/i2c/fe3138_i2c.o
$(MODNAME)-objs-y += demod/fe3138/sat/fe3138_sat_core.o
$(MODNAME)-objs-y += demod/fe3138/sat/fe3138_sat_info.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_dvbt2_core.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_dvbt2_info.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_isdbt_core.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_isdbt_info.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_atsc_core.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_atsc_info.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_ter_core.o
$(MODNAME)-objs-y += demod/fe3138/ter/fe3138_ter_info.o
$(MODNAME)-objs-y += demod/fe3138/cab/fe3138_cab_core.o
$(MODNAME)-objs-y += demod/fe3138/cab/fe3138_cab_info.o
ccflags-y += -Idrivers/drv/frontend/demod/fe3138
ccflags-y += -Idrivers/drv/frontend/demod/fe3138/mcu
ccflags-y += -Idrivers/drv/frontend/demod/fe3138/i2c
ccflags-y += -Idrivers/drv/frontend/demod/fe3138/sat
ccflags-y += -Idrivers/drv/frontend/demod/fe3138/ter
ccflags-y += -Idrivers/drv/frontend/demod/fe3138/cab
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/fe3138
$(MODNAME)-objs-y += demod_shadow/fe3138/fe3138.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_HD2312A_TER),y)
CONFIG_SOCT_DEMOD_TYPE_HD2312A = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_HD2312A),y)
ifneq ($(wildcard $(frontend_dir)/development/demod/hd2312a), )
ccflags-y += -Idrivers/drv/frontend/demod/hd2312a
ccflags-y += -Idrivers/drv/frontend/development/demod/hd2312a
$(MODNAME)-objs-y += demod/hd2312a/drv_fe_hd2312a.o
$(MODNAME)-objs-y += development/demod/hd2312a/HDIC2312.o
$(MODNAME)-objs-y += development/demod/hd2312a/HDIC2312A_User_Define.o
else
HD2312A_SHADOW_DIR = demod_shadow/hd2312a
ccflags-y += -Idrivers/drv/frontend/demod_shadow/hd2312a
$(MODNAME)-objs-y += $(HD2312A_SHADOW_DIR)/drv_fe_hd2312a.o
endif
else
HD2312A_SHADOW_DIR = demod_shadow/hd2312a
ccflags-y += -Idrivers/drv/frontend/demod_shadow/hd2312a
$(MODNAME)-objs-y += $(HD2312A_SHADOW_DIR)/drv_fe_hd2312a.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_ATBM888X_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_ATBM888X = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_ATBM888X_TER),y)
CONFIG_SOCT_DEMOD_TYPE_ATBM888X = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_ATBM888X),y)
ccflags-y += -Idrivers/drv/frontend/demod/atbm888x
ccflags-y += -Idrivers/drv/frontend/thirdparty/demod/altobeam/atbm888x
$(MODNAME)-objs-y += demod/atbm888x/drv_fe_atbm888x.o
$(MODNAME)-objs-y += thirdparty/demod/altobeam/atbm888x/atbm888x.o
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/atbm888x
$(MODNAME)-objs-y += demod_shadow/atbm888x/drv_fe_atbm888x.o
endif
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved5"),)
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
else
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = n
endif
ifeq ($(CONFIG_CHIP_TYPE_RESERVED17),y)
ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "reserved17_d"),)
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
endif
endif
ifeq ($(CONFIG_CHIP_TYPE_RESERVED19),y)
ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "reserved19_b"),)
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
else ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "reserved19_c"),)
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
else
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = y
endif
endif
else ifeq ($(CONFIG_CHIP_TYPE_HI3751V811),y)
ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "hi3751v811_c"),)
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV200 = y
endif
else
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = y
endif
endif
else
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = n
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FEDTV200),y)
$(MODNAME)-objs-y += demod/fedtv200/drv_frontend_fedtv200.o
$(MODNAME)-objs-y += demod/fedtv200/mcu/drv_frontend_fedtv200_mcu.o
$(MODNAME)-objs-y += demod/fedtv200/i2c/drv_frontend_fedtv200_i2c.o
$(MODNAME)-objs-y += demod/fedtv200/hal/$(chip_dir)/drv_frontend_fedtv200_hal.o
$(MODNAME)-objs-y += demod/fedtv200/ter/drv_frontend_fedtv200_dtmb_core.o
$(MODNAME)-objs-y += demod/fedtv200/ter/drv_frontend_fedtv200_dtmb_info.o
$(MODNAME)-objs-y += demod/fedtv200/ter/drv_frontend_fedtv200_ter_core.o
$(MODNAME)-objs-y += demod/fedtv200/ter/drv_frontend_fedtv200_ter_info.o
$(MODNAME)-objs-y += demod/fedtv200/cab/drv_frontend_fedtv200_cab_core.o
$(MODNAME)-objs-y += demod/fedtv200/cab/drv_frontend_fedtv200_cab_info.o
$(MODNAME)-objs-y += demod/fedtv200/fpga/drv_frontend_fedtv200_fpga.o
$(MODNAME)-objs-y += demod/fedtv200/sampleData/drv_frontend_fedtv200_sample_data.o
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/hal/$(chip_dir)
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/mcu/$(chip_dir)
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/cab/mcu/$(chip_dir)
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/mcu
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/i2c
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/ter/inc
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/cab
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/fpga
ccflags-y += -Idrivers/drv/frontend/demod/fedtv200/sampleData
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/fedtv200
$(MODNAME)-objs-y += demod_shadow/fedtv200/drv_frontend_fedtv200.o
endif
ifeq ($(CONFIG_CHIP_RESERVED17),y)
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_TER),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = y
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_INTERNAL0_CAB),y)
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = y
endif
else
CONFIG_SOCT_DEMOD_TYPE_FEDTV210 = n
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_FEDTV210),y)
$(MODNAME)-objs-y += demod/fedtv210/drv_frontend_fedtv210.o
$(MODNAME)-objs-y += demod/fedtv210/mcu/drv_frontend_fedtv210_mcu.o
$(MODNAME)-objs-y += demod/fedtv210/drv_frontend_fedtv210_hal.o
$(MODNAME)-objs-y += demod/fedtv210/i2c/drv_frontend_fedtv210_i2c.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_dtmb_core.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_dtmb_info.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_atsc_core.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_atsc_info.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_dvbt2_core.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_dvbt2_info.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_isdbt_core.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_isdbt_info.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_ter_core.o
$(MODNAME)-objs-y += demod/fedtv210/ter/drv_frontend_fedtv210_ter_info.o
$(MODNAME)-objs-y += demod/fedtv210/cab/drv_frontend_fedtv210_cab_core.o
$(MODNAME)-objs-y += demod/fedtv210/cab/drv_frontend_fedtv210_cab_info.o
$(MODNAME)-objs-y += demod/fedtv210/sat/drv_frontend_fedtv210_sat_core.o
$(MODNAME)-objs-y += demod/fedtv210/sat/drv_frontend_fedtv210_sat_info.o
$(MODNAME)-objs-y += demod/fedtv210/fpga/drv_frontend_fedtv210_fpga.o
$(MODNAME)-objs-y += demod/fedtv210/sampleData/drv_frontend_fedtv210_sample_data.o
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/mcu
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/i2c
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/ter/inc
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/cab
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/sat
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/fpga
ccflags-y += -Idrivers/drv/frontend/demod/fedtv210/sampleData
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/fedtv210
$(MODNAME)-objs-y += demod_shadow/fedtv210/drv_frontend_fedtv210.o
endif
ifeq ($(CONFIG_SOCT_DEMOD_TYPE_TDA8296I),y)
$(MODNAME)-objs-y += demod/tda8296i/drv_fe_adp_aif_tda8296i.o
$(MODNAME)-objs-y += demod/tda8296i/hal/$(atv_chip_dir)/hal_tda8296i.o
$(MODNAME)-objs-y += demod/tda8296i/tmbslTDA8296.o
$(MODNAME)-objs-y += demod/tda8296i/tmbslTDA8296Instance.o
ccflags-y += -Idrivers/drv/frontend/demod/tda8296i
ccflags-y += -Idrivers/drv/frontend/demod/tda8296i/hal/$(atv_chip_dir)
else
ccflags-y += -Idrivers/drv/frontend/demod_shadow/tda8296i
$(MODNAME)-objs-y += demod_shadow/tda8296i/drv_fe_adp_aif_tda8296i.o
$(MODNAME)-objs-y += demod_shadow/tda8296i/hal_tda8296i.o
endif
############### tuner type config #############
ifeq ($(CONFIG_SOCT_TUNER_TYPE_CXD2871_CAB),y)
CONFIG_SOCT_TUNER_TYPE_CXD2871 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_CXD2871_TER),y)
CONFIG_SOCT_TUNER_TYPE_CXD2871 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_CXD2871),y)
ccflags-y += -DTUNER_DEV_TYPE_CXD2871
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_SUT_PJ987_SAT),y)
CONFIG_SOCT_TUNER_TYPE_SUT_PJ987 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_SUT_PJ987_TER),y)
CONFIG_SOCT_TUNER_TYPE_SUT_PJ987 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_SUT_PJ987),y)
ccflags-y += -DTUNER_DEV_TYPE_SUT_PJ987
ccflags-y += -Idrivers/drv/frontend/tuner/sut_pj987
ccflags-y += -Idrivers/drv/frontend/development/tuner/sut_pj987
$(MODNAME)-objs-y += tuner/sut_pj987/sut_pj987.o
$(MODNAME)-objs-y += tuner/sut_pj987/sut_pj987_i2c.o
$(MODNAME)-objs-y += development/tuner/sut_pj987/sut_pj987_isdbs_v1000.o
$(MODNAME)-objs-y += development/tuner/sut_pj987/sut_pj987_isdbt_v1000.o
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_RDA5815),y)
ccflags-y += -Idrivers/drv/frontend/tuner/rda5815
ccflags-y += -Idrivers/drv/frontend/thirdparty/tuner/rda5815
$(MODNAME)-objs-y += tuner/rda5815/rda5815.o
$(MODNAME)-objs-y += thirdparty/tuner/rda5815/rda5815m.o
$(MODNAME)-objs-y += thirdparty/tuner/rda5815/rda5815s.o
$(MODNAME)-objs-y += thirdparty/tuner/rda5815/rda5815_i2c.o
else
ccflags-y += -Idrivers/drv/frontend/tuner_shadow/rda5815
$(MODNAME)-objs-y += tuner_shadow/rda5815/rda5815.o
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_R850),y)
ccflags-y += -Idrivers/drv/frontend/tuner/r850
ccflags-y += -Idrivers/drv/frontend/thirdparty/tuner/r850
$(MODNAME)-objs-y += tuner/r850/r850_adp.o
$(MODNAME)-objs-y += thirdparty/tuner/r850/R850.o
$(MODNAME)-objs-y += thirdparty/tuner/r850/R850_I2C_Sys.o
else
ccflags-y += -Idrivers/drv/frontend/tuner_shadow/r850
$(MODNAME)-objs-y += tuner_shadow/r850/r850_adp.o
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_ATBM253_ATV),y)
CONFIG_SOCT_TUNER_TYPE_ATBM253 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_ATBM253_CAB),y)
CONFIG_SOCT_TUNER_TYPE_ATBM253 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_ATBM253_TER),y)
CONFIG_SOCT_TUNER_TYPE_ATBM253 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_ATBM253),y)
ccflags-y += -Idrivers/drv/frontend/tuner/atbm253
ccflags-y += -Idrivers/drv/frontend/thirdparty/tuner/altobeam/atbm253
$(MODNAME)-objs-y += tuner/atbm253/drv_fe_adp_tuner_atbm253.o
$(MODNAME)-objs-y += thirdparty/tuner/altobeam/atbm253/ATBM253Api.o
$(MODNAME)-objs-y += thirdparty/tuner/altobeam/atbm253/ATBM253Driver.o
$(MODNAME)-objs-y += thirdparty/tuner/altobeam/atbm253/ATBM253Porting.o
else
ccflags-y += -Idrivers/drv/frontend/tuner_shadow/atbm253
$(MODNAME)-objs-y += tuner_shadow/atbm253/drv_fe_adp_tuner_atbm253.o
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_SI2151_CAB),y)
CONFIG_SOCT_TUNER_TYPE_SI2151 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_SI2151_TER),y)
CONFIG_SOCT_TUNER_TYPE_SI2151 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_SI2151),y)
ifneq ($(wildcard $(frontend_dir)/development/tuner/siliconlabs/si2151), )
ccflags-y += -Idrivers/drv/frontend/tuner/si2151
ccflags-y += -Idrivers/drv/frontend/development/tuner/siliconlabs/si2151
ccflags-y += -Idrivers/drv/frontend/development/tuner/siliconlabs/si2151/i2c/siliconLabs
$(MODNAME)-objs-y += tuner/si2151/drv_fe_adp_tuner_si2151.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/Si2151_L1_API.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/Si2151_L1_Commands.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/Si2151_L1_Properties.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/Si2151_L2_API.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/Si2151_Properties_Strings.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/Si2151_User_Properties.o
$(MODNAME)-objs-y += development/tuner/siliconlabs/si2151/i2c/siliconLabs/Silabs_L0_Connection.o
else
ccflags-y += -Idrivers/drv/frontend/tuner_shadow/si2151
$(MODNAME)-objs-y += tuner_shadow/si2151/drv_fe_adp_tuner_si2151.o
endif
else
ccflags-y += -Idrivers/drv/frontend/tuner_shadow/si2151
$(MODNAME)-objs-y += tuner_shadow/si2151/drv_fe_adp_tuner_si2151.o
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_R842_CAB),y)
CONFIG_SOCT_TUNER_TYPE_R842 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_R842_TER),y)
CONFIG_SOCT_TUNER_TYPE_R842 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_R842_ATV),y)
CONFIG_SOCT_TUNER_TYPE_R842 = y
endif
ifeq ($(CONFIG_SOCT_TUNER_TYPE_R842),y)
ccflags-y += -Idrivers/drv/frontend/tuner/r842
ccflags-y += -Idrivers/drv/frontend/thirdparty/tuner/rafael/r842
$(MODNAME)-objs-y += tuner/r842/drv_fe_adp_tuner_r842.o
$(MODNAME)-objs-y += thirdparty/tuner/rafael/r842/R842.o
$(MODNAME)-objs-y += thirdparty/tuner/rafael/r842/R842_I2C.o
else
ccflags-y += -Idrivers/drv/frontend/tuner_shadow/r842
$(MODNAME)-objs-y += tuner_shadow/r842/drv_fe_adp_tuner_r842.o
endif
################ lnb type config ##############
$(MODNAME)-objs-y += lnb/drv_lnbctrl.o
ccflags-y += -Idrivers/drv/frontend/lnb
ifeq ($(CONFIG_SOCT_LNB_CTRL_LNBH30),y)
$(MODNAME)-objs-y += lnb/lnbh30.o
else
$(MODNAME)-objs-y += lnb_shadow/lnbh30.o
endif
ifeq ($(CONFIG_SOCT_LNB_CTRL_A8300),y)
$(MODNAME)-objs-y += lnb/a8300.o
else
$(MODNAME)-objs-y += lnb_shadow/a8300.o
endif
ifeq ($(CONFIG_SOCT_LNB_CTRL_LNBH25),y)
$(MODNAME)-objs-y += lnb/lnbh25.o
else
$(MODNAME)-objs-y += lnb_shadow/lnbh25.o
endif
ifeq ($(CONFIG_SOCT_LNB_CTRL_LNBH26),y)
$(MODNAME)-objs-y += lnb/lnbh26.o
else
$(MODNAME)-objs-y += lnb_shadow/lnbh26.o
endif
###############################################################################
$(MODNAME)-objs := $($(MODNAME)-objs-y)