Skip to content

Commit 855eff2

Browse files
xc-racer99miquelraynal
authored andcommitted
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>
1 parent e420394 commit 855eff2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/mtd/nand/onenand/onenand_base.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,6 +3260,8 @@ static void onenand_check_features(struct mtd_info *mtd)
32603260

32613261
/* Lock scheme */
32623262
switch (density) {
3263+
case ONENAND_DEVICE_DENSITY_8Gb:
3264+
this->options |= ONENAND_HAS_NOP_1;
32633265
case ONENAND_DEVICE_DENSITY_4Gb:
32643266
if (ONENAND_IS_DDP(this))
32653267
this->options |= ONENAND_HAS_2PLANE;

‎include/linux/mtd/onenand_regs.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
#define ONENAND_DEVICE_DENSITY_1Gb (0x003)
8181
#define ONENAND_DEVICE_DENSITY_2Gb (0x004)
8282
#define ONENAND_DEVICE_DENSITY_4Gb (0x005)
83+
#define ONENAND_DEVICE_DENSITY_8Gb (0x006)
8384

8485
/*
8586
* Version ID Register F002h (R)

0 commit comments

Comments
 (0)