2019-05-27 08:55:00 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2010-07-17 11:15:29 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
|
|
|
|
* JZ4740 SoC NAND controller driver
|
|
|
|
*/
|
|
|
|
|
2018-07-09 22:09:42 +02:00
|
|
|
#ifndef __JZ4740_NAND_H__
|
|
|
|
#define __JZ4740_NAND_H__
|
2010-07-17 11:15:29 +00:00
|
|
|
|
2017-08-04 17:29:10 +02:00
|
|
|
#include <linux/mtd/rawnand.h>
|
2010-07-17 11:15:29 +00:00
|
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
|
2012-03-29 19:17:01 +02:00
|
|
|
#define JZ_NAND_NUM_BANKS 4
|
|
|
|
|
2010-07-17 11:15:29 +00:00
|
|
|
struct jz_nand_platform_data {
|
|
|
|
int num_partitions;
|
|
|
|
struct mtd_partition *partitions;
|
|
|
|
|
2012-03-29 19:17:01 +02:00
|
|
|
unsigned char banks[JZ_NAND_NUM_BANKS];
|
|
|
|
|
2016-02-03 19:58:55 +01:00
|
|
|
void (*ident_callback)(struct platform_device *, struct mtd_info *,
|
2010-07-17 11:15:29 +00:00
|
|
|
struct mtd_partition **, int *num_partitions);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|