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