| 1 | /****************************************************************************** |
|---|
| 2 | * (c)2010-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: bads_global_clk.h $ |
|---|
| 39 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 40 | * $brcm_Date: 10/10/11 2:06p $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /magnum/portinginterface/ads/7552/bads_global_clk.h $ |
|---|
| 47 | * |
|---|
| 48 | * Hydra_Software_Devel/1 10/10/11 2:06p farshidf |
|---|
| 49 | * SW7552-134: sync up to V2_0 of 3461 |
|---|
| 50 | * |
|---|
| 51 | * Hydra_Software_Devel/6 7/19/11 8:00p farshidf |
|---|
| 52 | * SW7552-60: add new flag |
|---|
| 53 | * |
|---|
| 54 | * Hydra_Software_Devel/5 6/1/11 11:43a farshidf |
|---|
| 55 | * SW7552-36: clean up the code |
|---|
| 56 | * |
|---|
| 57 | * Hydra_Software_Devel/4 5/27/11 10:50a farshidf |
|---|
| 58 | * SW7552-36: compiel fix |
|---|
| 59 | * |
|---|
| 60 | * Hydra_Software_Devel/3 5/10/11 11:11p farshidf |
|---|
| 61 | * SWDTV-7035: merge main |
|---|
| 62 | * |
|---|
| 63 | * Hydra_Software_Devel/SWDTV-7035/2 5/10/11 6:30p cbrooks |
|---|
| 64 | * SWDTV-7035:Fixed MIPS timer |
|---|
| 65 | * |
|---|
| 66 | * Hydra_Software_Devel/SWDTV-7035/1 5/10/11 11:53a farshidf |
|---|
| 67 | * SWDTV-7035: new DS code from charlie |
|---|
| 68 | * |
|---|
| 69 | * Hydra_Software_Devel/2 4/27/11 12:32a farshidf |
|---|
| 70 | * SWDTV-6190: code cleanup |
|---|
| 71 | * |
|---|
| 72 | * Hydra_Software_Devel/1 4/20/11 12:38p farshidf |
|---|
| 73 | * SWDTV-6190: add intial DS files |
|---|
| 74 | * |
|---|
| 75 | *****************************************************************************/ |
|---|
| 76 | |
|---|
| 77 | #ifndef _BADS_GLOBAL_CLK_H__ |
|---|
| 78 | #define _BADS_GLOBAL_CLK_H__ |
|---|
| 79 | |
|---|
| 80 | #ifdef __cplusplus |
|---|
| 81 | extern "C" { |
|---|
| 82 | #endif |
|---|
| 83 | |
|---|
| 84 | #define GAIN_OFFSET -3000 |
|---|
| 85 | |
|---|
| 86 | /*The following offsets need to be set board to board, this set was done with the BCM93128V10_00 without triplexer*/ |
|---|
| 87 | /*Gain offsets for board to get channel power, values are offsets in db*256*/ |
|---|
| 88 | #define GAIN_OFFSET_BELOW_150MHZ 12*256 /*Calibrate at 100 MHz and 0 dbmv*/ |
|---|
| 89 | #define GAIN_OFFSET_150MHZ_250MHZ 13*256 /*Calibrate at 200 MHz and 0 dbmv*/ |
|---|
| 90 | #define GAIN_OFFSET_250MHZ_350MHZ 15*256 /*Calibrate at 300 MHz and 0 dbmv*/ |
|---|
| 91 | #define GAIN_OFFSET_350MHZ_450MHZ 15*256 /*Calibrate at 400 MHz and 0 dbmv*/ |
|---|
| 92 | #define GAIN_OFFSET_450MHZ_550MHZ 14*256 /*Calibrate at 500 MHz and 0 dbmv*/ |
|---|
| 93 | #define GAIN_OFFSET_550MHZ_650MHZ 14*256 /*Calibrate at 600 MHz and 0 dbmv*/ |
|---|
| 94 | #define GAIN_OFFSET_650MHZ_750MHZ 14*256 /*Calibrate at 700 MHz and 0 dbmv*/ |
|---|
| 95 | #define GAIN_OFFSET_750MHZ_850MHZ 13*256 /*Calibrate at 800 MHz and 0 dbmv*/ |
|---|
| 96 | #define GAIN_OFFSET_ABOVE_850MHZ 12*256 /*Calibrate at 900 MHz and 0 dbmv*/ |
|---|
| 97 | |
|---|
| 98 | /*This was 27000000 API for the 330 needs to be in us*/ |
|---|
| 99 | /*#define MIPS_TIMER 27000000*/ |
|---|
| 100 | #define MIPS_TIMER 1000000 |
|---|
| 101 | |
|---|
| 102 | #define F_HS 15000000UL /*14625000UL*/ |
|---|
| 103 | #define F_1S 30000000UL /*29250000UL*/ |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | #define SPUR_TBL_SIZE 1 |
|---|
| 107 | static const uint32_t SPUR_TBL[SPUR_TBL_SIZE] = |
|---|
| 108 | { |
|---|
| 109 | 0 |
|---|
| 110 | }; |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | #ifdef __cplusplus |
|---|
| 114 | } |
|---|
| 115 | #endif |
|---|
| 116 | |
|---|
| 117 | #endif |
|---|