diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-07-22 19:20:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-08 14:29:26 -0400 |
commit | 21e0534ad7415559bb8dee0dc00e39646fed83c9 (patch) | |
tree | e9e082dfdf6ce9798d6201f1ae4109b68b11920a /include/linux/bcma/bcma_driver_chipcommon.h | |
parent | ecd177c21640e92b059a71139f5850243a8f0942 (diff) |
bcma: add mips driver
This adds a mips driver to bcma. This is only found on embedded
devices. For now the driver just initializes the irqs used on this
system.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/bcma/bcma_driver_chipcommon.h')
-rw-r--r-- | include/linux/bcma/bcma_driver_chipcommon.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index c8b4cf7f9fae..03cde8d22e5f 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h | |||
@@ -24,6 +24,7 @@ | |||
24 | #define BCMA_CC_FLASHT_NONE 0x00000000 /* No flash */ | 24 | #define BCMA_CC_FLASHT_NONE 0x00000000 /* No flash */ |
25 | #define BCMA_CC_FLASHT_STSER 0x00000100 /* ST serial flash */ | 25 | #define BCMA_CC_FLASHT_STSER 0x00000100 /* ST serial flash */ |
26 | #define BCMA_CC_FLASHT_ATSER 0x00000200 /* Atmel serial flash */ | 26 | #define BCMA_CC_FLASHT_ATSER 0x00000200 /* Atmel serial flash */ |
27 | #define BCMA_CC_FLASHT_NFLASH 0x00000200 | ||
27 | #define BCMA_CC_FLASHT_PARA 0x00000700 /* Parallel flash */ | 28 | #define BCMA_CC_FLASHT_PARA 0x00000700 /* Parallel flash */ |
28 | #define BCMA_CC_CAP_PLLT 0x00038000 /* PLL Type */ | 29 | #define BCMA_CC_CAP_PLLT 0x00038000 /* PLL Type */ |
29 | #define BCMA_PLLTYPE_NONE 0x00000000 | 30 | #define BCMA_PLLTYPE_NONE 0x00000000 |
@@ -178,6 +179,7 @@ | |||
178 | #define BCMA_CC_PROG_CFG 0x0120 | 179 | #define BCMA_CC_PROG_CFG 0x0120 |
179 | #define BCMA_CC_PROG_WAITCNT 0x0124 | 180 | #define BCMA_CC_PROG_WAITCNT 0x0124 |
180 | #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 */ | ||
181 | #define BCMA_CC_FLASH_WAITCNT 0x012C | 183 | #define BCMA_CC_FLASH_WAITCNT 0x012C |
182 | /* 0x1E0 is defined as shared BCMA_CLKCTLST */ | 184 | /* 0x1E0 is defined as shared BCMA_CLKCTLST */ |
183 | #define BCMA_CC_HW_WORKAROUND 0x01E4 /* Hardware workaround (rev >= 20) */ | 185 | #define BCMA_CC_HW_WORKAROUND 0x01E4 /* Hardware workaround (rev >= 20) */ |
@@ -247,6 +249,14 @@ struct bcma_chipcommon_pmu { | |||
247 | u32 crystalfreq; /* The active crystal frequency (in kHz) */ | 249 | u32 crystalfreq; /* The active crystal frequency (in kHz) */ |
248 | }; | 250 | }; |
249 | 251 | ||
252 | #ifdef CONFIG_BCMA_DRIVER_MIPS | ||
253 | struct bcma_pflash { | ||
254 | u8 buswidth; | ||
255 | u32 window; | ||
256 | u32 window_size; | ||
257 | }; | ||
258 | #endif /* CONFIG_BCMA_DRIVER_MIPS */ | ||
259 | |||
250 | struct bcma_drv_cc { | 260 | struct bcma_drv_cc { |
251 | struct bcma_device *core; | 261 | struct bcma_device *core; |
252 | u32 status; | 262 | u32 status; |
@@ -256,6 +266,9 @@ struct bcma_drv_cc { | |||
256 | /* Fast Powerup Delay constant */ | 266 | /* Fast Powerup Delay constant */ |
257 | u16 fast_pwrup_delay; | 267 | u16 fast_pwrup_delay; |
258 | struct bcma_chipcommon_pmu pmu; | 268 | struct bcma_chipcommon_pmu pmu; |
269 | #ifdef CONFIG_BCMA_DRIVER_MIPS | ||
270 | struct bcma_pflash pflash; | ||
271 | #endif /* CONFIG_BCMA_DRIVER_MIPS */ | ||
259 | }; | 272 | }; |
260 | 273 | ||
261 | /* Register access */ | 274 | /* Register access */ |