05 May, 2015

5 commits


29 Apr, 2015

29 commits


28 Apr, 2015

4 commits

  • Tom Rini
     
  • Upto now flash sector_size is assigned from params which isn't
    necessarily a sector size from vendor, so based on the SECT_*
    flags from flash_params the erase_size will compute and it will
    become the sector_size finally.

    Bug report (from Bin Meng):
    => sf probe
    SF: Detected SST25VF016B with page size 256 Bytes, erase size 4 KiB,
    total 2 MiB, mapped at ffe00000

    => sf erase 0 +100
    SF: 65536 bytes @ 0x0 Erased: OK

    Signed-off-by: Jagannadha Sutradharudu Teki
    Reported-by: Bin Meng
    Tested-by: Bin Meng

    Jagannadha Sutradharudu Teki
     
  • With SPI flash moving to driver model, commit fbb0991 "dm: Convert
    spi_flash_probe() and 'sf probe' to use driver model" ignored the
    SST flash-specific write op (byte program & word program), which
    actually broke the SST flash from wroking.

    This commit makes SST flash work again under driver model, by adding
    SST flash-specific handling in the spi_flash_std_write().

    Signed-off-by: Bin Meng
    Reviewed-by: Jagannadha Sutradharudu Teki

    Bin Meng
     
  • Add a new member 'flags' in struct spi_flash to store the flash flags
    during spi_flash_validate_params().

    Signed-off-by: Bin Meng
    Reviewed-by: Jagannadha Sutradharudu Teki

    Bin Meng
     

27 Apr, 2015

2 commits

  • The timeout value is never reset during the transfer. This means that when
    transferring more data we eventually trigger the timeout.

    This was reported on the mailing list:
    "Spansion SPI flash read timeout with AM335x"

    Signed-off-by: David Dueck
    CC: Tom Rini
    CC: Stefan Roese
    CC: Andy Pont
    Tested-by: David Dueck
    Reviewed-by: Jagannadha Sutradharudu Teki

    David Dueck
     
  • Instead of hardcoding the 'fdtfile' variable, let's detect the SoC and
    board variant on the fly and change the dtb name.

    Based on the scheme done on am335x board.

    Signed-off-by: Fabio Estevam
    Tested-By: Vagrant Cascadian
    Reviewed-by: Tom Rini

    Fabio Estevam