xref: /linux-6.15/include/linux/mtd/physmap.h (revision 2874c5fd)
1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
21da177e4SLinus Torvalds /*
31da177e4SLinus Torvalds  * For boards with physically mapped flash and using
41da177e4SLinus Torvalds  * drivers/mtd/maps/physmap.c mapping driver.
51da177e4SLinus Torvalds  *
61da177e4SLinus Torvalds  * Copyright (C) 2003 MontaVista Software Inc.
71da177e4SLinus Torvalds  * Author: Jun Sun, [email protected] or [email protected]
81da177e4SLinus Torvalds  */
91da177e4SLinus Torvalds 
101da177e4SLinus Torvalds #ifndef __LINUX_MTD_PHYSMAP__
110d4e30d2SDavid Woodhouse #define __LINUX_MTD_PHYSMAP__
121da177e4SLinus Torvalds 
131da177e4SLinus Torvalds #include <linux/mtd/mtd.h>
141da177e4SLinus Torvalds #include <linux/mtd/partitions.h>
151da177e4SLinus Torvalds 
16ad7d3144SHaavard Skinnemoen struct map_info;
1763da0290SRandy Dunlap struct platform_device;
18ad7d3144SHaavard Skinnemoen 
1973566edfSLennert Buytenhek struct physmap_flash_data {
2073566edfSLennert Buytenhek 	unsigned int		width;
21b7281ca2SMarc Zyngier 	int			(*init)(struct platform_device *);
22b7281ca2SMarc Zyngier 	void			(*exit)(struct platform_device *);
23667f390bSMarc Zyngier 	void			(*set_vpp)(struct platform_device *, int);
2473566edfSLennert Buytenhek 	unsigned int		nr_parts;
25d8140830SAlexey Korolev 	unsigned int		pfow_base;
2678ef7fabSBarry Song 	char                    *probe_type;
2773566edfSLennert Buytenhek 	struct mtd_partition	*parts;
28f39cf6c7SArtem Bityutskiy 	const char * const	*part_probe_types;
2973566edfSLennert Buytenhek };
301da177e4SLinus Torvalds 
311da177e4SLinus Torvalds #endif /* __LINUX_MTD_PHYSMAP__ */
32