| 1 | ############################################################ |
|---|
| 2 | # (c)2007-2011 Broadcom Corporation |
|---|
| 3 | # |
|---|
| 4 | # This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | # and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | # conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | # (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | # no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | # Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | # intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | # HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | # NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | # |
|---|
| 14 | # Except as expressly set forth in the Authorized License, |
|---|
| 15 | # |
|---|
| 16 | # 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | # secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | # and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | # |
|---|
| 20 | # 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | # AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | # WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | # THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | # OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | # LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | # OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | # USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | # |
|---|
| 29 | # 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | # LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | # EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | # USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | # THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | # ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | # LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | # ANY LIMITED REMEDY. |
|---|
| 37 | # |
|---|
| 38 | # $brcm_Workfile: display.inc $ |
|---|
| 39 | # $brcm_Revision: 24 $ |
|---|
| 40 | # $brcm_Date: 12/20/11 5:24p $ |
|---|
| 41 | # |
|---|
| 42 | # Module Description: |
|---|
| 43 | # |
|---|
| 44 | # Revision History: |
|---|
| 45 | # |
|---|
| 46 | # $brcm_Log: /nexus/modules/display/7425/display.inc $ |
|---|
| 47 | # |
|---|
| 48 | # 24 12/20/11 5:24p hongtaoz |
|---|
| 49 | # SW7425-1878: added default for encoder support; |
|---|
| 50 | # |
|---|
| 51 | # 23 12/19/11 11:11a hongtaoz |
|---|
| 52 | # SW7425-1878: fixed VIDEO_ENCODER_SUPPORT=n compile; |
|---|
| 53 | # |
|---|
| 54 | # 22 12/16/11 5:28p erickson |
|---|
| 55 | # SW7425-1878: merge XUDlib support for video encoder userdata |
|---|
| 56 | # |
|---|
| 57 | # SW7425-1878/1 12/9/11 1:31p ajagmag |
|---|
| 58 | # SW7425-1878: Integrate XUDlib into nexus |
|---|
| 59 | # |
|---|
| 60 | # 21 8/10/11 4:55p erickson |
|---|
| 61 | # SWDTV-4755: reduce DEPENDENCY list, depend on recursion |
|---|
| 62 | # |
|---|
| 63 | # 20 6/13/11 5:41p hongtaoz |
|---|
| 64 | # SW7425-686: add BVN error debug message build; |
|---|
| 65 | # |
|---|
| 66 | # 19 12/2/10 8:13p spothana |
|---|
| 67 | # SW7420-1177: Adding nexus hdmi dvo module. |
|---|
| 68 | # |
|---|
| 69 | # SW7420-1177/1 11/1/10 8:44p spothana |
|---|
| 70 | # SW7420-1177: Adding nexus hdmi dvo module. |
|---|
| 71 | # |
|---|
| 72 | # 18 10/22/10 2:23p erickson |
|---|
| 73 | # SW7422-69: add HDMI_INPUT for 7422 et al. |
|---|
| 74 | # |
|---|
| 75 | # 17 10/22/10 12:09p erickson |
|---|
| 76 | # SW7422-69: move hdmi input connection to 7400 for 7422 support |
|---|
| 77 | # |
|---|
| 78 | # 16 6/1/10 9:39p bandrews |
|---|
| 79 | # SW3548-2323: unlinked work on 7420 with 35230, input and display only |
|---|
| 80 | # tuned on latter |
|---|
| 81 | # |
|---|
| 82 | # 15 7/23/09 10:39a erickson |
|---|
| 83 | # PR56969: add hddvi input |
|---|
| 84 | # |
|---|
| 85 | # 14 4/8/09 4:54p vsilyaev |
|---|
| 86 | # PR 54015: Don't include bkni_multi.h into the bdbg.h. All thread-aware |
|---|
| 87 | # modules should include explicitly bkni_multi.h |
|---|
| 88 | # |
|---|
| 89 | # 13 3/30/09 1:07p erickson |
|---|
| 90 | # PR43491: remove code that disables I2S outputs when enabling 656 |
|---|
| 91 | # inputs. if this is required in the future, it should be done in the |
|---|
| 92 | # platform layer. |
|---|
| 93 | # |
|---|
| 94 | # 12 8/21/08 3:02p erickson |
|---|
| 95 | # PR45959: add sample extension |
|---|
| 96 | # |
|---|
| 97 | # 11 7/1/08 5:03p erickson |
|---|
| 98 | # PR44391: Add RUL Log Capability to Help VDC Debug |
|---|
| 99 | # |
|---|
| 100 | # 10 6/12/08 11:58a vsilyaev |
|---|
| 101 | # PR 43491: Disable I2S outputs when enabling 656 input |
|---|
| 102 | # |
|---|
| 103 | # 9 6/11/08 12:46p vsilyaev |
|---|
| 104 | # PR 43491: Added support for CCIR-656 input |
|---|
| 105 | # |
|---|
| 106 | # 8 6/3/08 9:39a ahulse |
|---|
| 107 | # PR43266: Add support for DCS in nexus |
|---|
| 108 | # |
|---|
| 109 | # 7 4/7/08 4:10p erickson |
|---|
| 110 | # PR32888: added NEXUS_CRC_CAPTURE |
|---|
| 111 | # |
|---|
| 112 | # 6 4/3/08 10:17a erickson |
|---|
| 113 | # PR41122: move picture quality code to 7400 |
|---|
| 114 | # |
|---|
| 115 | # 5 3/21/08 12:16p vsilyaev |
|---|
| 116 | # PR 39986: Added VideoImageInput |
|---|
| 117 | # |
|---|
| 118 | # 4 2/20/08 1:33p erickson |
|---|
| 119 | # PR39405: added RFM output |
|---|
| 120 | # |
|---|
| 121 | # 3 2/7/08 2:31p erickson |
|---|
| 122 | # PR38701: added macrovision implementation with appropriate #deifne |
|---|
| 123 | # |
|---|
| 124 | # 2 2/1/08 5:25p jgarrett |
|---|
| 125 | # PR 39017: Adding HdmiOutput |
|---|
| 126 | # |
|---|
| 127 | # 1 1/18/08 2:14p jgarrett |
|---|
| 128 | # PR 38808: Merging to main branch |
|---|
| 129 | # |
|---|
| 130 | # Nexus_Devel/13 1/11/08 1:51p erickson |
|---|
| 131 | # PR38679: add vbi read/write api's |
|---|
| 132 | # |
|---|
| 133 | # Nexus_Devel/12 1/3/08 8:43p erickson |
|---|
| 134 | # PR34662: refactor into smaller files |
|---|
| 135 | # |
|---|
| 136 | # Nexus_Devel/11 11/8/07 9:16a erickson |
|---|
| 137 | # PR36802: added mosaic mode |
|---|
| 138 | # |
|---|
| 139 | # Nexus_Devel/10 10/4/07 12:20p vsilyaev |
|---|
| 140 | # PR 34662: Coded VBI support |
|---|
| 141 | # |
|---|
| 142 | # Nexus_Devel/9 9/28/07 12:25p vsilyaev |
|---|
| 143 | # PR 34662: Added sync thunk layer |
|---|
| 144 | # |
|---|
| 145 | # Nexus_Devel/8 9/28/07 11:32a erickson |
|---|
| 146 | # PR34926: rename videodecoder to video_decoder |
|---|
| 147 | # |
|---|
| 148 | # Nexus_Devel/7 9/26/07 1:43p vsilyaev |
|---|
| 149 | # PR 34662: Implementation of display framebuffer |
|---|
| 150 | # |
|---|
| 151 | # Nexus_Devel/6 9/24/07 12:21p vsilyaev |
|---|
| 152 | # PR 34662: Added connection of window and source |
|---|
| 153 | # |
|---|
| 154 | # Nexus_Devel/5 9/21/07 4:11p vsilyaev |
|---|
| 155 | # PR 34662: Added VideoInput API |
|---|
| 156 | # |
|---|
| 157 | # Nexus_Devel/4 9/17/07 6:48p vsilyaev |
|---|
| 158 | # PR 34662: Coded more implementation |
|---|
| 159 | # |
|---|
| 160 | # Nexus_Devel/3 9/13/07 2:39p vsilyaev |
|---|
| 161 | # PR 34419: Updated for new directory layout |
|---|
| 162 | # |
|---|
| 163 | # Nexus_Devel/2 9/12/07 1:52p vsilyaev |
|---|
| 164 | # PR 34419: Updated display API |
|---|
| 165 | # |
|---|
| 166 | # Nexus_Devel/1 9/7/07 12:27p vsilyaev |
|---|
| 167 | # PR 34419: Added skeleton implementation |
|---|
| 168 | # |
|---|
| 169 | ############################################################ |
|---|
| 170 | |
|---|
| 171 | # |
|---|
| 172 | # Conditional Options for this Makefile |
|---|
| 173 | # |
|---|
| 174 | |
|---|
| 175 | ###################### |
|---|
| 176 | # Define this module # |
|---|
| 177 | ###################### |
|---|
| 178 | NEXUS_MODULES += DISPLAY |
|---|
| 179 | |
|---|
| 180 | ################## |
|---|
| 181 | # Module Options # |
|---|
| 182 | ################## |
|---|
| 183 | |
|---|
| 184 | ################### |
|---|
| 185 | # Module Includes # |
|---|
| 186 | ################### |
|---|
| 187 | NEXUS_DISPLAY_PRIVATE_INCLUDES = $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src |
|---|
| 188 | NEXUS_DISPLAY_PUBLIC_INCLUDES = $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/include |
|---|
| 189 | |
|---|
| 190 | |
|---|
| 191 | NEXUS_DISPLAY_PRECOMPILED_HEADER = $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_display_module.h |
|---|
| 192 | |
|---|
| 193 | ################## |
|---|
| 194 | # Module Sources # |
|---|
| 195 | ################## |
|---|
| 196 | NEXUS_DISPLAY_SOURCES := \ |
|---|
| 197 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_ccir656_input.c \ |
|---|
| 198 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_hddvi_input.c \ |
|---|
| 199 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_display.c \ |
|---|
| 200 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_display_graphics.c \ |
|---|
| 201 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_display_module.c \ |
|---|
| 202 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_display_vbi.c \ |
|---|
| 203 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_display_mosaic.c \ |
|---|
| 204 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_hdmi_input_connection.c \ |
|---|
| 205 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_picture_ctrl.c \ |
|---|
| 206 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_adj.c \ |
|---|
| 207 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_image_input.c \ |
|---|
| 208 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_input.c \ |
|---|
| 209 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_input_vbi.c \ |
|---|
| 210 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_output.c \ |
|---|
| 211 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_window.c \ |
|---|
| 212 | $(NEXUS_TOP)/modules/display/${BCHP_CHIP}/src/nexus_video_window_tune.c |
|---|
| 213 | |
|---|
| 214 | # check the VDC's env variable |
|---|
| 215 | ifeq ($(BVDC_MACROVISION),y) |
|---|
| 216 | NEXUS_DISPLAY_DEFINES += MACROVISION_SUPPORT=1 |
|---|
| 217 | else |
|---|
| 218 | # DCS and MACROVISION cannot be set at same time |
|---|
| 219 | ifeq ($(BVDC_DCS),y) |
|---|
| 220 | NEXUS_DISPLAY_DEFINES += DCS_SUPPORT=1 |
|---|
| 221 | endif |
|---|
| 222 | endif |
|---|
| 223 | |
|---|
| 224 | # capture VDC RUL's to disk for debug |
|---|
| 225 | # on the reference board, define capture_ruls to the filename |
|---|
| 226 | ifeq ($(BRDC_USE_CAPTURE_BUFFER),y) |
|---|
| 227 | NEXUS_DISPLAY_DEFINES += BRDC_USE_CAPTURE_BUFFER=1 |
|---|
| 228 | endif |
|---|
| 229 | |
|---|
| 230 | # turn on BVN error debug messages |
|---|
| 231 | ifeq ($(BVDC_SUPPORT_BVN_DEBUG),y) |
|---|
| 232 | NEXUS_DISPLAY_DEFINES += BVDC_SUPPORT_BVN_DEBUG=1 |
|---|
| 233 | endif |
|---|
| 234 | |
|---|
| 235 | ifeq ($(NEXUS_CRC_CAPTURE),y) |
|---|
| 236 | NEXUS_DISPLAY_DEFINES += NEXUS_CRC_CAPTURE=1 |
|---|
| 237 | endif |
|---|
| 238 | |
|---|
| 239 | ####################### |
|---|
| 240 | # Module Dependencies # |
|---|
| 241 | ####################### |
|---|
| 242 | NEXUS_DISPLAY_DEPENDENCIES := SURFACE VIDEO_DECODER HDMI_OUTPUT RFM HDMI_INPUT HDMI_DVO |
|---|
| 243 | |
|---|
| 244 | # thunk layer |
|---|
| 245 | NEXUS_DISPLAY_PRIVATE_INCLUDES += $(NEXUS_SYNCTHUNK_DIR) |
|---|
| 246 | NEXUS_DISPLAY_SOURCES += $(NEXUS_SYNCTHUNK_DIR)/nexus_display_thunks.c |
|---|
| 247 | |
|---|
| 248 | ################## |
|---|
| 249 | # Magnum Modules # |
|---|
| 250 | ################## |
|---|
| 251 | # These modules will be excluded from app-only builds |
|---|
| 252 | NEXUS_DISPLAY_MAGNUM_MODULES = \ |
|---|
| 253 | $(MAGNUM)/syslib/vbilib/bvbilib.inc \ |
|---|
| 254 | $(MAGNUM)/portinginterface/vbi/bvbi.inc \ |
|---|
| 255 | $(MAGNUM)/portinginterface/vdc/bvdc.inc \ |
|---|
| 256 | $(MAGNUM)/commonutils/rdc/brdc.inc |
|---|
| 257 | |
|---|
| 258 | ifeq ($(filter $(BCHP_CHIP),7425 7435), $(BCHP_CHIP)) |
|---|
| 259 | VIDEO_ENCODER_SUPPORT ?= y |
|---|
| 260 | endif |
|---|
| 261 | ifeq ($(VIDEO_ENCODER_SUPPORT),y) |
|---|
| 262 | NEXUS_DISPLAY_MAGNUM_MODULES += $(MAGNUM)/syslib/xudlib/bxudlib.inc |
|---|
| 263 | endif |
|---|
| 264 | |
|---|
| 265 | ifneq ($(NEXUS_DISPLAY_EXTENSION_INC),) |
|---|
| 266 | include $(NEXUS_DISPLAY_EXTENSION_INC) |
|---|
| 267 | endif |
|---|
| 268 | |
|---|