2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-11-07 06:20:31 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MTD_H_
|
|
|
|
#define _MTD_H_
|
|
|
|
|
2021-09-22 16:29:08 +00:00
|
|
|
#include <dm/device.h>
|
|
|
|
#include <jffs2/load_kernel.h>
|
2015-11-07 06:20:31 +00:00
|
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
|
2018-09-29 10:58:28 +00:00
|
|
|
int mtd_probe_devices(void);
|
2018-09-29 10:58:24 +00:00
|
|
|
|
2020-01-24 12:45:56 +00:00
|
|
|
void board_mtdparts_default(const char **mtdids, const char **mtdparts);
|
|
|
|
|
2021-09-22 16:29:08 +00: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 06:20:31 +00:00
|
|
|
#endif /* _MTD_H_ */
|