26 Mar, 2019
2 commits
-
This converts the following to Kconfig:
CONFIG_ENV_SPI_BUS
CONFIG_ENV_SPI_CS
CONFIG_ENV_SPI_MAX_HZ
CONFIG_ENV_SPI_MODEMost of time these value are not needed, CONFIG_SF_DEFAULT
with same value is used, so I introduced CONFIG_USE_ENV_SPI_*
to force the associated value for the environment.Signed-off-by: Patrick Delaunay
-
This converts the following to Kconfig:
CONFIG_SF_DEFAULT_BUS
CONFIG_SF_DEFAULT_CS
CONFIG_SF_DEFAULT_MODE
CONFIG_SF_DEFAULT_SPEEDI use moveconfig script and then manual check on generated u-boot.cfg
to solve the remaining issue.Signed-off-by: Patrick Delaunay
07 Feb, 2019
1 commit
-
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD
layer. Fix up sf_dataflash to work in legacy way. And update sandbox to
use new interfaces/definitionsSigned-off-by: Vignesh R
Tested-by: Simon Goldschmidt
Tested-by: Stefan Roese
Tested-by: Horatiu Vultur
Reviewed-by: Jagan Teki
Tested-by: Jagan Teki #zynq-microzed
21 Nov, 2018
1 commit
-
It is useful to obtain the block-protect setting of the SPI flash, so we
know whether it is fully open or (perhaps partially) write-protected. Add
a method for this. Update the sandbox driver to process this operation and
add a test.Signed-off-by: Simon Glass
09 Jul, 2018
1 commit
-
Update the parameters sandbox_sf_bind_emul to support livetree.
Signed-off-by: Simon Glass
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
24 Jan, 2018
1 commit
-
Commit ba45756 ("dm: x86: spi: Convert ICH SPI driver to driver model")
removed the last usage of the spi_flash_probe_fdt function, rendering it
obsolete.This patch removes the function.
Reviewed-by: Simon Glass
Reviewed-by: Jagan Teki
Signed-off-by: Mario Six
07 Oct, 2016
1 commit
-
At present there are two SPI functions only used by freescale which are
defined in the spi_flash.h header. One function name matches an existing
generic SPL function.Move these into a private header to avoid confusion.
Arcturus looks like it does not actually support SPI, so drop the SPI code
from that board.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
19 Jan, 2016
1 commit
-
In a number of places we had wordings of the GPL (or LGPL in a few
cases) license text that were split in such a way that it wasn't caught
previously. Convert all of these to the correct SPDX-License-Identifier
tag.Signed-off-by: Tom Rini
13 Jan, 2016
1 commit
-
Use direct call to device_remove instead of exctra
spi_flash_remove defination.Reviewed-by: Simon Glass
Signed-off-by: Jagan Teki
13 Nov, 2015
1 commit
-
commit c3c016c "sf: Add SPI NOR protection mechanism" introduced
flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash,
but not every flash driver supplies these. We should test these
methods against NULL before actually calling them.Signed-off-by: Bin Meng
Reviewed-by: Fabio Estevam
Reviewed-by: Jagan Teki
06 Nov, 2015
1 commit
-
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: OKSigned-off-by: Fabio Estevam
[re-worked to fit the lock common to dm and non-dm]
Signed-off-by: Jagan Teki
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher
Reviewed-by: Jagan Teki
25 Oct, 2015
2 commits
-
This patch adds flag status register reading support to
spi_flash_cmd_wait_ready.Cc: Simon Glass
Cc: Marek Vasut
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Cc: Stefan Roese
Cc: Tom Warren
Cc: Tom Rini
Cc: Hou Zhiqiang
Tested-by: Jagan Teki
Tested-by: Bin Meng
Signed-off-by: Jagan Teki -
Use the flash->flags for generic usage, not only for dm-spi-flash,
this will be used for future flag additions.[Correct the spi flash flags detect logic]
Signed-off-by: Bin Meng
Tested-by: Bin Meng
Signed-off-by: Jagan Teki
01 Jul, 2015
1 commit
-
- Adjust tab spaces
- Add commentsSigned-off-by: Jagan Teki
28 Apr, 2015
1 commit
-
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
22 Apr, 2015
1 commit
-
Fix typos and too big #ifdef.
Signed-off-by: Pavel Machek
Reviewed-by: Marek Vasut
Reviewed-by: Jagannadha Sutradharudu Teki
19 Apr, 2015
1 commit
-
Permit use of a udevice to talk to SPI flash. Ultimately we would like
to retire the use of 'struct spi_flash' for this purpose, so create the
new API for those who want to move to it.Signed-off-by: Simon Glass
23 Oct, 2014
2 commits
-
Add a driver model uclass for SPI flash which supports the common
operations (read, write, erase). Since we must keep support for the
non-dm interface, some modification of the spi_flash header is required.CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash.
Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki -
Since spi_flash.h is supposed to be the public API for SPI flash, move
private things to sf_internal.h. Also tidy up a few comment nits.Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
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
23 Apr, 2014
1 commit
-
Add support of loading image, binary for MMC and SPI during SPL boot.
Signed-off-by: Prabhakar Kushwaha
Reviewed-by: York Sun
07 Mar, 2014
1 commit
-
Signed-off-by: Vasili Galka
13 Jan, 2014
3 commits
-
This patch added support for accessing dual memories in
parallel connection with single chipselect line from controller.For more info - see doc/SPI/README.dual-flash
Signed-off-by: Jagannadha Sutradharudu Teki
-
This patch added support for accessing dual memories in
stacked connection with single chipselect line from controller.For more info - see doc/SPI/README.dual-flash
Signed-off-by: Jagannadha Sutradharudu Teki
-
- comment typo's
- func args have a proper namesSigned-off-by: Jagannadha Sutradharudu Teki
11 Jan, 2014
5 commits
-
Discovered the read dummy_byte based on the
configured read command.Signed-off-by: Jagannadha Sutradharudu Teki
-
This patch adds support QUAD_IO_FAST read command.
Signed-off-by: Jagannadha Sutradharudu Teki
-
Moved the flash params table from sf_probe.c and
placed on to sf_params.c, hence flash params file will
alter based on new addons.Signed-off-by: Jagannadha Sutradharudu Teki
-
This patch add quad commands support like
- QUAD_PAGE_PROGRAM => for write program
- QUAD_OUTPUT_FAST ->> for read programSigned-off-by: Jagannadha Sutradharudu Teki
-
Current sf uses FAST_READ command, this patch adds support to
use the different/extended read command.This implementation will determine the fastest command by taking
the supported commands from the flash and the controller, controller
is always been a priority.Signed-off-by: Jagannadha Sutradharudu Teki
10 Dec, 2013
1 commit
-
This allows us to put the SPI flash chip inside the SPI interface node,
with U-Boot finding the correct bus and chip select automatically.Signed-off-by: Simon Glass
15 Oct, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
07 Oct, 2013
7 commits
-
- Add spaces, tabs
- Commenting.
- Rearrange code.
- Add static qualifier for missing func.
- Remove memory_map from ramtron.c
- Ramtron: spi_flash_internal.h -> sf_internal.hSigned-off-by: Jagannadha Sutradharudu Teki
-
More cleanups on spi_flash side:
- Removed unneeded comments.
- Rearranged macros in proper location.
- Rearranged func declerations
- Renamed few function names.
- Added License headers.Signed-off-by: Jagannadha Sutradharudu Teki
-
Added a support for common probe, hence removed removed
spi_flash_do_alloc reference.Signed-off-by: Jagannadha Sutradharudu Teki
-
Added proper comment style on spi_flash structure to make
more readable.Signed-off-by: Jagannadha Sutradharudu Teki
-
From Micron, 512MB onwards, flash requires to poll flag status
instead of read status- hence added E_FSR flag on spectific
flash parts.Signed-off-by: Jagannadha Sutradharudu Teki
-
SECT_4K, SECT_32K and SECT_64K opeartions are performed to
to specific flash by adding a SECT* flag on respective
spi_flash_params.flag param.Signed-off-by: Jagannadha Sutradharudu Teki
-
Most of the SST flashes needs to write up using SST_WP, AAI
Word Program, so added a flag param on spi_flash_params table.SST flashes, which supports SST_WP need to use a WP write
sst_write_wp instead of common flash write.Signed-off-by: Jagannadha Sutradharudu Teki