1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * For boards with physically mapped flash and using
4 * drivers/mtd/maps/physmap.c mapping driver.
6 * Copyright (C) 2003 MontaVista Software Inc.
7 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
10 #ifndef __LINUX_MTD_PHYSMAP__
11 #define __LINUX_MTD_PHYSMAP__
13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/partitions.h>
17 struct platform_device;
19 struct physmap_flash_data {
21 int (*init)(struct platform_device *);
22 void (*exit)(struct platform_device *);
23 void (*set_vpp)(struct platform_device *, int);
24 unsigned int nr_parts;
25 unsigned int pfow_base;
27 struct mtd_partition *parts;
28 const char * const *part_probe_types;
31 #endif /* __LINUX_MTD_PHYSMAP__ */