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