Skip to content
Snippets Groups Projects
  1. Mar 02, 2008
  2. Feb 25, 2008
  3. Feb 24, 2008
  4. Feb 23, 2008
  5. Feb 22, 2008
  6. Feb 21, 2008
    • Michael Schwingen's avatar
      CFI: Do not use uninitialized cmd_reset · 1ba639da
      Michael Schwingen authored
      
      Do not use uninitialized cmd_reset; issue both AMD and Intel reset
      commands instead
      
      From a short test, it looks like AMD-style flash roms treat *any* unknown
      command write as a reset, at least when in CFI Query mode, so issuing the
      Intel reset command to AMD-style flashs seems safe (from the small sample I
      have), plus the 3-cycle magic sequence should kick the state machine into
      the right state even without a reset command. Since the AMD-style flashs
      require the unlock sequence for real operation, I chose to try the AMD reset
      command first, so that Intel flashs do no see an invalid command prior to
      the CFI query.
      
      I have tested the patch on AM29LV320-style flashs from Fujitsu and Macronix,
      plus Intel StrataFlash.
      
      Signed-off-by: default avatarMichael Schwingen <michael@schwingen.org>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      1ba639da
Loading