mtd: add read_byte support to plat_nand
authorJohn Crispin <blogic@openwrt.org>
Mon, 30 Apr 2012 17:30:47 +0000 (19:30 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:16:53 +0000 (23:16 -0500)
commitb4f7aa84d6ff44327ab91a2973ebf0c2a7797d24
treea9210282810f07266f7b86cc2f1a6402ea6ac6bb
parenta4f203512be974dbd7425f8f1d3d40720bf36997
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>
drivers/mtd/nand/plat_nand.c
include/linux/mtd/nand.h