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