24 Sep, 2014

1 commit

  • 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
    Cc: Marek Vasut
    Cc: Sudhakar Rajashekhara
    Cc: Lokesh Vutla
    Cc: Vitaly Andrianov
    Cc: Lars Poeschel
    Cc: Bo Shen
    Cc: Hannes Petermaier
    Cc: Michal Simek
    Acked-by: Marek Vasut
    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Jagannadha Sutradharudu Teki

    Nikita Kiryanov
     

23 Apr, 2014

1 commit


07 Mar, 2014

1 commit


13 Jan, 2014

3 commits


11 Jan, 2014

5 commits


10 Dec, 2013

1 commit


15 Oct, 2013

1 commit


07 Oct, 2013

7 commits


24 Jul, 2013

1 commit


24 Jun, 2013

4 commits

  • Flag status register polling is required for micron 512Mb flash
    devices onwards, for performing erase/program operations.

    Like polling for WIP(Write-In-Progress) bit in read status register,
    spi_flash_cmd_wait_ready will poll for PEC(Program-Erase-Control)
    bit in flag status register.

    Signed-off-by: Jagannadha Sutradharudu Teki
    Reviewed-by: Simon Glass

    Jagannadha Sutradharudu Teki
     
  • Defined bank addr code on CONFIG_SPI_FLASH_BAR macro, to reduce the
    size for existing boards which has < 16Mbytes SPI flashes.

    It's upto user which has provision to use the bank addr code for
    flashes which has > 16Mbytes.

    Signed-off-by: Jagannadha Sutradharudu Teki
    Reviewed-by: Simon Glass

    Jagannadha Sutradharudu Teki
     
  • Read the flash bank addr register to get the state of bank in
    a perticular flash. and also bank write happens only when there is
    a change in bank selection from user.

    bank read only valid for flashes which has > 16Mbytes those are
    opearted in 3-byte addr mode, each bank occupies 16Mytes.

    Suppose if the flash has 64Mbytes size consists of 4 banks like
    bank0, bank1, bank2 and bank3.

    Signed-off-by: Jagannadha Sutradharudu Teki
    Reviewed-by: Simon Glass

    Jagannadha Sutradharudu Teki
     
  • Bank/Extended addr commands are specific to particular
    flash vendor so discover them based on the idocode0.

    Assign the discovered bank commands to spi_flash members
    so-that the bank read/write will use their specific operations.

    Signed-off-by: Jagannadha Sutradharudu Teki

    Jagannadha Sutradharudu Teki
     

19 Mar, 2013

2 commits


24 Dec, 2011

1 commit


26 Jul, 2011

1 commit


12 Apr, 2011

2 commits


25 Nov, 2009

1 commit


04 Jun, 2008

1 commit

  • This adds a new SPI flash subsystem.

    Currently, only AT45 DataFlash in non-power-of-two mode is supported,
    but some preliminary support for other flash types is in place as
    well.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen