Skip to content
  • Shivamurthy Shastri's avatar
    mtd: spinand: micron: identify SPI NAND device with Continuous Read mode · 720fcb27
    Shivamurthy Shastri authored and Jagan Teki's avatar Jagan Teki committed
    
    
    Add SPINAND_HAS_CR_FEAT_BIT flag to identify the SPI NAND device with
    the Continuous Read mode.
    
    Some of the Micron SPI NAND devices have the "Continuous Read" feature
    enabled by default, which does not fit the subsystem needs.
    
    In this mode, the READ CACHE command doesn't require the starting column
    address. The device always output the data starting from the first
    column of the cache register, and once the end of the cache register
    reached, the data output continues through the next page. With the
    continuous read mode, it is possible to read out the entire block using
    a single READ command, and once the end of the block reached, the output
    pins become High-Z state. However, during this mode the read command
    doesn't output the OOB area.
    
    Hence, we disable the feature at probe time.
    
    Signed-off-by: default avatarShivamurthy Shastri <sshivamurthy@micron.com>
    Acked-by: default avatarJagan Teki <jagan@amarulasolutions.com>
    720fcb27