Commit d4f217cf authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

set ecc.size correctly, added NAND_NO_SUBPAGE_WRITE to options

parent d163c40a
...@@ -763,6 +763,10 @@ static int micron_nand_init(struct nand_chip *chip) ...@@ -763,6 +763,10 @@ static int micron_nand_init(struct nand_chip *chip)
// chip->id.data[1] is dev_id (0xa3 in Elphel 10393) // chip->id.data[1] is dev_id (0xa3 in Elphel 10393)
nand_micron_mt29f_init(mtd, chip->id.data[1]); nand_micron_mt29f_init(mtd, chip->id.data[1]);
// MT29F8G08ADBDAH4, no subpage write support
if (chip->id.data[1]==0xa3)
chip->options |= NAND_NO_SUBPAGE_WRITE;
// Elphel: modification for Micron NAND chips // Elphel: modification for Micron NAND chips
//TODO: add Micron chip ID checking //TODO: add Micron chip ID checking
mtd->_unlock = micron_nand_unlock; mtd->_unlock = micron_nand_unlock;
......
...@@ -1341,11 +1341,7 @@ static int pl353_nand_probe(struct platform_device *pdev) ...@@ -1341,11 +1341,7 @@ static int pl353_nand_probe(struct platform_device *pdev)
xnfc->buswidth = val; xnfc->buswidth = val;
chip->chip_delay = 30; chip->chip_delay = 30;
/* Set the device option and flash width */ /* Set the device option and flash width */
// old: chip->options = NAND_BUSWIDTH_AUTO;
//chip->options = NAND_BUSWIDTH_AUTO;
// new: MT29F8G08ADBDAH4 does not support subpage write,
// setting here, will change later
chip->options = NAND_BUSWIDTH_AUTO | NAND_NO_SUBPAGE_WRITE;
chip->bbt_options = NAND_BBT_USE_FLASH; chip->bbt_options = NAND_BBT_USE_FLASH;
platform_set_drvdata(pdev, xnfc); platform_set_drvdata(pdev, xnfc);
chip->setup_data_interface = pl353_setup_data_interface; chip->setup_data_interface = pl353_setup_data_interface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment