Prepare v2025.01
[u-boot.git] / include / mtd.h
blobf9e5082446a08e17d16400bc7d6e8f0e93dd7834
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
4 */
6 #ifndef _MTD_H_
7 #define _MTD_H_
9 #include <dm/device.h>
10 #include <jffs2/load_kernel.h>
11 #include <linux/mtd/mtd.h>
13 int mtd_probe_devices(void);
15 void board_mtdparts_default(const char **mtdids, const char **mtdparts);
17 /* compute the max size for the string associated to a dev type */
18 #define MTD_NAME_SIZE(type) (sizeof(MTD_DEV_TYPE(type)) + DM_MAX_SEQ_STR)
20 #endif /* _MTD_H_ */