Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: onenand: Add support for 8Gb datasize onenand

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>

authored by

Jonathan Bakker and committed by
Miquel Raynal
855eff21 e4203945

+3
+2
drivers/mtd/nand/onenand/onenand_base.c
··· 3260 3260 3261 3261 /* Lock scheme */ 3262 3262 switch (density) { 3263 + case ONENAND_DEVICE_DENSITY_8Gb: 3264 + this->options |= ONENAND_HAS_NOP_1; 3263 3265 case ONENAND_DEVICE_DENSITY_4Gb: 3264 3266 if (ONENAND_IS_DDP(this)) 3265 3267 this->options |= ONENAND_HAS_2PLANE;
+1
include/linux/mtd/onenand_regs.h
··· 80 80 #define ONENAND_DEVICE_DENSITY_1Gb (0x003) 81 81 #define ONENAND_DEVICE_DENSITY_2Gb (0x004) 82 82 #define ONENAND_DEVICE_DENSITY_4Gb (0x005) 83 + #define ONENAND_DEVICE_DENSITY_8Gb (0x006) 83 84 84 85 /* 85 86 * Version ID Register F002h (R)