]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
a5401370 RM |
2 | #ifndef __BCM47XXNFLASH_H |
3 | #define __BCM47XXNFLASH_H | |
4 | ||
be0638d9 RM |
5 | #ifndef pr_fmt |
6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | |
7 | #endif | |
8 | ||
a5401370 | 9 | #include <linux/mtd/mtd.h> |
d4092d76 | 10 | #include <linux/mtd/rawnand.h> |
a5401370 RM |
11 | |
12 | struct bcm47xxnflash { | |
13 | struct bcma_drv_cc *cc; | |
14 | ||
15 | struct nand_chip nand_chip; | |
0fbc5991 RM |
16 | |
17 | unsigned curr_command; | |
3c01d4cb | 18 | int curr_page_addr; |
0fbc5991 RM |
19 | int curr_column; |
20 | ||
21 | u8 id_data[8]; | |
a5401370 RM |
22 | }; |
23 | ||
00940a23 RM |
24 | int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n); |
25 | ||
a5401370 | 26 | #endif /* BCM47XXNFLASH */ |