aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/include
diff options
context:
space:
mode:
authorRoland Vossen <rvossen@broadcom.com>2011-06-01 07:46:03 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-07 15:49:31 -0400
commit32b45065766b7421db2264a3ab7564c046a46d4d (patch)
tree3070ad6a0ebff3797e72f3eabdcf8b91b7436c46 /drivers/staging/brcm80211/include
parentc55a12234663125bf8c4183e27f1ca71bd19ca1e (diff)
staging: brcm80211: removed unused definitions from include/soc.h
Code cleanup. Signed-off-by: Roland Vossen <rvossen@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/include')
-rw-r--r--drivers/staging/brcm80211/include/soc.h100
1 files changed, 0 insertions, 100 deletions
diff --git a/drivers/staging/brcm80211/include/soc.h b/drivers/staging/brcm80211/include/soc.h
index ccbd58f4e28..3e593778b83 100644
--- a/drivers/staging/brcm80211/include/soc.h
+++ b/drivers/staging/brcm80211/include/soc.h
@@ -17,54 +17,12 @@
17#ifndef _BRCM_SOC_H 17#ifndef _BRCM_SOC_H
18#define _BRCM_SOC_H 18#define _BRCM_SOC_H
19 19
20/*
21 * SOC Interconnect Address Map.
22 * All regions may not exist on all chips.
23 */
24#define SI_SDRAM_BASE 0x00000000 /* Physical SDRAM */
25#define SI_PCI_MEM 0x08000000 /* Host Mode sb2pcitranslation0 (64 MB) */
26#define SI_PCI_MEM_SZ (64 * 1024 * 1024)
27#define SI_PCI_CFG 0x0c000000 /* Host Mode sb2pcitranslation1 (64 MB) */
28#define SI_SDRAM_SWAPPED 0x10000000 /* Byteswapped Physical SDRAM */
29#define SI_SDRAM_R2 0x80000000 /* Region 2 for sdram (512 MB) */
30
31#ifdef SI_ENUM_BASE_VARIABLE 20#ifdef SI_ENUM_BASE_VARIABLE
32#define SI_ENUM_BASE (sii->pub.si_enum_base) 21#define SI_ENUM_BASE (sii->pub.si_enum_base)
33#else 22#else
34#define SI_ENUM_BASE 0x18000000 /* Enumeration space base */ 23#define SI_ENUM_BASE 0x18000000 /* Enumeration space base */
35#endif /* SI_ENUM_BASE_VARIABLE */ 24#endif /* SI_ENUM_BASE_VARIABLE */
36 25
37#define SI_WRAP_BASE 0x18100000 /* Wrapper space base */
38#define SI_CORE_SIZE 0x1000 /* each core gets 4Kbytes for registers */
39#define SI_MAXCORES 16 /* Max cores (this is arbitrary, for software
40 * convenience and could be changed if we
41 * make any larger chips
42 */
43
44#define SI_FASTRAM 0x19000000 /* On-chip RAM on chips that also have DDR */
45#define SI_FASTRAM_SWAPPED 0x19800000
46
47#define SI_FLASH2 0x1c000000 /* Flash Region 2 (region 1 shadowed here) */
48#define SI_FLASH2_SZ 0x02000000 /* Size of Flash Region 2 */
49#define SI_ARMCM3_ROM 0x1e000000 /* ARM Cortex-M3 ROM */
50#define SI_FLASH1 0x1fc00000 /* MIPS Flash Region 1 */
51#define SI_FLASH1_SZ 0x00400000 /* MIPS Size of Flash Region 1 */
52#define SI_ARM7S_ROM 0x20000000 /* ARM7TDMI-S ROM */
53#define SI_ARMCM3_SRAM2 0x60000000 /* ARM Cortex-M3 SRAM Region 2 */
54#define SI_ARM7S_SRAM2 0x80000000 /* ARM7TDMI-S SRAM Region 2 */
55#define SI_ARM_FLASH1 0xffff0000 /* ARM Flash Region 1 */
56#define SI_ARM_FLASH1_SZ 0x00010000 /* ARM Size of Flash Region 1 */
57
58#define SI_PCI_DMA 0x40000000 /* Client Mode sb2pcitranslation2 (1 GB) */
59#define SI_PCI_DMA2 0x80000000 /* Client Mode sb2pcitranslation2 (1 GB) */
60#define SI_PCI_DMA_SZ 0x40000000 /* Client Mode sb2pcitranslation2 size in bytes */
61#define SI_PCIE_DMA_L32 0x00000000 /* PCIE Client Mode sb2pcitranslation2
62 * (2 ZettaBytes), low 32 bits
63 */
64#define SI_PCIE_DMA_H32 0x80000000 /* PCIE Client Mode sb2pcitranslation2
65 * (2 ZettaBytes), high 32 bits
66 */
67
68/* core codes */ 26/* core codes */
69#define NODEV_CORE_ID 0x700 /* Invalid coreid */ 27#define NODEV_CORE_ID 0x700 /* Invalid coreid */
70#define CC_CORE_ID 0x800 /* chipcommon core */ 28#define CC_CORE_ID 0x800 /* chipcommon core */
@@ -127,14 +85,6 @@
127 * unused address ranges 85 * unused address ranges
128 */ 86 */
129 87
130/* There are TWO constants on all Broadcom chips: SI_ENUM_BASE above,
131 * and chipcommon being the first core:
132 */
133#define SI_CC_IDX 0
134
135/* SOC Interconnect types (aka chip types) */
136#define SOCI_AI 1
137
138/* Common core control flags */ 88/* Common core control flags */
139#define SICF_BIST_EN 0x8000 89#define SICF_BIST_EN 0x8000
140#define SICF_PME_EN 0x4000 90#define SICF_PME_EN 0x4000
@@ -142,54 +92,4 @@
142#define SICF_FGC 0x0002 92#define SICF_FGC 0x0002
143#define SICF_CLOCK_EN 0x0001 93#define SICF_CLOCK_EN 0x0001
144 94
145/* Common core status flags */
146#define SISF_BIST_DONE 0x8000
147#define SISF_BIST_ERROR 0x4000
148#define SISF_GATED_CLK 0x2000
149#define SISF_DMA64 0x1000
150#define SISF_CORE_BITS 0x0fff
151
152/* A register that is common to all cores to
153 * communicate w/PMU regarding clock control.
154 */
155#define SI_CLK_CTL_ST 0x1e0 /* clock control and status */
156
157/* clk_ctl_st register */
158#define CCS_FORCEALP 0x00000001 /* force ALP request */
159#define CCS_FORCEHT 0x00000002 /* force HT request */
160#define CCS_FORCEILP 0x00000004 /* force ILP request */
161#define CCS_ALPAREQ 0x00000008 /* ALP Avail Request */
162#define CCS_HTAREQ 0x00000010 /* HT Avail Request */
163#define CCS_FORCEHWREQOFF 0x00000020 /* Force HW Clock Request Off */
164#define CCS_ERSRC_REQ_MASK 0x00000700 /* external resource requests */
165#define CCS_ERSRC_REQ_SHIFT 8
166#define CCS_ALPAVAIL 0x00010000 /* ALP is available */
167#define CCS_HTAVAIL 0x00020000 /* HT is available */
168#define CCS_BP_ON_APL 0x00040000 /* RO: Backplane is running on ALP clock */
169#define CCS_BP_ON_HT 0x00080000 /* RO: Backplane is running on HT clock */
170#define CCS_ERSRC_STS_MASK 0x07000000 /* external resource status */
171#define CCS_ERSRC_STS_SHIFT 24
172
173#define CCS0_HTAVAIL 0x00010000 /* HT avail in chipc and pcmcia on 4328a0 */
174#define CCS0_ALPAVAIL 0x00020000 /* ALP avail in chipc and pcmcia on 4328a0 */
175
176/* Not really related to SOC Interconnect, but a couple of software
177 * conventions for the use the flash space:
178 */
179
180/* Minimum amount of flash we support */
181#define FLASH_MIN 0x00020000 /* Minimum flash size */
182
183/* A boot/binary may have an embedded block that describes its size */
184#define BISZ_OFFSET 0x3e0 /* At this offset into the binary */
185#define BISZ_MAGIC 0x4249535a /* Marked with this value: 'BISZ' */
186#define BISZ_MAGIC_IDX 0 /* Word 0: magic */
187#define BISZ_TXTST_IDX 1 /* 1: text start */
188#define BISZ_TXTEND_IDX 2 /* 2: text end */
189#define BISZ_DATAST_IDX 3 /* 3: data start */
190#define BISZ_DATAEND_IDX 4 /* 4: data end */
191#define BISZ_BSSST_IDX 5 /* 5: bss start */
192#define BISZ_BSSEND_IDX 6 /* 6: bss end */
193#define BISZ_SIZE 7 /* descriptor size in 32-bit integers */
194
195#endif /* _BRCM_SOC_H */ 95#endif /* _BRCM_SOC_H */