blob: 09441856d24416e19aef1042d4836ee2fad30a16 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Uwe Zeisbergerf30c2262006-10-03 23:01:26 +02002/* linux/include/linux/mtd/plat-ram.h
Ben Dooks99f2a8aea2005-01-24 00:37:04 +00003 *
4 * (c) 2004 Simtec Electronics
5 * http://www.simtec.co.uk/products/SWLINUX/
6 * Ben Dooks <ben@simtec.co.uk>
7 *
8 * Generic platform device based RAM map
Ben Dooks99f2a8aea2005-01-24 00:37:04 +00009 */
10
11#ifndef __LINUX_MTD_PLATRAM_H
12#define __LINUX_MTD_PLATRAM_H __FILE__
13
14#define PLATRAM_RO (0)
15#define PLATRAM_RW (1)
16
17struct platdata_mtd_ram {
Florian Fainelli757570062008-03-03 18:30:24 +010018 const char *mapname;
Artem Bityutskiyd50dcb12013-03-12 10:28:31 +020019 const char * const *map_probes;
20 const char * const *probes;
Ben Dooks99f2a8aea2005-01-24 00:37:04 +000021 struct mtd_partition *partitions;
22 int nr_partitions;
23 int bankwidth;
24
25 /* control callbacks */
26
27 void (*set_rw)(struct device *dev, int to);
28};
29
30#endif /* __LINUX_MTD_PLATRAM_H */