• Chuanxiao Dong's avatar
    mtd: denali: update get nand para functions · ef41e1bb
    Chuanxiao Dong authored
    In denali driver, wTotalBlocks variable is useless, so just
    remove them in get_toshiba_nand_para and get_hynix_nand_para
    first. Other wTotalBlocks in denali.c and other variables in
    dev_info struct are also useless, will remove them later.
    
    Also add a parameter in get_hynix_nand_para to prepare to
    remove dev_info struct. This parameter comes by reading NAND
    ID directly. Reading register will report wrong value for
    some NAND chips, e.g. some Micron MT29F32G08QAA chips.
    So update NAND_CMD_READID method as well.
    Signed-off-by: default avatarChuanxiao Dong <chuanxiao.dong@intel.com>
    Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
    ef41e1bb
denali.c 62.4 KB