mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
nand: add toshiba 512M(TC58NVG2S0HTA00)
PD#149262: mtd:nand : add toshiba 512M(TC58NVG2S0HTA00) Change-Id: Ib4e5abca5b1b99542df1e9a6dc3ed347474ecfa2 Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
This commit is contained in:
@@ -409,7 +409,9 @@ static int m3_nand_options_confirm(struct aml_nand_chip *aml_chip)
|
||||
chip->write_buf = aml_nand_dma_write_buf;
|
||||
chip->read_buf = aml_nand_dma_read_buf;
|
||||
|
||||
if (mtd->writesize <= 2048)
|
||||
/* axg only suport bch8/512 & bch8/1k */
|
||||
if ((mtd->writesize <= 2048)
|
||||
|| (get_cpu_type() == MESON_CPU_MAJOR_ID_AXG))
|
||||
options_support = NAND_ECC_BCH8_MODE;
|
||||
|
||||
switch (options_support) {
|
||||
|
||||
@@ -360,6 +360,18 @@ struct aml_nand_flash_dev aml_nand_flash_ids[] = {
|
||||
0,
|
||||
0,
|
||||
(NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
|
||||
{"A revision NAND 4Gib TC58NVG2S0HTA00 ",
|
||||
{NAND_MFR_TOSHIBA, 0xdc, 0x90, 0x26, 0x76},
|
||||
4096,
|
||||
512,
|
||||
0x40000,
|
||||
256,
|
||||
1,
|
||||
20,
|
||||
25,
|
||||
0,
|
||||
0,
|
||||
(NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
|
||||
{"Slc NAND 1Gib MX30LF1G18AC ",
|
||||
{NAND_MFR_MACRONIX, 0xf1, 0x80, 0x95, 0x02},
|
||||
2048,
|
||||
|
||||
Reference in New Issue
Block a user