aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bcma
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-01-30 18:03:37 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:53:06 -0500
commitd6865dcc58f252480515101fd13532f0fc420b53 (patch)
tree4e8ee3ef60d44b81d31337925c018f19929ea7f5 /include/linux/bcma
parent8f9ada4fa1926e540b1562cb9bacb3e51a698c35 (diff)
bcma: add extra sprom check
This check is needed on the BCM43224 device as it says in the capabilities it has an sprom but is extra check says it has not. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/bcma')
-rw-r--r--include/linux/bcma/bcma_driver_chipcommon.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index a33086a7530b..e72938b10714 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -181,6 +181,22 @@
181#define BCMA_CC_FLASH_CFG 0x0128 181#define BCMA_CC_FLASH_CFG 0x0128
182#define BCMA_CC_FLASH_CFG_DS 0x0010 /* Data size, 0=8bit, 1=16bit */ 182#define BCMA_CC_FLASH_CFG_DS 0x0010 /* Data size, 0=8bit, 1=16bit */
183#define BCMA_CC_FLASH_WAITCNT 0x012C 183#define BCMA_CC_FLASH_WAITCNT 0x012C
184#define BCMA_CC_SROM_CONTROL 0x0190
185#define BCMA_CC_SROM_CONTROL_START 0x80000000
186#define BCMA_CC_SROM_CONTROL_BUSY 0x80000000
187#define BCMA_CC_SROM_CONTROL_OPCODE 0x60000000
188#define BCMA_CC_SROM_CONTROL_OP_READ 0x00000000
189#define BCMA_CC_SROM_CONTROL_OP_WRITE 0x20000000
190#define BCMA_CC_SROM_CONTROL_OP_WRDIS 0x40000000
191#define BCMA_CC_SROM_CONTROL_OP_WREN 0x60000000
192#define BCMA_CC_SROM_CONTROL_OTPSEL 0x00000010
193#define BCMA_CC_SROM_CONTROL_LOCK 0x00000008
194#define BCMA_CC_SROM_CONTROL_SIZE_MASK 0x00000006
195#define BCMA_CC_SROM_CONTROL_SIZE_1K 0x00000000
196#define BCMA_CC_SROM_CONTROL_SIZE_4K 0x00000002
197#define BCMA_CC_SROM_CONTROL_SIZE_16K 0x00000004
198#define BCMA_CC_SROM_CONTROL_SIZE_SHIFT 1
199#define BCMA_CC_SROM_CONTROL_PRESENT 0x00000001
184/* 0x1E0 is defined as shared BCMA_CLKCTLST */ 200/* 0x1E0 is defined as shared BCMA_CLKCTLST */
185#define BCMA_CC_HW_WORKAROUND 0x01E4 /* Hardware workaround (rev >= 20) */ 201#define BCMA_CC_HW_WORKAROUND 0x01E4 /* Hardware workaround (rev >= 20) */
186#define BCMA_CC_UART0_DATA 0x0300 202#define BCMA_CC_UART0_DATA 0x0300