| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2011, Broadcom Corporation |
|---|
| 3 | # All Rights Reserved |
|---|
| 4 | # Confidential Property of Broadcom Corporation |
|---|
| 5 | # |
|---|
| 6 | # THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | # AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | # EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | # |
|---|
| 10 | # $brcm_Workfile: bthd.inc $ |
|---|
| 11 | # $brcm_Revision: Hydra_Software_Devel/23 $ |
|---|
| 12 | # $brcm_Date: 10/18/11 5:26p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # $brcm_Log: /magnum/portinginterface/thd/bthd.inc $ |
|---|
| 19 | # |
|---|
| 20 | # Hydra_Software_Devel/23 10/18/11 5:26p atanugul |
|---|
| 21 | # SW3461-67: Add 3461 B0 Support |
|---|
| 22 | # |
|---|
| 23 | # Hydra_Software_Devel/22 7/25/11 3:41p farshidf |
|---|
| 24 | # SWDTV-8085: enable ISDB_T compile flag all the time |
|---|
| 25 | # |
|---|
| 26 | # Hydra_Software_Devel/21 7/15/11 3:01p vishk |
|---|
| 27 | # SW7552-59: Support ISDB-T in Nexus to match latest PI change No need to |
|---|
| 28 | # export BTHD_ISDBT_SUPPORT=y anymore for ISDBT support. |
|---|
| 29 | # |
|---|
| 30 | # Hydra_Software_Devel/20 6/10/11 12:13p farshidf |
|---|
| 31 | # SW7552-36: remove the extra "\" |
|---|
| 32 | # |
|---|
| 33 | # Hydra_Software_Devel/19 6/8/11 5:56p farshidf |
|---|
| 34 | # SWDTV-7471: add the new ISDBT flag and file |
|---|
| 35 | # |
|---|
| 36 | # Hydra_Software_Devel/18 6/1/11 3:38p atanugul |
|---|
| 37 | # SW3461-5: Add THD support to 3461 |
|---|
| 38 | # |
|---|
| 39 | # Hydra_Software_Devel/17 5/18/11 5:21p farshidf |
|---|
| 40 | # SW7552-32: add THD files |
|---|
| 41 | # |
|---|
| 42 | # Hydra_Software_Devel/16 5/16/11 4:39p farshidf |
|---|
| 43 | # SWDTV-7035: add "\n" at th end of the file |
|---|
| 44 | # |
|---|
| 45 | # Hydra_Software_Devel/15 5/16/11 4:07p farshidf |
|---|
| 46 | # SWDTV-7035: change the ISDB-T flag |
|---|
| 47 | # |
|---|
| 48 | # Hydra_Software_Devel/14 5/16/11 11:49a farshidf |
|---|
| 49 | # SWDTV-7035: add ISDB-T flag |
|---|
| 50 | # |
|---|
| 51 | # Hydra_Software_Devel/13 4/21/11 6:38p farshidf |
|---|
| 52 | # SWDTV-6191: add the THD code |
|---|
| 53 | # |
|---|
| 54 | # Hydra_Software_Devel/12 12/10/09 1:27p farshidf |
|---|
| 55 | # SW7550-38: remove the tune hack code |
|---|
| 56 | # |
|---|
| 57 | # Hydra_Software_Devel/11 11/17/09 6:39p farshidf |
|---|
| 58 | # SW7550-38: add the Tune_hack flag |
|---|
| 59 | # |
|---|
| 60 | # Hydra_Software_Devel/10 11/6/09 5:55p farshidf |
|---|
| 61 | # SW7550-38: add the 7550 files |
|---|
| 62 | # |
|---|
| 63 | # Hydra_Software_Devel/9 3/26/09 2:35p dliu |
|---|
| 64 | # PR53611: Only assign BCHP_VER_UPPER if not already assigned |
|---|
| 65 | # |
|---|
| 66 | # Hydra_Software_Devel/8 10/30/08 1:11p dliu |
|---|
| 67 | # PR46516: Change flag name for dynamic power management |
|---|
| 68 | # |
|---|
| 69 | # Hydra_Software_Devel/8 10/30/08 1:09p dliu |
|---|
| 70 | # PR46516: Change flag name for power management |
|---|
| 71 | # |
|---|
| 72 | # Hydra_Software_Devel/6 7/21/08 12:56p dliu |
|---|
| 73 | # PR38944: First step of moving code from AP to MIPS |
|---|
| 74 | # |
|---|
| 75 | # Hydra_Software_Devel/5 6/5/08 9:01p dliu |
|---|
| 76 | # PR38934: Add microcode |
|---|
| 77 | # |
|---|
| 78 | # Hydra_Software_Devel/4 5/1/08 2:04p dliu |
|---|
| 79 | # PR36603: Update to support 3556 and 2940 together for PVR application |
|---|
| 80 | # |
|---|
| 81 | ############################################################ |
|---|
| 82 | # |
|---|
| 83 | # Conditional Options for this Makefile |
|---|
| 84 | # |
|---|
| 85 | # BTHD_CHIP - Specifies a THD chip number to include in the build (e.g. 2940). May specify multiple chips. |
|---|
| 86 | # |
|---|
| 87 | |
|---|
| 88 | # Define this module |
|---|
| 89 | MAGNUM_MODULES += BTHD |
|---|
| 90 | |
|---|
| 91 | # If the chip version is not specified, select a default |
|---|
| 92 | ifeq ($(BCHP_3461_VER),) |
|---|
| 93 | BCHP_3461_VER := A0 |
|---|
| 94 | endif |
|---|
| 95 | |
|---|
| 96 | # Source needs to know which revision |
|---|
| 97 | BTHD_DEFINES += BTHD_3461_VER=BCHP_VER_$(BCHP_3461_VER) |
|---|
| 98 | |
|---|
| 99 | BCHP_VER_UPPER ?= $(shell awk 'BEGIN{print toupper("$(BCHP_VER)")}') |
|---|
| 100 | |
|---|
| 101 | # Module Includes |
|---|
| 102 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/ |
|---|
| 103 | BTHD_SOURCES += $(MAGNUM)/portinginterface/thd/bthd.c |
|---|
| 104 | |
|---|
| 105 | # |
|---|
| 106 | # Handle 3461 |
|---|
| 107 | # |
|---|
| 108 | ifeq ($(findstring 3461,$(BTHD_CHIP)),3461) |
|---|
| 109 | BTHD_INCLUDES += $(MAGNUM)/basemodules/chp/3461 |
|---|
| 110 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/3461 |
|---|
| 111 | |
|---|
| 112 | BTHD_SOURCES += \ |
|---|
| 113 | $(MAGNUM)/portinginterface/thd/3461/bthd_3461.c \ |
|---|
| 114 | $(MAGNUM)/portinginterface/thd/3461/bthd_3461_priv.c |
|---|
| 115 | endif |
|---|
| 116 | |
|---|
| 117 | # |
|---|
| 118 | # Handle 2940 |
|---|
| 119 | # |
|---|
| 120 | ifeq ($(findstring 2940,$(BTHD_CHIP)),2940) |
|---|
| 121 | BTHD_INCLUDES += $(MAGNUM)/basemodules/chp/2940 |
|---|
| 122 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/2940 |
|---|
| 123 | |
|---|
| 124 | BTHD_SOURCES += \ |
|---|
| 125 | $(MAGNUM)/portinginterface/thd/2940/bthd_2940.c \ |
|---|
| 126 | $(MAGNUM)/portinginterface/thd/2940/bthd_2940_priv.c |
|---|
| 127 | endif |
|---|
| 128 | |
|---|
| 129 | # |
|---|
| 130 | # Handle 3556 |
|---|
| 131 | # |
|---|
| 132 | ifeq ($(BCHP_CHIP),3556) |
|---|
| 133 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/3556 |
|---|
| 134 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/ |
|---|
| 135 | |
|---|
| 136 | ifneq ($(BTHD_POWER_MANAGEMENT),n) |
|---|
| 137 | BTHD_DEFINES += BTHD_POWER_MANAGEMENT |
|---|
| 138 | endif |
|---|
| 139 | |
|---|
| 140 | BTHD_SOURCES += \ |
|---|
| 141 | $(MAGNUM)/portinginterface/thd/3556/bthd_3556.c \ |
|---|
| 142 | $(MAGNUM)/portinginterface/thd/3556/bthd_3556_priv.c \ |
|---|
| 143 | $(MAGNUM)/portinginterface/thd/3556/bthd_3556_ifdcoef.c \ |
|---|
| 144 | $(MAGNUM)/portinginterface/thd/3556/bthd_3556_ifd.c \ |
|---|
| 145 | $(MAGNUM)/portinginterface/thd/3556/microcode/$(BCHP_VER_UPPER)/bcm3556ap.c |
|---|
| 146 | endif |
|---|
| 147 | |
|---|
| 148 | |
|---|
| 149 | # |
|---|
| 150 | # Handle 7550 |
|---|
| 151 | # |
|---|
| 152 | |
|---|
| 153 | ifeq ($(BCHP_CHIP),7550) |
|---|
| 154 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/7550 |
|---|
| 155 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/ |
|---|
| 156 | |
|---|
| 157 | ifneq ($(BTHD_POWER_MANAGEMENT),n) |
|---|
| 158 | BTHD_DEFINES += BTHD_POWER_MANAGEMENT |
|---|
| 159 | endif |
|---|
| 160 | |
|---|
| 161 | BTHD_SOURCES += \ |
|---|
| 162 | $(MAGNUM)/portinginterface/thd/7550/bthd_7550.c \ |
|---|
| 163 | $(MAGNUM)/portinginterface/thd/7550/bthd_7550_priv.c \ |
|---|
| 164 | $(MAGNUM)/portinginterface/thd/7550/bthd_7550_platform.c |
|---|
| 165 | endif |
|---|
| 166 | |
|---|
| 167 | |
|---|
| 168 | |
|---|
| 169 | # |
|---|
| 170 | # Handle 35233 |
|---|
| 171 | # |
|---|
| 172 | |
|---|
| 173 | ifeq ($(BCHP_CHIP),35233) |
|---|
| 174 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/35233 |
|---|
| 175 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/ |
|---|
| 176 | |
|---|
| 177 | ifneq ($(BTHD_POWER_MANAGEMENT),n) |
|---|
| 178 | BTHD_DEFINES += BTHD_POWER_MANAGEMENT |
|---|
| 179 | endif |
|---|
| 180 | |
|---|
| 181 | |
|---|
| 182 | BTHD_DEFINES += BTHD_ISDBT_SUPPORT |
|---|
| 183 | BTHD_SOURCES += $(MAGNUM)/portinginterface/thd/35233/bthd_acq_isdbt.c |
|---|
| 184 | |
|---|
| 185 | |
|---|
| 186 | BTHD_SOURCES += \ |
|---|
| 187 | $(MAGNUM)/portinginterface/thd/35233/bthd_coef.c \ |
|---|
| 188 | $(MAGNUM)/portinginterface/thd/35233/bthd_3x7x.c \ |
|---|
| 189 | $(MAGNUM)/portinginterface/thd/35233/bthd_acq_dvbt.c \ |
|---|
| 190 | $(MAGNUM)/portinginterface/thd/35233/bthd_acq.c \ |
|---|
| 191 | $(MAGNUM)/portinginterface/thd/35233/bthd_api.c |
|---|
| 192 | endif |
|---|
| 193 | |
|---|
| 194 | |
|---|
| 195 | # |
|---|
| 196 | # Handle 7552 |
|---|
| 197 | # |
|---|
| 198 | |
|---|
| 199 | ifeq ($(BCHP_CHIP),7552) |
|---|
| 200 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/7552 |
|---|
| 201 | BTHD_INCLUDES += $(MAGNUM)/portinginterface/thd/ |
|---|
| 202 | |
|---|
| 203 | ifneq ($(BTHD_POWER_MANAGEMENT),n) |
|---|
| 204 | BTHD_DEFINES += BTHD_POWER_MANAGEMENT |
|---|
| 205 | endif |
|---|
| 206 | |
|---|
| 207 | BTHD_DEFINES += BTHD_ISDBT_SUPPORT |
|---|
| 208 | BTHD_SOURCES += $(MAGNUM)/portinginterface/thd/7552/bthd_acq_isdbt.c |
|---|
| 209 | |
|---|
| 210 | BTHD_SOURCES += \ |
|---|
| 211 | $(MAGNUM)/portinginterface/thd/7552/bthd_coef.c \ |
|---|
| 212 | $(MAGNUM)/portinginterface/thd/7552/bthd_3x7x.c \ |
|---|
| 213 | $(MAGNUM)/portinginterface/thd/7552/bthd_acq_dvbt.c \ |
|---|
| 214 | $(MAGNUM)/portinginterface/thd/7552/bthd_acq.c \ |
|---|
| 215 | $(MAGNUM)/portinginterface/thd/7552/bthd_api.c |
|---|
| 216 | endif |
|---|
| 217 | |
|---|
| 218 | |
|---|