Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (c) 2015 Zhang, Keguang <keguang.zhang@gmail.com>
0004  *
0005  * Loongson 1 NAND platform support.
0006  */
0007 
0008 #ifndef __ASM_MACH_LOONGSON32_NAND_H
0009 #define __ASM_MACH_LOONGSON32_NAND_H
0010 
0011 #include <linux/dmaengine.h>
0012 #include <linux/mtd/partitions.h>
0013 
0014 struct plat_ls1x_nand {
0015     struct mtd_partition *parts;
0016     unsigned int nr_parts;
0017 
0018     int hold_cycle;
0019     int wait_cycle;
0020 };
0021 
0022 extern struct plat_ls1x_nand ls1b_nand_pdata;
0023 
0024 bool ls1x_dma_filter_fn(struct dma_chan *chan, void *param);
0025 
0026 #endif /* __ASM_MACH_LOONGSON32_NAND_H */