diff options
Diffstat (limited to 'arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h')
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h index 849fd97e7798..4fc2ab2c278a 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | |||
@@ -15,6 +15,30 @@ | |||
15 | /* Clock Control register */ | 15 | /* Clock Control register */ |
16 | #define PERF_CKCTL_REG 0x4 | 16 | #define PERF_CKCTL_REG 0x4 |
17 | 17 | ||
18 | #define CKCTL_6328_PHYMIPS_EN (1 << 0) | ||
19 | #define CKCTL_6328_ADSL_QPROC_EN (1 << 1) | ||
20 | #define CKCTL_6328_ADSL_AFE_EN (1 << 2) | ||
21 | #define CKCTL_6328_ADSL_EN (1 << 3) | ||
22 | #define CKCTL_6328_MIPS_EN (1 << 4) | ||
23 | #define CKCTL_6328_SAR_EN (1 << 5) | ||
24 | #define CKCTL_6328_PCM_EN (1 << 6) | ||
25 | #define CKCTL_6328_USBD_EN (1 << 7) | ||
26 | #define CKCTL_6328_USBH_EN (1 << 8) | ||
27 | #define CKCTL_6328_HSSPI_EN (1 << 9) | ||
28 | #define CKCTL_6328_PCIE_EN (1 << 10) | ||
29 | #define CKCTL_6328_ROBOSW_EN (1 << 11) | ||
30 | |||
31 | #define CKCTL_6328_ALL_SAFE_EN (CKCTL_6328_PHYMIPS_EN | \ | ||
32 | CKCTL_6328_ADSL_QPROC_EN | \ | ||
33 | CKCTL_6328_ADSL_AFE_EN | \ | ||
34 | CKCTL_6328_ADSL_EN | \ | ||
35 | CKCTL_6328_SAR_EN | \ | ||
36 | CKCTL_6328_PCM_EN | \ | ||
37 | CKCTL_6328_USBD_EN | \ | ||
38 | CKCTL_6328_USBH_EN | \ | ||
39 | CKCTL_6328_ROBOSW_EN | \ | ||
40 | CKCTL_6328_PCIE_EN) | ||
41 | |||
18 | #define CKCTL_6338_ADSLPHY_EN (1 << 0) | 42 | #define CKCTL_6338_ADSLPHY_EN (1 << 0) |
19 | #define CKCTL_6338_MPI_EN (1 << 1) | 43 | #define CKCTL_6338_MPI_EN (1 << 1) |
20 | #define CKCTL_6338_DRAM_EN (1 << 2) | 44 | #define CKCTL_6338_DRAM_EN (1 << 2) |
@@ -119,6 +143,7 @@ | |||
119 | #define SYS_PLL_SOFT_RESET 0x1 | 143 | #define SYS_PLL_SOFT_RESET 0x1 |
120 | 144 | ||
121 | /* Interrupt Mask register */ | 145 | /* Interrupt Mask register */ |
146 | #define PERF_IRQMASK_6328_REG 0x20 | ||
122 | #define PERF_IRQMASK_6338_REG 0xc | 147 | #define PERF_IRQMASK_6338_REG 0xc |
123 | #define PERF_IRQMASK_6345_REG 0xc | 148 | #define PERF_IRQMASK_6345_REG 0xc |
124 | #define PERF_IRQMASK_6348_REG 0xc | 149 | #define PERF_IRQMASK_6348_REG 0xc |
@@ -126,6 +151,7 @@ | |||
126 | #define PERF_IRQMASK_6368_REG 0x20 | 151 | #define PERF_IRQMASK_6368_REG 0x20 |
127 | 152 | ||
128 | /* Interrupt Status register */ | 153 | /* Interrupt Status register */ |
154 | #define PERF_IRQSTAT_6328_REG 0x28 | ||
129 | #define PERF_IRQSTAT_6338_REG 0x10 | 155 | #define PERF_IRQSTAT_6338_REG 0x10 |
130 | #define PERF_IRQSTAT_6345_REG 0x10 | 156 | #define PERF_IRQSTAT_6345_REG 0x10 |
131 | #define PERF_IRQSTAT_6348_REG 0x10 | 157 | #define PERF_IRQSTAT_6348_REG 0x10 |
@@ -133,6 +159,7 @@ | |||
133 | #define PERF_IRQSTAT_6368_REG 0x28 | 159 | #define PERF_IRQSTAT_6368_REG 0x28 |
134 | 160 | ||
135 | /* External Interrupt Configuration register */ | 161 | /* External Interrupt Configuration register */ |
162 | #define PERF_EXTIRQ_CFG_REG_6328 0x18 | ||
136 | #define PERF_EXTIRQ_CFG_REG_6338 0x14 | 163 | #define PERF_EXTIRQ_CFG_REG_6338 0x14 |
137 | #define PERF_EXTIRQ_CFG_REG_6348 0x14 | 164 | #define PERF_EXTIRQ_CFG_REG_6348 0x14 |
138 | #define PERF_EXTIRQ_CFG_REG_6358 0x14 | 165 | #define PERF_EXTIRQ_CFG_REG_6358 0x14 |
@@ -162,8 +189,21 @@ | |||
162 | 189 | ||
163 | /* Soft Reset register */ | 190 | /* Soft Reset register */ |
164 | #define PERF_SOFTRESET_REG 0x28 | 191 | #define PERF_SOFTRESET_REG 0x28 |
192 | #define PERF_SOFTRESET_6328_REG 0x10 | ||
165 | #define PERF_SOFTRESET_6368_REG 0x10 | 193 | #define PERF_SOFTRESET_6368_REG 0x10 |
166 | 194 | ||
195 | #define SOFTRESET_6328_SPI_MASK (1 << 0) | ||
196 | #define SOFTRESET_6328_EPHY_MASK (1 << 1) | ||
197 | #define SOFTRESET_6328_SAR_MASK (1 << 2) | ||
198 | #define SOFTRESET_6328_ENETSW_MASK (1 << 3) | ||
199 | #define SOFTRESET_6328_USBS_MASK (1 << 4) | ||
200 | #define SOFTRESET_6328_USBH_MASK (1 << 5) | ||
201 | #define SOFTRESET_6328_PCM_MASK (1 << 6) | ||
202 | #define SOFTRESET_6328_PCIE_CORE_MASK (1 << 7) | ||
203 | #define SOFTRESET_6328_PCIE_MASK (1 << 8) | ||
204 | #define SOFTRESET_6328_PCIE_EXT_MASK (1 << 9) | ||
205 | #define SOFTRESET_6328_PCIE_HARD_MASK (1 << 10) | ||
206 | |||
167 | #define SOFTRESET_6338_SPI_MASK (1 << 0) | 207 | #define SOFTRESET_6338_SPI_MASK (1 << 0) |
168 | #define SOFTRESET_6338_ENET_MASK (1 << 2) | 208 | #define SOFTRESET_6338_ENET_MASK (1 << 2) |
169 | #define SOFTRESET_6338_USBH_MASK (1 << 3) | 209 | #define SOFTRESET_6338_USBH_MASK (1 << 3) |
@@ -307,6 +347,8 @@ | |||
307 | /* Watchdog reset length register */ | 347 | /* Watchdog reset length register */ |
308 | #define WDT_RSTLEN_REG 0x8 | 348 | #define WDT_RSTLEN_REG 0x8 |
309 | 349 | ||
350 | /* Watchdog soft reset register (BCM6328 only) */ | ||
351 | #define WDT_SOFTRESET_REG 0xc | ||
310 | 352 | ||
311 | /************************************************************************* | 353 | /************************************************************************* |
312 | * _REG relative to RSET_UARTx | 354 | * _REG relative to RSET_UARTx |
@@ -933,6 +975,8 @@ | |||
933 | * _REG relative to RSET_DDR | 975 | * _REG relative to RSET_DDR |
934 | *************************************************************************/ | 976 | *************************************************************************/ |
935 | 977 | ||
978 | #define DDR_CSEND_REG 0x8 | ||
979 | |||
936 | #define DDR_DMIPSPLLCFG_REG 0x18 | 980 | #define DDR_DMIPSPLLCFG_REG 0x18 |
937 | #define DMIPSPLLCFG_M1_SHIFT 0 | 981 | #define DMIPSPLLCFG_M1_SHIFT 0 |
938 | #define DMIPSPLLCFG_M1_MASK (0xff << DMIPSPLLCFG_M1_SHIFT) | 982 | #define DMIPSPLLCFG_M1_MASK (0xff << DMIPSPLLCFG_M1_SHIFT) |
@@ -1115,4 +1159,14 @@ | |||
1115 | #define SPI_SSOFFTIME_SHIFT 3 | 1159 | #define SPI_SSOFFTIME_SHIFT 3 |
1116 | #define SPI_BYTE_SWAP 0x80 | 1160 | #define SPI_BYTE_SWAP 0x80 |
1117 | 1161 | ||
1162 | /************************************************************************* | ||
1163 | * _REG relative to RSET_MISC | ||
1164 | *************************************************************************/ | ||
1165 | |||
1166 | #define MISC_STRAPBUS_6328_REG 0x240 | ||
1167 | #define STRAPBUS_6328_FCVO_SHIFT 7 | ||
1168 | #define STRAPBUS_6328_FCVO_MASK (0x1f << STRAPBUS_6328_FCVO_SHIFT) | ||
1169 | #define STRAPBUS_6328_BOOT_SEL_SERIAL (1 << 28) | ||
1170 | #define STRAPBUS_6328_BOOT_SEL_NAND (0 << 28) | ||
1171 | |||
1118 | #endif /* BCM63XX_REGS_H_ */ | 1172 | #endif /* BCM63XX_REGS_H_ */ |