mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user