2018-05-06 17:58:06 -04:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-11-07 14:20:31 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MTD_H_
|
|
|
|
#define _MTD_H_
|
|
|
|
|
2021-09-22 18:29:08 +02:00
|
|
|
#include <dm/device.h>
|
|
|
|
#include <jffs2/load_kernel.h>
|
2015-11-07 14:20:31 +08:00
|
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
|
2018-09-29 12:58:28 +02:00
|
|
|
int mtd_probe_devices(void);
|
2018-09-29 12:58:24 +02:00
|
|
|
|
2020-01-24 13:45:56 +01:00
|
|
|
void board_mtdparts_default(const char **mtdids, const char **mtdparts);
|
|
|
|
|
2021-09-22 18:29:08 +02:00
|
|
|
/* compute the max size for the string associated to a dev type */
|
|
|
|
#define MTD_NAME_SIZE(type) (sizeof(MTD_DEV_TYPE(type)) + DM_MAX_SEQ_STR)
|
|
|
|
|
2015-11-07 14:20:31 +08:00
|
|
|
#endif /* _MTD_H_ */
|