]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54be2c9e416721a398d2898773c84c72bd993fa9
treea9210282810f07266f7b86cc2f1a6402ea6ac6bb
parentf2af667d0110410e64643852e542cd4d5e80882b
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