| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2009, 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_3520.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 12 | * $brcm_Date: 5/29/09 11:33p $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/basemodules/chp/3520/bchp_3520.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/3 5/29/09 11:33p dliu |
|---|
| 21 | * PR55183: Add end of acquisition interrupt |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/2 5/26/09 1:46p dliu |
|---|
| 24 | * PR55183: Add OOB lock interrupt defintion |
|---|
| 25 | * |
|---|
| 26 | * Hydra_Software_Devel/1 9/10/04 1:32p enavarro |
|---|
| 27 | * PR 12617: initial version |
|---|
| 28 | * |
|---|
| 29 | ***************************************************************************/ |
|---|
| 30 | |
|---|
| 31 | #ifndef BCHP_3520_H__ |
|---|
| 32 | #define BCHP_3520_H__ |
|---|
| 33 | |
|---|
| 34 | /* BCM3520 host registers */ |
|---|
| 35 | #define BCM3520_SH_SFR_H_ADR_16_15 0x0084 |
|---|
| 36 | #define BCM3520_SH_SFR_H_ADR_14_7 0x0085 |
|---|
| 37 | #define BCM3520_SH_SFR_IO_MBOX_STATUS 0x0086 |
|---|
| 38 | #define BCM3520_SH_SFR_IO_MBOX_A_15_8 0x0087 |
|---|
| 39 | #define BCM3520_SH_SFR_IO_MBOX_D_31_24 0x0088 |
|---|
| 40 | #define BCM3520_SH_SFR_IO_MBOX_D_23_16 0x0089 |
|---|
| 41 | #define BCM3520_SH_SFR_IO_MBOX_D_15_8 0x008a |
|---|
| 42 | #define BCM3520_SH_SFR_IO_MBOX_D_7_0 0x008b |
|---|
| 43 | #define BCM3520_SH_SFR_IO_MBOX_CMD 0x008c |
|---|
| 44 | #define BCM3520_SH_AP_SFR_H_MSG1 0x0093 |
|---|
| 45 | #define BCM3520_SH_AP_SFR_H_MSG2 0x0094 |
|---|
| 46 | #define BCM3520_SH_AP_SFR_JDEC 0x0095 |
|---|
| 47 | #define BCM3520_SH_AP_SFR_H_CTL1 0x009a |
|---|
| 48 | #define BCM3520_SH_AP_SFR_H_STAT1 0x009b |
|---|
| 49 | #define BCM3520_SH_AP_SFR_H_STAT2 0x009c |
|---|
| 50 | #define BCM3520_SH_AP_SFR_H_STAT3 0x009d |
|---|
| 51 | #define BCM3520_SH_AP_SFR_H_STAT4 0x009e |
|---|
| 52 | #define BCM3520_SH_AP_SFR_H_IE1 0x009f |
|---|
| 53 | #define BCM3520_SH_AP_SFR_H_IE2 0x00a0 |
|---|
| 54 | #define BCM3520_SH_AP_SFR_H_IE3 0x00a1 |
|---|
| 55 | #define BCM3520_SH_AP_SFR_H_IE4 0x00a2 |
|---|
| 56 | #define BCM3520_SH_AP_SFR_H_FSTAT1 0x00a3 |
|---|
| 57 | #define BCM3520_SH_AP_SFR_H_FSTAT2 0x00a4 |
|---|
| 58 | #define BCM3520_SH_AP_SFR_H_FSTAT3 0x00a5 |
|---|
| 59 | #define BCM3520_SH_AP_SFR_H_FSTAT4 0x00a6 |
|---|
| 60 | #define BCM3520_SH_AP_SFR_GPIN_1 0x00a9 |
|---|
| 61 | #define BCM3520_SH_AP_SFR_GPIN_0 0x00aa |
|---|
| 62 | #define BCM3520_SH_AP_SFR_GPOUT_1 0x00ab |
|---|
| 63 | #define BCM3520_SH_AP_SFR_GPOUT_0 0x00ac |
|---|
| 64 | #define BCM3520_SH_AP_SFR_GPIOENB_1 0x00ad |
|---|
| 65 | #define BCM3520_SH_AP_SFR_GPIOENB_0 0x00ae |
|---|
| 66 | #define BCM3520_SH_AP_SFR_GPIO_OW_1 0x00bc |
|---|
| 67 | #define BCM3520_SH_AP_SFR_GPIO_OW_0 0x00bd |
|---|
| 68 | #define BCM3520_SH_AP_SFR_HCTL_DBG 0x00be |
|---|
| 69 | #define BCM3520_SH_AP_SFR_TMUX 0x00c9 |
|---|
| 70 | #define BCM3520_SH_AP_SFR_AP_CMD 0x00e4 |
|---|
| 71 | #define BCM3520_SH_AP_SFR_CP_CFG 0x00ef |
|---|
| 72 | |
|---|
| 73 | /* BSC IO_MBOX registers */ |
|---|
| 74 | #define BCM3520_BSC_CHIP_ADDRESS 0x0800 |
|---|
| 75 | #define BCM3520_BSC_DATA_IN0_3 0x0804 |
|---|
| 76 | #define BCM3520_BSC_DATA_IN4_7 0x0808 |
|---|
| 77 | #define BCM3520_BSC_CNT_REG 0x080C |
|---|
| 78 | #define BCM3520_BSC_CTL_REG 0x0810 |
|---|
| 79 | #define BCM3520_BSC_IIC_ENABLE 0x0814 |
|---|
| 80 | #define BCM3520_BSC_DATA_OUT0_3 0x0818 |
|---|
| 81 | #define BCM3520_BSC_DATA_OUT4_7 0x081C |
|---|
| 82 | #define BCM3520_BSC_IRQEN 0x0820 |
|---|
| 83 | #define BCM3520_BSC_IRQSTS 0x0824 |
|---|
| 84 | |
|---|
| 85 | /* Antenna IO_MBOX registers */ |
|---|
| 86 | #define BCM3520_ANT_CNTL 0x0900 |
|---|
| 87 | #define BCM3520_ANT_TX_CNTL 0x0904 |
|---|
| 88 | #define BCM3520_ANT_TX_LOGIC 0x0908 |
|---|
| 89 | #define BCM3520_ANT_TX_DATA 0x090C |
|---|
| 90 | #define BCM3520_ANT_TX_2_TX_WAIT 0x0910 |
|---|
| 91 | #define BCM3520_ANT_RX_LOGIC1 0x0914 |
|---|
| 92 | #define BCM3520_ANT_RX_LOGIC0 0x0918 |
|---|
| 93 | #define BCM3520_ANT_RX_PERIOD 0x091C |
|---|
| 94 | #define BCM3520_ANT_RX_STATUS 0x0920 |
|---|
| 95 | #define BCM3520_ANT_RX_ST_COND 0x0924 |
|---|
| 96 | #define BCM3520_ANT_IRQSTS 0x0928 |
|---|
| 97 | #define BCM3520_ANT_IRQEN 0x092C |
|---|
| 98 | |
|---|
| 99 | /* TM registers */ |
|---|
| 100 | #define BCM3520_TM_CLK_SEL 0x0000 |
|---|
| 101 | #define BCM3520_TM_SFT_RST 0x0004 |
|---|
| 102 | #define BCM3520_TM_OUTPUT_PAD_CTRL 0x0008 |
|---|
| 103 | #define BCM3520_TM_DS_OB_XPT_PAD_CTRL 0x000C |
|---|
| 104 | #define BCM3520_TM_GPO_AUDIO_PAD_CTRL 0x0010 |
|---|
| 105 | #define BCM3520_TM_DIAG_CTRL 0x0014 |
|---|
| 106 | #define BCM3520_TM_MBIST_CTRL 0x0018 |
|---|
| 107 | #define BCM3520_TM_PWRDN_CTRL 0x001C |
|---|
| 108 | #define BCM3520_TM_PIN_STRAP 0x0020 |
|---|
| 109 | #define BCM3520_TM_PIN_STRAP_OVRD 0x0024 |
|---|
| 110 | #define BCM3520_TM_SCAN_TRI_ISB 0x0028 |
|---|
| 111 | #define BCM3520_TM_SCAN_TRI_RBUS 0x002C |
|---|
| 112 | #define BCM3520_TM_TMODE_CTRL 0x0030 |
|---|
| 113 | #define BCM3520_TM_OSC_CTRL_REG0 0x0034 |
|---|
| 114 | #define BCM3520_TM_OSC_CTRL_REG1 0x0038 |
|---|
| 115 | #define BCM3520_TM_DDAC_CTRL_REG 0x003C |
|---|
| 116 | #define BCM3520_TM_GENPLL_CTRL_REG 0x0040 |
|---|
| 117 | #define BCM3520_TM_CHIP_ID 0x0044 |
|---|
| 118 | #define BCM3520_TM_CHIP_ID_INT 0x0048 |
|---|
| 119 | #define BCM3520_TM_TP_IN_CTRL 0x004C |
|---|
| 120 | #define BCM3520_TM_TP_OUT_REG 0x0050 |
|---|
| 121 | #define BCM3520_TM_DAC_TEST_CTRL 0x0054 |
|---|
| 122 | #define BCM3520_TM_SS_AGC_HSYNC_REG 0x0058 |
|---|
| 123 | #define BCM3520_TM_SPARE_REGISTER_0 0x005C |
|---|
| 124 | #define BCM3520_TM_SPARE_REGISTER_1 0x0060 |
|---|
| 125 | |
|---|
| 126 | /* H_CTL1 register bits */ |
|---|
| 127 | #define BCM3520_AP_RUN 0x00 |
|---|
| 128 | #define BCM3520_AP_RESET 0x01 |
|---|
| 129 | #define BCM3520_AP_IDLE 0x02 |
|---|
| 130 | #define BCM3520_AP_MASK 0x03 |
|---|
| 131 | #define BCM3520_AP_HABR 0x04 |
|---|
| 132 | #define BCM3520_AP_HAB_MASK 0x07 |
|---|
| 133 | #define BCM3520_AP_HAB_AVAILABLE 0x00 |
|---|
| 134 | |
|---|
| 135 | /* JDEC register bits */ |
|---|
| 136 | #define BCM3520_JDEC_EEPROM 0x00 |
|---|
| 137 | #define BCM3520_JDEC_ROM 0x01 |
|---|
| 138 | #define BCM3520_JDEC_RAM 0x02 |
|---|
| 139 | #define BCM3520_JDEC_EXTRAM 0x03 |
|---|
| 140 | |
|---|
| 141 | /* H_STAT1 register bits */ |
|---|
| 142 | #define BCM3520_STAT1_H_ER 0x80 |
|---|
| 143 | #define BCM3520_STAT1_IOMB_ER 0x40 |
|---|
| 144 | #define BCM3520_STAT1_MEM_ER 0x20 |
|---|
| 145 | #define BCM3520_STAT1_H_HAB_ER 0x10 |
|---|
| 146 | #define BCM3520_STAT1_HAB_DONE 0x04 |
|---|
| 147 | #define BCM3520_STAT1_IOMB_DONE 0x02 |
|---|
| 148 | #define BCM3520_STAT1_AP_OP_CHG 0x01 |
|---|
| 149 | #define BCM3520_STAT1_ERROR_MASK 0xF0 |
|---|
| 150 | |
|---|
| 151 | /* H_STAT2 register bits */ |
|---|
| 152 | #define BCM3520_STAT2_INIT_DONE 0x80 |
|---|
| 153 | #define BCM3520_STAT2_RT_LOCK 0x40 |
|---|
| 154 | #define BCM3520_STAT2_IN_LOCK 0x20 |
|---|
| 155 | #define BCM3520_STAT2_OUT_OF_LOCK 0x10 |
|---|
| 156 | #define BCM3520_STAT2_LOCK_MASK 0x30 |
|---|
| 157 | #define BCM3520_STAT2_HAB_ERROR 0x08 |
|---|
| 158 | #define BCM3520_STAT2_CRIT_ERROR 0x04 |
|---|
| 159 | #define BCM3520_STAT2_ANT 0x02 |
|---|
| 160 | #define BCM3520_STAT2_BSC 0x01 |
|---|
| 161 | #define BCM3520_STAT2_ERROR_MASK 0x0C |
|---|
| 162 | |
|---|
| 163 | #define BCM3520_STAT3_ACQ_FINISHED 0x01 |
|---|
| 164 | #define BCM3520_STAT3_ACQ_OOB_FINISHED 0x02 |
|---|
| 165 | #define BCM3520_STAT3_OOB_LOCKED 0x08 |
|---|
| 166 | #define BCM3520_STAT3_OOB_NOT_LOCKED 0x10 |
|---|
| 167 | #define BCM3520_STAT3_OOB_LOCK_MASK 0x18 |
|---|
| 168 | #define BCM3520_STAT3_OOB_RT_LOCK_STATUS 0x20 |
|---|
| 169 | |
|---|
| 170 | |
|---|
| 171 | #endif /* BCHP_3520_H__ */ |
|---|