Skip to content
  • Masahiro Yamada's avatar
    mtd: denali: set some registers after nand_scan_ident() · f09eb52b
    Masahiro Yamada authored
    
    
    Some but not all of implementations of the Denali NAND controller
    have hardware circuits to detect the device parameters such as
    page_size, erase_size, etc.  Even on those SoCs with such hardware
    supported, the hardware is known to detect wrong parameters for some
    nasty (almost buggy) NAND devices.  The device parameters detected
    during nand_scan_ident() are more trustworthy.
    
    This commit sets some hardware registers to mtd->pagesize,
    mtd->oobsize, etc. in the code between nand_scan_ident() and
    nand_scan_tail().
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Cc: Scott Wood <scottwood@freescale.com>
    Cc: Chin Liang See <clsee@altera.com>
    f09eb52b