• Brian Norris's avatar
    mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID · e2d3a35e
    Brian Norris authored
    Datasheets for the following Samsung NAND parts (both MLC and SLC) describe
    extensions to the Samsung 6-byte extended ID decoding table:
    
    K9GBG08U0A (MLC, 6-byte ID)
    K9GAG08U0F (MLC, 6-byte ID)
    K9FAG08U0M (SLC, 6-byte ID)
    
    The table found in K9GAG08U0F, p.44, contains a superset of the information
    found in other previous datasheets.
    
    This patch adds support for all of these chips, with 512B and 640B OOB sizes.
    It also changes the detection pattern such that this table applies to all
    Samsung 6-byte ID NAND, not just MLC. This is safe, according to the NAND
    parameter data I have collected:
    
    Note that nand_base.c does not yet support the bad block marker scheme defined
    for these chips (i.e., scan 1st and last page for BB markers).
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
    Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
    e2d3a35e
nand_base.c 96.8 KB