mtd: physmap_of: Add "no-unaligned-direct-access" DT property
authorStefan Roese <sr@denx.de>
Fri, 17 Aug 2012 13:22:32 +0000 (15:22 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:05:55 +0000 (15:05 +0100)
commitd0788ce4924758249c9552c91cc33024d3434419
tree5d490b8024a663de0fa4fc8cf3c876f94fd4c7c9
parente1ed147fd4a322741e63f66d76e68ad83876d2ea
mtd: physmap_of: Add "no-unaligned-direct-access" DT property

On some platforms (e.g. MPC5200) a direct 1:1 mapping may cause
problems with JFFS2 usage, as the local bus (LPB) doesn't support
unaligned accesses as implemented in the JFFS2 code via memcpy().
By defining "no-unaligned-direct-access", the flash will not be
exposed directly to the MTD users (e.g. JFFS2) any more.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Documentation/devicetree/bindings/mtd/mtd-physmap.txt
drivers/mtd/maps/physmap_of.c