diff options
| author | Stefan Roese <sr@denx.de> | 2009-05-12 14:29:39 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:45:47 +0200 | 
| commit | 0a57265533c412adf6024f4b4955141f4346b2b9 (patch) | |
| tree | 011c00b2cfb16aa1cb9e01f2938d7664209c4f2c /include/linux/mtd/compat.h | |
| parent | 55e0ed6078b10b0d425b6a0677f38a015c277df6 (diff) | |
| download | olio-uboot-2014.01-0a57265533c412adf6024f4b4955141f4346b2b9.tar.xz olio-uboot-2014.01-0a57265533c412adf6024f4b4955141f4346b2b9.zip | |
mtd: Add MTD concat support to concatenate multiple MTD NOR devices
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>
Diffstat (limited to 'include/linux/mtd/compat.h')
| -rw-r--r-- | include/linux/mtd/compat.h | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/include/linux/mtd/compat.h b/include/linux/mtd/compat.h index 9036b74f8..f0c8464db 100644 --- a/include/linux/mtd/compat.h +++ b/include/linux/mtd/compat.h @@ -19,11 +19,15 @@  #define kmalloc(size, flags)	malloc(size)  #define kzalloc(size, flags)	calloc(size, 1) -#define vmalloc(size)			malloc(size) -#define kfree(ptr)				free(ptr) -#define vfree(ptr)				free(ptr) +#define vmalloc(size)		malloc(size) +#define kfree(ptr)		free(ptr) +#define vfree(ptr)		free(ptr) -#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#define DECLARE_WAITQUEUE(...)	do { } while (0) +#define add_wait_queue(...)	do { } while (0) +#define remove_wait_queue(...)	do { } while (0) + +#define KERNEL_VERSION(a,b,c)	(((a) << 16) + ((b) << 8) + (c))  /*   * ..and if you can't take the strict |