Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (c) 2015 Zhang, Keguang <keguang.zhang@gmail.com>
4 *
5 * Loongson 1 NAND platform support.
6 */
7
8#ifndef __ASM_MACH_LOONGSON32_NAND_H
9#define __ASM_MACH_LOONGSON32_NAND_H
10
11#include <linux/dmaengine.h>
12#include <linux/mtd/partitions.h>
13
14struct plat_ls1x_nand {
15 struct mtd_partition *parts;
16 unsigned int nr_parts;
17
18 int hold_cycle;
19 int wait_cycle;
20};
21
22extern struct plat_ls1x_nand ls1b_nand_pdata;
23
24bool ls1x_dma_filter_fn(struct dma_chan *chan, void *param);
25
26#endif /* __ASM_MACH_LOONGSON32_NAND_H */
1/*
2 * Copyright (c) 2015 Zhang, Keguang <keguang.zhang@gmail.com>
3 *
4 * Loongson 1 NAND platform support.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 */
11
12#ifndef __ASM_MACH_LOONGSON32_NAND_H
13#define __ASM_MACH_LOONGSON32_NAND_H
14
15#include <linux/dmaengine.h>
16#include <linux/mtd/partitions.h>
17
18struct plat_ls1x_nand {
19 struct mtd_partition *parts;
20 unsigned int nr_parts;
21
22 int hold_cycle;
23 int wait_cycle;
24};
25
26extern struct plat_ls1x_nand ls1b_nand_pdata;
27
28bool ls1x_dma_filter_fn(struct dma_chan *chan, void *param);
29
30#endif /* __ASM_MACH_LOONGSON32_NAND_H */