blob: 0bdb2ce4da7510f7630d3ec382c79092e83258b9 [file] [log] [blame]
Rafał Miłeckia54013702012-11-12 13:03:21 +01001#ifndef __BCM47XXNFLASH_H
2#define __BCM47XXNFLASH_H
3
4#include <linux/mtd/mtd.h>
5#include <linux/mtd/nand.h>
6
7struct bcm47xxnflash {
8 struct bcma_drv_cc *cc;
9
10 struct nand_chip nand_chip;
11 struct mtd_info mtd;
Rafał Miłecki0fbc5992012-11-12 13:03:23 +010012
13 unsigned curr_command;
Rafał Miłecki3c01d4c2012-11-12 13:03:24 +010014 int curr_page_addr;
Rafał Miłecki0fbc5992012-11-12 13:03:23 +010015 int curr_column;
16
17 u8 id_data[8];
Rafał Miłeckia54013702012-11-12 13:03:21 +010018};
19
Rafał Miłecki00940a22012-11-12 13:03:25 +010020int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
21
Rafał Miłeckia54013702012-11-12 13:03:21 +010022#endif /* BCM47XXNFLASH */