History

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.

Jonathan Bakker committed 7 years ago

Commit 855eff21 parent e4203942 files · +3 −0Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t