]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: physmap_of: update struct map_info's swap as per map requirement
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 28 Mar 2018 05:45:52 +0000 (11:15 +0530)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 29 Mar 2018 07:31:37 +0000 (09:31 +0200)
commitf4c4df65f9289a6d1cf823254968e6fdd40b438e
treea4376cb1ba0197dab5fb145c405af070f6764f5f
parentb5d272488ea498e9b1382a4757039352db09900a
mtd: physmap_of: update struct map_info's swap as per map requirement

It is not necessary for all device's maps to be CFI_HOST_ENDIAN.
Maps device can be Big endian or little endian.

Currently it is being taken care using CONFIG_MTD_CFI_LE_BYTE_SWAP or
CONFIG_MTD_CFI_BE_BYTE_SWAP i.e. compile time.

Now update struct map_info's swap field based on device characteristics
defined in device tree.

Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/maps/physmap_of_core.c