]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
d8587993 TC |
2 | /* |
3 | * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw> | |
d8587993 TC |
4 | */ |
5 | ||
6 | #ifndef _MTD_H_ | |
7 | #define _MTD_H_ | |
8 | ||
a4f2d834 PD |
9 | #include <dm/device.h> |
10 | #include <jffs2/load_kernel.h> | |
d8587993 TC |
11 | #include <linux/mtd/mtd.h> |
12 | ||
5db66b3a | 13 | int mtd_probe_devices(void); |
e9f62db6 | 14 | |
683b7c2a PD |
15 | void board_mtdparts_default(const char **mtdids, const char **mtdparts); |
16 | ||
a4f2d834 PD |
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) | |
19 | ||
d8587993 | 20 | #endif /* _MTD_H_ */ |