]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mtd: onenand: Add support for 8Gb datasize onenand
authorJonathan Bakker <xc-racer2@live.ca>
Fri, 26 Apr 2019 15:06:34 +0000 (17:06 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Jun 2019 18:05:23 +0000 (20:05 +0200)
Used in several S5PV210-based Galaxy S devices, among them SGH-T959V,
SGH-T959P, SGH-T839, and SPH-D700.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/onenand/onenand_base.c
include/linux/mtd/onenand_regs.h

index f41d7624855049d1546d3c74268759e069ad761f..492c0059673d96c4ba7a263e474f735b1c605c44 100644 (file)
@@ -3260,6 +3260,8 @@ static void onenand_check_features(struct mtd_info *mtd)
 
        /* Lock scheme */
        switch (density) {
+       case ONENAND_DEVICE_DENSITY_8Gb:
+               this->options |= ONENAND_HAS_NOP_1;
        case ONENAND_DEVICE_DENSITY_4Gb:
                if (ONENAND_IS_DDP(this))
                        this->options |= ONENAND_HAS_2PLANE;
index d60130f88eeddfc9e7664d7d632931dfb6fe6608..9640d707cbf89be760d30caea57f582f4910d41d 100644 (file)
@@ -80,6 +80,7 @@
 #define ONENAND_DEVICE_DENSITY_1Gb     (0x003)
 #define ONENAND_DEVICE_DENSITY_2Gb     (0x004)
 #define ONENAND_DEVICE_DENSITY_4Gb     (0x005)
+#define ONENAND_DEVICE_DENSITY_8Gb     (0x006)
 
 /*
  * Version ID Register F002h (R)