• Masahiro Yamada's avatar
    mtd: nand: denali: allow to override revision number · e7beeeec
    Masahiro Yamada authored
    Commit 271707b1 ("mtd: nand: denali: max_banks calculation
    changed in revision 5.1") added a revision check to support the
    new max_banks encoding.  Its git-log states "The encoding of
    max_banks changed in Denali revision 5.1".
    
    There are exceptional cases, for example, the revision register on
    some UniPhier SoCs says the IP is 5.0 but the max_banks is encoded
    in the new format.
    
    This IP updates the resister specification from time to time (often
    breaking the backward compatibility), but the revision number is not
    incremented correctly.
    
    The max_banks is not only the case that needs revision checking.
    Let's allow to override an incorrect revision number.
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
    e7beeeec
denali.c 45.5 KB