summaryrefslogtreecommitdiff
path: root/include/linux/mtd/map.h
diff options
context:
space:
mode:
authorAaron Sierra <asierra@xes-inc.com>2011-11-14 18:44:34 -0600
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 18:06:13 +0000
commit8e987465a137d4824710e02550f06aa891c9b865 (patch)
tree26edb55e4a9fe8f2f9832ba045286d5b18d3cc40 /include/linux/mtd/map.h
parent342ff28f5a2e5aa3236617bd2bddf6c749677ef2 (diff)
mtd: cfi: Allow per-mapping CFI device endianness
This patch allows each CFI device map to use its own endianness. The globally defined CFI endianness (CONFIG_MTD_CFI_NOSWAP, CONFIG_MTD_CFI_BE_BYTE_SWAP or CONFIG_MTD_CFI_LE_BYTE_SWAP) becomes the default value which can be overridden by a driver for a particular device. Signed-off-by: Aaron Sierra <asierra@xes-inc.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/map.h')
-rw-r--r--include/linux/mtd/map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
index a9e6ba46865e..1132410f14c6 100644
--- a/include/linux/mtd/map.h
+++ b/include/linux/mtd/map.h
@@ -214,6 +214,7 @@ struct map_info {
void __iomem *virt;
void *cached;
+ int swap; /* this mapping's byte-swapping requirement */
int bankwidth; /* in octets. This isn't necessarily the width
of actual bus cycles -- it's the repeat interval
in bytes, before you are talking to the first chip again.