| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2012, 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: bchp.inc $ |
|---|
| 11 | # $brcm_Revision: Hydra_Software_Devel/32 $ |
|---|
| 12 | # $brcm_Date: 3/14/12 5:38p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # Created: 01/09/2007 by Jon Garrett |
|---|
| 19 | # |
|---|
| 20 | # $brcm_Log: R:/views/refsw_latest_97468/magnum/basemodules/chp/bchp.inc $ |
|---|
| 21 | # |
|---|
| 22 | # Hydra_Software_Devel/32 3/14/12 5:38p jtna |
|---|
| 23 | # SW7468-401: add back 7468 power management |
|---|
| 24 | # |
|---|
| 25 | # Hydra_Software_Devel/31 2/23/12 3:06p randyjew |
|---|
| 26 | # SW7468-401: Remove Pm2.0 for 7468 temporarily. |
|---|
| 27 | # |
|---|
| 28 | # Hydra_Software_Devel/30 12/13/11 8:11p bselva |
|---|
| 29 | # SW7360-6: Add appframework support for 7360 platform |
|---|
| 30 | # |
|---|
| 31 | # Hydra_Software_Devel/29 12/8/11 1:52p mward |
|---|
| 32 | # SW7125-1165: Replace findstring with filter to do exact word match. |
|---|
| 33 | # |
|---|
| 34 | # Hydra_Software_Devel/28 11/12/11 9:19p jessem |
|---|
| 35 | # SW7425-1596: Ported 7425 PM files to chip version specific directories. |
|---|
| 36 | # |
|---|
| 37 | # Hydra_Software_Devel/27 11/10/11 5:56p xhuang |
|---|
| 38 | # SW7552-9: add AVS support |
|---|
| 39 | # |
|---|
| 40 | # Hydra_Software_Devel/26 10/31/11 3:26p mward |
|---|
| 41 | # SW7125-7: Enable AVS for 7435. |
|---|
| 42 | # |
|---|
| 43 | # Hydra_Software_Devel/25 10/27/11 3:52p gmohile |
|---|
| 44 | # SW7231-426 : Add 7231 B0 power management support |
|---|
| 45 | # |
|---|
| 46 | # Hydra_Software_Devel/24 10/27/11 1:53p xhuang |
|---|
| 47 | # SW7552-9: Add 7552 power management support |
|---|
| 48 | # |
|---|
| 49 | # Hydra_Software_Devel/23 10/20/11 3:47p bselva |
|---|
| 50 | # SW7358-169: Changes added for power management support |
|---|
| 51 | # |
|---|
| 52 | # Hydra_Software_Devel/23 10/20/11 3:42p bselva |
|---|
| 53 | # SW7358-169: Changes added for power management support |
|---|
| 54 | # |
|---|
| 55 | # Hydra_Software_Devel/22 8/31/11 2:00p rjlewis |
|---|
| 56 | # SW7346-117: added AVS support for 7344. |
|---|
| 57 | # |
|---|
| 58 | # Hydra_Software_Devel/21 8/20/11 5:58p rjlewis |
|---|
| 59 | # SW7346-117: added AVS support for 7231. |
|---|
| 60 | # |
|---|
| 61 | # Hydra_Software_Devel/20 8/19/11 3:41p rjlewis |
|---|
| 62 | # SW7346-117: Added support for avs files for 7358. |
|---|
| 63 | # |
|---|
| 64 | # Hydra_Software_Devel/19 8/11/11 1:37p rjlewis |
|---|
| 65 | # SW7346-117: Added support for AVS for 7346. |
|---|
| 66 | # |
|---|
| 67 | # Hydra_Software_Devel/18 8/8/11 4:55p rjlewis |
|---|
| 68 | # SW7346-117: merging to main. |
|---|
| 69 | # |
|---|
| 70 | # Hydra_Software_Devel/SW7346-117/2 8/8/11 4:01p rjlewis |
|---|
| 71 | # SW7346-117: only support the 7425 until after merge into the main. |
|---|
| 72 | # |
|---|
| 73 | # Hydra_Software_Devel/SW7346-117/1 8/4/11 5:57p rjlewis |
|---|
| 74 | # SW7346-117: add support for AVS source files. |
|---|
| 75 | # |
|---|
| 76 | # Hydra_Software_Devel/17 6/23/11 11:20a nickh |
|---|
| 77 | # SW7425-533: Add back PM support |
|---|
| 78 | # |
|---|
| 79 | # Hydra_Software_Devel/16 6/22/11 7:03p nickh |
|---|
| 80 | # SW7425-533: Disable 7425 Power management until its confirmed to be |
|---|
| 81 | # working |
|---|
| 82 | # |
|---|
| 83 | # Hydra_Software_Devel/15 6/20/11 1:19p randyjew |
|---|
| 84 | # SW7344-104: add PM2.0 for 7344/7346 |
|---|
| 85 | # |
|---|
| 86 | # Hydra_Software_Devel/14 6/17/11 1:29p jhaberf |
|---|
| 87 | # SWDTV-7435: adoption of Power Management 2.0 for the 35233 |
|---|
| 88 | # |
|---|
| 89 | # Hydra_Software_Devel/13 6/9/11 7:18p nickh |
|---|
| 90 | # SW7425-533: Add BCHP_PWR support for 7425 |
|---|
| 91 | # |
|---|
| 92 | # Hydra_Software_Devel/12 5/31/11 7:27p randyjew |
|---|
| 93 | # SW7208-158: Add 7468 chip to pm2.0 |
|---|
| 94 | # |
|---|
| 95 | # Hydra_Software_Devel/11 4/29/11 3:47p gmohile |
|---|
| 96 | # SW7231-128 : Add bchp_pwr support for 7231 |
|---|
| 97 | # |
|---|
| 98 | # Hydra_Software_Devel/10 4/12/11 3:21p mward |
|---|
| 99 | # SW7125-905: Add 7125 to list of chips with BCHP_PWR support. |
|---|
| 100 | # |
|---|
| 101 | # Hydra_Software_Devel/9 3/8/11 2:24p jtna |
|---|
| 102 | # SW7420-972: default BCHP_PWR_SUPPORT to =n |
|---|
| 103 | # |
|---|
| 104 | # Hydra_Software_Devel/8 3/4/11 7:18p spothana |
|---|
| 105 | # SW7420-1466 : Include CTK power management only if BCHP_PWR_CTK_SUPPORT |
|---|
| 106 | # is defined. |
|---|
| 107 | # |
|---|
| 108 | # Hydra_Software_Devel/7 12/3/10 3:17p gmohile |
|---|
| 109 | # SW7408-190 : Initial version for power management 2.0 |
|---|
| 110 | # |
|---|
| 111 | # Hydra_Software_Devel/6 10/1/10 12:45p jtna |
|---|
| 112 | # SW7420-972: allow BCHP_PWR_SUPPORT=n at compile-time |
|---|
| 113 | # |
|---|
| 114 | # Hydra_Software_Devel/5 9/9/10 1:56p jtna |
|---|
| 115 | # SW7420-972: added BCHP_DEFINES += BCHP_PWR_SUPPORT |
|---|
| 116 | # |
|---|
| 117 | # Hydra_Software_Devel/4 8/19/10 3:10p jtna |
|---|
| 118 | # SW7405-4433: merge BCHP_PWR |
|---|
| 119 | # |
|---|
| 120 | # Hydra_Software_Devel/3 9/10/08 6:55p shyam |
|---|
| 121 | # PR46778 : Add 7043 includes |
|---|
| 122 | # |
|---|
| 123 | # Hydra_Software_Devel/2 4/2/08 5:37p shyam |
|---|
| 124 | # PR 39899 : Add Transcoder Version numbers BENC_VER_LOWER |
|---|
| 125 | # |
|---|
| 126 | # Hydra_Software_Devel/1 1/11/07 2:36p jgarrett |
|---|
| 127 | # PR27004: Adding new .inc files |
|---|
| 128 | # |
|---|
| 129 | ############################################################ |
|---|
| 130 | |
|---|
| 131 | # |
|---|
| 132 | # Conditional Options for this Makefile |
|---|
| 133 | # |
|---|
| 134 | # BCHP_QAM_CHIP - If defined to a chip number (i.e. 3250), qam support for the specified chip is included. |
|---|
| 135 | # BCHP_7411_VER - If defined (in lower-case), specifies the revision of the 7411 chip to be supported. |
|---|
| 136 | # |
|---|
| 137 | |
|---|
| 138 | # Define this module |
|---|
| 139 | MAGNUM_MODULES += BCHP |
|---|
| 140 | |
|---|
| 141 | # |
|---|
| 142 | # CHP and other modules require the definition of the variables BCHP_VER and BCHP_CHIP. |
|---|
| 143 | # Note, these must be UPPER-CASE. |
|---|
| 144 | # |
|---|
| 145 | # For compatiblity, these defines are still required at the application level. |
|---|
| 146 | # BCHP_DEFINES := BCHP_CHIP=$(BCHP_CHIP) BCHP_VER=$(BCHP_VER) |
|---|
| 147 | # # |
|---|
| 148 | # # 7411 requires a similar definition. |
|---|
| 149 | # # |
|---|
| 150 | # ifneq ($(BCHP_7411_VER),) |
|---|
| 151 | # BCHP_DEFINES += BCHP_7411_VER=$(BCHP_7411_VER) |
|---|
| 152 | # endif |
|---|
| 153 | |
|---|
| 154 | # Make sure we have appropriate lower-case equivalents of BCHP_VER and BCHP_7411_VER |
|---|
| 155 | BCHP_VER_LOWER := $(subst A,a,$(BCHP_VER)) |
|---|
| 156 | BCHP_VER_LOWER := $(subst B,b,$(BCHP_VER_LOWER)) |
|---|
| 157 | BCHP_VER_LOWER := $(subst C,c,$(BCHP_VER_LOWER)) |
|---|
| 158 | BCHP_VER_LOWER := $(subst D,d,$(BCHP_VER_LOWER)) |
|---|
| 159 | BCHP_VER_LOWER := $(subst E,e,$(BCHP_VER_LOWER)) |
|---|
| 160 | BCHP_VER_LOWER := $(subst F,f,$(BCHP_VER_LOWER)) |
|---|
| 161 | BCHP_VER_LOWER := $(subst G,g,$(BCHP_VER_LOWER)) |
|---|
| 162 | BCHP_VER_LOWER := $(strip $(subst H,h,$(BCHP_VER_LOWER))) |
|---|
| 163 | |
|---|
| 164 | BCHP_7411_VER_LOWER := $(subst A,a,$(BCHP_7411_VER)) |
|---|
| 165 | BCHP_7411_VER_LOWER := $(subst B,b,$(BCHP_7411_VER_LOWER)) |
|---|
| 166 | BCHP_7411_VER_LOWER := $(subst C,c,$(BCHP_7411_VER_LOWER)) |
|---|
| 167 | BCHP_7411_VER_LOWER := $(subst D,d,$(BCHP_7411_VER_LOWER)) |
|---|
| 168 | BCHP_7411_VER_LOWER := $(subst E,e,$(BCHP_7411_VER_LOWER)) |
|---|
| 169 | BCHP_7411_VER_LOWER := $(subst F,f,$(BCHP_7411_VER_LOWER)) |
|---|
| 170 | BCHP_7411_VER_LOWER := $(subst G,g,$(BCHP_7411_VER_LOWER)) |
|---|
| 171 | BCHP_7411_VER_LOWER := $(strip $(subst H,h,$(BCHP_7411_VER_LOWER))) |
|---|
| 172 | |
|---|
| 173 | BENC_CHIP_VER_LOWER := $(subst A,a,$(BENC_CHIP_VER)) |
|---|
| 174 | BENC_CHIP_VER_LOWER := $(subst B,b,$(BENC_CHIP_VER_LOWER)) |
|---|
| 175 | BENC_CHIP_VER_LOWER := $(subst C,c,$(BENC_CHIP_VER_LOWER)) |
|---|
| 176 | |
|---|
| 177 | # |
|---|
| 178 | # Always include support for the chip specified by BCHP_CHIP and BCHP_VER |
|---|
| 179 | # |
|---|
| 180 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp |
|---|
| 181 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP) |
|---|
| 182 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/rdb/$(BCHP_VER_LOWER) |
|---|
| 183 | |
|---|
| 184 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/bchp.c |
|---|
| 185 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/bchp_$(BCHP_CHIP).c |
|---|
| 186 | |
|---|
| 187 | # BCHP_PWR basemodule. This architecture is being selectively rolled-out a few platforms first. |
|---|
| 188 | ifeq ($(filter $(BCHP_CHIP), 7420 7408 7125 7231 35233 7344 7346 7425 7358 7552 7360 7468), $(BCHP_CHIP)) |
|---|
| 189 | ifeq ($(BCHP_PWR_SUPPORT),y) |
|---|
| 190 | BCHP_DEFINES += BCHP_PWR_SUPPORT |
|---|
| 191 | ifeq ($(BCHP_PWR_CTK_SUPPORT),y) |
|---|
| 192 | BCHP_DEFINES += BCHP_PWR_CTK_SUPPORT |
|---|
| 193 | endif |
|---|
| 194 | endif |
|---|
| 195 | # the source files need to get included in the library unconditionally |
|---|
| 196 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/bchp_pwr.c |
|---|
| 197 | ifeq ($(filter $(BCHP_CHIP), 7231 7425), $(BCHP_CHIP)) |
|---|
| 198 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/pwr/$(BCHP_VER_LOWER) |
|---|
| 199 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/pwr/$(BCHP_VER_LOWER)/bchp_pwr_resources.c |
|---|
| 200 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/pwr/$(BCHP_VER_LOWER)/bchp_pwr_impl.c |
|---|
| 201 | else |
|---|
| 202 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/bchp_pwr_resources.c |
|---|
| 203 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/bchp_pwr_impl.c |
|---|
| 204 | endif |
|---|
| 205 | endif |
|---|
| 206 | |
|---|
| 207 | # BCHP_AVS code. More extensive AVS solution is being included in the newer 40nm parts. |
|---|
| 208 | ifeq ($(filter $(BCHP_CHIP), 7425 7435 7344 7346 7358 7231 7552 7360), $(BCHP_CHIP)) |
|---|
| 209 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_CHIP)/bchp_avs.c |
|---|
| 210 | endif |
|---|
| 211 | |
|---|
| 212 | # |
|---|
| 213 | # Handle conditional options |
|---|
| 214 | # |
|---|
| 215 | ifneq ($(BCHP_QAM_CHIP),) |
|---|
| 216 | # 3250 support |
|---|
| 217 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/$(BCHP_QAM_CHIP) |
|---|
| 218 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/$(BCHP_QAM_CHIP)/bchp_$(BCHP_QAM_CHIP).c |
|---|
| 219 | endif |
|---|
| 220 | |
|---|
| 221 | ifneq ($(BCHP_7411_VER),) |
|---|
| 222 | # 7411 chp support |
|---|
| 223 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/7411 |
|---|
| 224 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/7411/rdb/$(BCHP_7411_VER_LOWER) |
|---|
| 225 | BCHP_SOURCES += $(MAGNUM)/basemodules/chp/7411/bchp_7411.c |
|---|
| 226 | endif |
|---|
| 227 | |
|---|
| 228 | ifneq ($(BENC_CHIP),) |
|---|
| 229 | # 7043 support |
|---|
| 230 | BCHP_INCLUDES += $(MAGNUM)/basemodules/chp/$(BENC_CHIP)/rdb/$(BENC_CHIP_VER_LOWER) |
|---|
| 231 | endif |
|---|