blob: c005a62330b14f5444a6d5d5e65961fa27e6ce31 [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;
15 struct mtd_info mtd;
Rafał Miłecki0fbc5992012-11-12 13:03:23 +010016
17 unsigned curr_command;
Rafał Miłecki3c01d4c2012-11-12 13:03:24 +010018 int curr_page_addr;
Rafał Miłecki0fbc5992012-11-12 13:03:23 +010019 int curr_column;
20
21 u8 id_data[8];
Rafał Miłeckia54013702012-11-12 13:03:21 +010022};
23
Rafał Miłecki00940a22012-11-12 13:03:25 +010024int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
25
Rafał Miłeckia54013702012-11-12 13:03:21 +010026#endif /* BCM47XXNFLASH */