summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-05-09 14:17:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-10 08:20:43 +0200
commit18ea7385fb2b49eb5ea38cbc3c0b6bf27fca234f (patch)
tree6e34afff637d7bf4ac195e68040ae8dd78cdd470 /include/linux/mtd/nand.h
parentec21c891129ed2bb8d2697f7b5482d0cd0926730 (diff)
downloadbarebox-18ea7385fb2b49eb5ea38cbc3c0b6bf27fca234f.tar.gz
barebox-18ea7385fb2b49eb5ea38cbc3c0b6bf27fca234f.tar.xz
mtd: nand: Enable subpage reads
Until now we did not support subpage reads for smaller binary sizes. Scanning UBI volumes on large page NANDs can be painfully slow, subpage reads can speed this up significantly, so enable subpage reads. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index dfb94d7872..76a6425be8 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -169,7 +169,7 @@ typedef enum {
/* Device supports subpage reads */
/* Disabled in barebox for smaller binary sizes */
-#define NAND_SUBPAGE_READ (__BAREBOX__ ? 0x0 : 0x00001000)
+#define NAND_SUBPAGE_READ (0x00001000)
/* Options valid for Samsung large page devices */
#define NAND_SAMSUNG_LP_OPTIONS NAND_CACHEPRG