blob: e1845fc4afbd00a0538e14bae74ea663fbf1ed05 [file] [log] [blame]
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +04001/*
2 * SharpSL NAND support
3 *
4 * Copyright (C) 2008 Dmitry Baryshkov
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
Boris Brezillond4092d72017-08-04 17:29:10 +020011#include <linux/mtd/rawnand.h>
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +040012#include <linux/mtd/nand_ecc.h>
13#include <linux/mtd/partitions.h>
14
15struct sharpsl_nand_platform_data {
16 struct nand_bbt_descr *badblock_pattern;
Boris Brezillone5b2d302016-02-03 19:58:11 +010017 const struct mtd_ooblayout_ops *ecc_layout;
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +040018 struct mtd_partition *partitions;
19 unsigned int nr_partitions;
Andrea Adamie59ad6f2017-08-14 22:48:33 +020020 const char *const *part_parsers;
Dmitry Baryshkova20c7ab2008-10-16 18:43:48 +040021};