2013-01-06 20:28:50 +00:00
|
|
|
#ifndef __BCM47XXSFLASH_H
|
|
|
|
#define __BCM47XXSFLASH_H
|
|
|
|
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
|
2013-03-06 11:33:17 +00:00
|
|
|
struct bcma_drv_cc;
|
|
|
|
|
2013-03-06 11:34:19 +00:00
|
|
|
enum bcm47xxsflash_type {
|
|
|
|
BCM47XXSFLASH_TYPE_ATMEL,
|
|
|
|
BCM47XXSFLASH_TYPE_ST,
|
|
|
|
};
|
|
|
|
|
2013-01-06 20:28:50 +00:00
|
|
|
struct bcm47xxsflash {
|
2013-03-06 11:33:17 +00:00
|
|
|
struct bcma_drv_cc *bcma_cc;
|
|
|
|
|
2013-03-06 11:34:19 +00:00
|
|
|
enum bcm47xxsflash_type type;
|
|
|
|
|
2013-01-06 20:28:50 +00:00
|
|
|
u32 window;
|
|
|
|
u32 blocksize;
|
|
|
|
u16 numblocks;
|
|
|
|
u32 size;
|
|
|
|
|
|
|
|
struct mtd_info mtd;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BCM47XXSFLASH */
|