blob: d2c3cf29e0d17ca03b2552dfca9f78890b6c02da [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * SharpSL NAND support
4 *
5 * Copyright (C) 2008 Dmitry Baryshkov
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
7
David Brazdil0f672f62019-12-10 10:32:29 +00008#ifndef _MTD_SHARPSL_H
9#define _MTD_SHARPSL_H
10
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011#include <linux/mtd/rawnand.h>
12#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;
17 const struct mtd_ooblayout_ops *ecc_layout;
18 struct mtd_partition *partitions;
19 unsigned int nr_partitions;
20 const char *const *part_parsers;
21};
David Brazdil0f672f62019-12-10 10:32:29 +000022
23#endif /* _MTD_SHARPSL_H */