blob: af4bc55961a86640be413d97a1811dd936b3f1b0 [file] [log] [blame]
developer10a61df2022-05-20 11:23:47 +08001/* 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
16struct 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 */
26void mt7621_nfc_spl_init(struct mt7621_nfc *nfc);
27int mt7621_nfc_spl_post_init(struct mt7621_nfc *nfc);
28
29#endif /* _MT7621_NAND_H_ */