blob: 01306ebe266dad9421f09d545ac6389cb6f56eda [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +04002/*
3 * SharpSL NAND support
4 *
5 * Copyright (C) 2008 Dmitry Baryshkov
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +04006 */
7
Boris Brezillond4092d72017-08-04 17:29:10 +02008#include <linux/mtd/rawnand.h>
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +04009#include <linux/mtd/nand_ecc.h>
10#include <linux/mtd/partitions.h>
11
12struct sharpsl_nand_platform_data {
13 struct nand_bbt_descr *badblock_pattern;
Boris Brezillone5b2d302016-02-03 19:58:11 +010014 const struct mtd_ooblayout_ops *ecc_layout;
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +040015 struct mtd_partition *partitions;
16 unsigned int nr_partitions;
Andrea Adamie59ad6f2017-08-14 22:48:33 +020017 const char *const *part_parsers;
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +040018};