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>
This commit is contained in:
Rafał Miłecki 2012-08-10 21:23:53 +02:00 committed by John W. Linville
parent 01e17dacd4
commit d57ef3a6a2
6 changed files with 146 additions and 4 deletions

View file

@ -509,6 +509,16 @@ struct bcma_pflash {
u32 window_size;
};
#ifdef CONFIG_BCMA_SFLASH
struct bcma_sflash {
bool present;
u32 window;
u32 blocksize;
u16 numblocks;
u32 size;
};
#endif
struct bcma_serial_port {
void *regs;
unsigned long clockspeed;
@ -529,6 +539,9 @@ struct bcma_drv_cc {
struct bcma_chipcommon_pmu pmu;
#ifdef CONFIG_BCMA_DRIVER_MIPS
struct bcma_pflash pflash;
#ifdef CONFIG_BCMA_SFLASH
struct bcma_sflash sflash;
#endif
int nr_serial_ports;
struct bcma_serial_port serial_ports[4];