hc
2024-03-22 f63cd4c03ea42695d5f9b0e1798edd196923aae6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
 *  JZ4740 SoC NAND controller driver
 */
 
#ifndef __JZ4740_NAND_H__
#define __JZ4740_NAND_H__
 
#include <linux/mtd/rawnand.h>
#include <linux/mtd/partitions.h>
 
#define JZ_NAND_NUM_BANKS 4
 
struct jz_nand_platform_data {
   int            num_partitions;
   struct mtd_partition    *partitions;
 
   unsigned char banks[JZ_NAND_NUM_BANKS];
 
   void (*ident_callback)(struct platform_device *, struct mtd_info *,
               struct mtd_partition **, int *num_partitions);
};
 
#endif