root/include/linux/platform_data/jz4740/jz4740_nand.h

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

/* [<][>][^][v][top][bottom][index][help] */