1. 19 Jan, 2016 1 commit
  2. 13 Jan, 2016 1 commit
  3. 13 Nov, 2015 1 commit
  4. 05 Nov, 2015 1 commit
    • Fabio Estevam's avatar
      sf: Add SPI NOR protection mechanism · c3c016cf
      Fabio Estevam authored
      Many SPI flashes have protection bits (BP2, BP1 and BP0) in the
      status register that can protect selected regions of the SPI NOR.
      
      Take these bits into account when performing erase operations,
      making sure that the protected areas are skipped.
      
      Tested on a mx6qsabresd:
      
      => sf probe
      SF: Detected M25P32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
      => sf protect lock  0x3f0000 0x10000
      => sf erase 0x3f0000 0x10000
      offset 0x3f0000 is protected and cannot be erased
      SF: 65536 bytes @ 0x3f0000 Erased: ERROR
      => sf protect unlock  0x3f0000 0x10000
      => sf erase 0x3f0000 0x10000
      SF: 65536 bytes @ 0x3f0000 Erased: OK
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      [re-worked to fit the lock common to dm and non-dm]
      Signed-off-by: default avatarJagan Teki <jteki@openedev.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
      Reviewed-by: default avatarJagan Teki <jteki@openedev.com>
      c3c016cf
  5. 25 Oct, 2015 2 commits
  6. 01 Jul, 2015 1 commit
  7. 28 Apr, 2015 1 commit
  8. 22 Apr, 2015 1 commit
  9. 18 Apr, 2015 1 commit
  10. 22 Oct, 2014 2 commits
  11. 24 Sep, 2014 1 commit
    • Nikita Kiryanov's avatar
      spl: replace CONFIG_SPL_SPI_* with CONFIG_SF_DEFAULT_* · 88e34e5f
      Nikita Kiryanov authored
      Currently, CONFIG_SPL_SPI_* #defines are used for controlling SPI boot in
      SPL. These #defines do not allow the user to select SPI mode for the SPI flash
      (there's no CONFIG_SPL_SPI_MODE, so the SPI mode is hardcoded in
      spi_spl_load.c), and duplicate information already provided by
      CONFIG_SF_DEFAULT_* #defines.
      
      Kill CONFIG_SPL_SPI_*, and use CONFIG_SF_DEFAULT_* instead.
      
      Cc: Tom Rini <trini@ti.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Cc: Vitaly Andrianov <vitalya@ti.com>
      Cc: Lars Poeschel <poeschel@lemonage.de>
      Cc: Bo Shen <voice.shen@atmel.com>
      Cc: Hannes Petermaier <hannes.petermaier@br-automation.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Reviewed-by: default avatarJagannadha Sutradharudu Teki <jaganna@xilinx.com>
      88e34e5f
  12. 23 Apr, 2014 1 commit
  13. 07 Mar, 2014 1 commit
  14. 12 Jan, 2014 3 commits
  15. 11 Jan, 2014 5 commits
  16. 09 Dec, 2013 1 commit
  17. 14 Oct, 2013 1 commit
  18. 07 Oct, 2013 7 commits
  19. 24 Jul, 2013 1 commit
  20. 23 Jun, 2013 4 commits
  21. 19 Mar, 2013 2 commits
  22. 24 Dec, 2011 1 commit