blob: 8ea75710a854410de704503a4bb6d2ff5b64b901 [file] [log] [blame]
Rafał Miłeckia54013702012-11-12 13:03:21 +01001#ifndef __BCM47XXNFLASH_H
2#define __BCM47XXNFLASH_H
3
Rafał Miłeckibe0638d2013-02-07 11:56:04 +01004#ifndef pr_fmt
5#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
6#endif
7
Rafał Miłeckia54013702012-11-12 13:03:21 +01008#include <linux/mtd/mtd.h>
9#include <linux/mtd/nand.h>
10
11struct bcm47xxnflash {
12 struct bcma_drv_cc *cc;
13
14 struct nand_chip nand_chip;
Rafał Miłecki0fbc5992012-11-12 13:03:23 +010015
16 unsigned curr_command;
Rafał Miłecki3c01d4c2012-11-12 13:03:24 +010017 int curr_page_addr;
Rafał Miłecki0fbc5992012-11-12 13:03:23 +010018 int curr_column;
19
20 u8 id_data[8];
Rafał Miłeckia54013702012-11-12 13:03:21 +010021};
22
Rafał Miłecki00940a22012-11-12 13:03:25 +010023int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
24
Rafał Miłeckia54013702012-11-12 13:03:21 +010025#endif /* BCM47XXNFLASH */