summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAllen Xu <b45815@freescale.com>2014-11-15 00:36:07 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:20:42 +0300
commit2d18ce9723a10cc9a4ef131ca8bbb1b0c75f0907 (patch)
tree739a74db4eeaecc5fc0c2cfaf091214eeed640c9 /drivers/mtd
parentcad29e495d24f996429a6ead779eda652fa14f24 (diff)
MLK-9851 mtd: Change the mtd device driver build order for mfgtool
i.MX6SX Sabreauto board enabled both NAND and QSPI1 drivrers, and by default, NAND driver built first in kernel compiling, and it would be load first when Kernel brought up. Since we could not guarantee all boards mounted NAND chips, we wish the Kernel could load QSPI driver first, when system mapped QSPI and NAND, the mtd device index won't change dynamically, otherwise, the mfgtool may write images to the inappropriate storage devices. The code change moved the SPI driver at the prior position of NAND driver in Makefile to solve this issue. Signed-off-by: Allen Xu <b45815@freescale.com> (cherry picked from commit 3d2d5724f7a2968b40c2ea0a70c09a3214da1496) (cherry picked from commit b03ee70fdd1dfaa3be61817eb49d01d49cb107d3)
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index 99bb9a1f6e16..f46b1ccff165 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -30,7 +30,7 @@ obj-$(CONFIG_MTD_SWAP) += mtdswap.o
nftl-objs := nftlcore.o nftlmount.o
inftl-objs := inftlcore.o inftlmount.o
+obj-$(CONFIG_MTD_SPI_NOR) += spi-nor/
obj-y += chips/ lpddr/ maps/ devices/ nand/ onenand/ tests/
-obj-$(CONFIG_MTD_SPI_NOR) += spi-nor/
obj-$(CONFIG_MTD_UBI) += ubi/