Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Thomas Chou | e51b65e | 2015-11-07 14:20:31 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw> |
Thomas Chou | e51b65e | 2015-11-07 14:20:31 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _MTD_H_ |
| 7 | #define _MTD_H_ |
| 8 | |
Patrick Delaunay | 9838538 | 2021-09-22 18:29:08 +0200 | [diff] [blame] | 9 | #include <dm/device.h> |
| 10 | #include <jffs2/load_kernel.h> |
Thomas Chou | e51b65e | 2015-11-07 14:20:31 +0800 | [diff] [blame] | 11 | #include <linux/mtd/mtd.h> |
| 12 | |
Miquel Raynal | 741f4c7 | 2018-09-29 12:58:28 +0200 | [diff] [blame] | 13 | int mtd_probe_devices(void); |
Miquel Raynal | aa168ac | 2018-09-29 12:58:24 +0200 | [diff] [blame] | 14 | |
Patrick Delaunay | 4a10f56 | 2020-01-24 13:45:56 +0100 | [diff] [blame] | 15 | void board_mtdparts_default(const char **mtdids, const char **mtdparts); |
| 16 | |
Patrick Delaunay | 9838538 | 2021-09-22 18:29:08 +0200 | [diff] [blame] | 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 | |
Thomas Chou | e51b65e | 2015-11-07 14:20:31 +0800 | [diff] [blame] | 20 | #endif /* _MTD_H_ */ |