mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 01:48:52 +09:00
![Stefan Roese](/assets/img/avatar_default.png)
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>
22 lines
454 B
C
22 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
|
|
|