aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bcma
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2012-08-10 15:23:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-08-21 16:05:52 -0400
commitd57ef3a6a2eeb88df47e892c66692e3f59722ffe (patch)
treedb2f260a55ce24cfed110cb6281674a5fbcb0a86 /include/linux/bcma
parent01e17dacd47101ad7d33152bbfbbd4394352d2e6 (diff)
bcma: detect and register serial flash device
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/bcma')
-rw-r--r--include/linux/bcma/bcma_driver_chipcommon.h13
-rw-r--r--include/linux/bcma/bcma_regs.h2
2 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index fcb06fb284eb..bed89694c5f9 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -509,6 +509,16 @@ struct bcma_pflash {
509 u32 window_size; 509 u32 window_size;
510}; 510};
511 511
512#ifdef CONFIG_BCMA_SFLASH
513struct bcma_sflash {
514 bool present;
515 u32 window;
516 u32 blocksize;
517 u16 numblocks;
518 u32 size;
519};
520#endif
521
512struct bcma_serial_port { 522struct bcma_serial_port {
513 void *regs; 523 void *regs;
514 unsigned long clockspeed; 524 unsigned long clockspeed;
@@ -529,6 +539,9 @@ struct bcma_drv_cc {
529 struct bcma_chipcommon_pmu pmu; 539 struct bcma_chipcommon_pmu pmu;
530#ifdef CONFIG_BCMA_DRIVER_MIPS 540#ifdef CONFIG_BCMA_DRIVER_MIPS
531 struct bcma_pflash pflash; 541 struct bcma_pflash pflash;
542#ifdef CONFIG_BCMA_SFLASH
543 struct bcma_sflash sflash;
544#endif
532 545
533 int nr_serial_ports; 546 int nr_serial_ports;
534 struct bcma_serial_port serial_ports[4]; 547 struct bcma_serial_port serial_ports[4];
diff --git a/include/linux/bcma/bcma_regs.h b/include/linux/bcma/bcma_regs.h
index a393e82bf7bf..6c9cb93ae3de 100644
--- a/include/linux/bcma/bcma_regs.h
+++ b/include/linux/bcma/bcma_regs.h
@@ -85,4 +85,6 @@
85 * (2 ZettaBytes), high 32 bits 85 * (2 ZettaBytes), high 32 bits
86 */ 86 */
87 87
88#define BCMA_SFLASH 0x1c000000
89
88#endif /* LINUX_BCMA_REGS_H_ */ 90#endif /* LINUX_BCMA_REGS_H_ */