1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2022 MediaTek Inc. All rights reserved. 4 * 5 * Author: Weijie Gao <weijie.gao@mediatek.com> 6 */ 7 8 #ifndef _MT7621_NAND_H_ 9 #define _MT7621_NAND_H_ 10 11 #include <linux/types.h> 12 #include <linux/mtd/mtd.h> 13 #include <linux/compiler.h> 14 #include <linux/mtd/rawnand.h> 15 16 struct mt7621_nfc { 17 struct nand_chip nand; 18 19 void __iomem *nfi_regs; 20 void __iomem *ecc_regs; 21 22 u32 spare_per_sector; 23 }; 24 25 /* for SPL */ 26 void mt7621_nfc_spl_init(struct mt7621_nfc *nfc); 27 int mt7621_nfc_spl_post_init(struct mt7621_nfc *nfc); 28 29 #endif /* _MT7621_NAND_H_ */ 30