mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
0a57265533
This patch adds concatenation support to the U-Boot MTD infrastructure. By enabling CONFIG_MTD_CONCAT this MTD CFI wrapper will concatenate all found NOR devices into one single MTD device. This can be used by e.g by UBI to access a partition that spans over multiple NOR chips. Signed-off-by: Stefan Roese <sr@denx.de>
21 lines
454 B
C
21 lines
454 B
C
/*
|
|
* MTD device concatenation layer definitions
|
|
*
|
|
* (C) 2002 Robert Kaiser <rkaiser@sysgo.de>
|
|
*
|
|
* This code is GPL
|
|
*/
|
|
|
|
#ifndef MTD_CONCAT_H
|
|
#define MTD_CONCAT_H
|
|
|
|
|
|
struct mtd_info *mtd_concat_create(
|
|
struct mtd_info *subdev[], /* subdevices to concatenate */
|
|
int num_devs, /* number of subdevices */
|
|
const char *name); /* name for the new device */
|
|
|
|
void mtd_concat_destroy(struct mtd_info *mtd);
|
|
|
|
#endif
|
|
|