mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 14:26:44 +07:00
17dd20bd7d
struct nand_chip now embeds an mtd device. Make use of this mtd instance. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
26 lines
432 B
C
26 lines
432 B
C
#ifndef __BCM47XXNFLASH_H
|
|
#define __BCM47XXNFLASH_H
|
|
|
|
#ifndef pr_fmt
|
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
#endif
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/nand.h>
|
|
|
|
struct bcm47xxnflash {
|
|
struct bcma_drv_cc *cc;
|
|
|
|
struct nand_chip nand_chip;
|
|
|
|
unsigned curr_command;
|
|
int curr_page_addr;
|
|
int curr_column;
|
|
|
|
u8 id_data[8];
|
|
};
|
|
|
|
int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
|
|
|
|
#endif /* BCM47XXNFLASH */
|