summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-04-30 19:30:47 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-05-13 23:16:53 -0500
commitb4f7aa84d6ff44327ab91a2973ebf0c2a7797d24 (patch)
treea9210282810f07266f7b86cc2f1a6402ea6ac6bb /include
parenta4f203512be974dbd7425f8f1d3d40720bf36997 (diff)
downloadlinux-stable-b4f7aa84d6ff44327ab91a2973ebf0c2a7797d24.tar.gz
linux-stable-b4f7aa84d6ff44327ab91a2973ebf0c2a7797d24.tar.bz2
linux-stable-b4f7aa84d6ff44327ab91a2973ebf0c2a7797d24.zip
mtd: add read_byte support to plat_nand
Lantiq SoCs have a External Bus Unit (EBU) that is used to attach MTD media. As we need to co-exist with PCI on the same bus, certain swapping settings must be applied. Similar to the NOR map driver we need to apply a fix to make NAND work. The easiest way is to use byte reads. Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/nand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 627f0c575ac4..94a6679bfc2e 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -654,6 +654,7 @@ struct platform_nand_ctrl {
void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
+ unsigned char (*read_byte)(struct mtd_info *mtd);
void *priv;
};