mtd: set chip type as slc by default.

PD#167814: mtd: set chip type as slc by default.

newlly rebased upstream will report slc/mlc by
bit_per_cell which was not filled before.

Change-Id: Ibe23fcce6ab919cf3ceb19b5870bae13c3a52e0b
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
This commit is contained in:
Yonghui Yu
2018-06-07 14:01:34 +08:00
committed by Jianxin Pan
parent 882ed0addc
commit a95777dd0b

View File

@@ -1494,7 +1494,8 @@ static int aml_nand_scan_ident(struct mtd_info *mtd, int maxchips)
chip->waitfunc = aml_nand_wait;
chip->erase = aml_nand_erase_cmd;
chip->write_page = aml_nand_write_page;
/* slc default*/
chip->bits_per_cell = 1;
/* Get buswidth to select the correct functions */
busw = chip->options & NAND_BUSWIDTH_16;