mtd.h 488 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
  4. */
  5. #ifndef _MTD_H_
  6. #define _MTD_H_
  7. #include <dm/device.h>
  8. #include <jffs2/load_kernel.h>
  9. #include <linux/mtd/mtd.h>
  10. int mtd_probe_devices(void);
  11. void board_mtdparts_default(const char **mtdids, const char **mtdparts);
  12. /* compute the max size for the string associated to a dev type */
  13. #define MTD_NAME_SIZE(type) (sizeof(MTD_DEV_TYPE(type)) + DM_MAX_SEQ_STR)
  14. #endif /* _MTD_H_ */