u-boot-brain/drivers/mtd/spi
Simon Glass fbb099183e dm: Convert spi_flash_probe() and 'sf probe' to use driver model
We want the SPI flash probing feature to operate as a standard driver.
Add a driver for the basic probing feature used by most boards. This
will be activated by device_probe() as with any other driver.

The 'sf probe' command currently keeps track of the SPI slave that it
last used. This doesn't work with driver model, since some other driver
or system may have probed the device and have access to it too. On the
other hand, if we try to probe a device twice the second probe is a nop
with driver model.

Fix this by searching for the matching device, removing it, and then
probing it again. This should work as expected regardless of other device
activity.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
2014-10-22 10:36:50 -06:00
..
eeprom_m95xxx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_espi_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
Makefile dm: sf: Add a uclass for SPI flash 2014-10-22 10:36:50 -06:00
ramtron.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00
sandbox.c sandbox: Convert SPI flash emulation to use sf_params 2014-09-26 15:00:36 -06:00
sf_internal.h sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00
sf_ops.c sf: sf_ops: Stop leaking memory 2014-08-06 00:18:01 +05:30
sf_params.c dm: Add spi.h header to a few files 2014-10-22 10:36:47 -06:00
sf_probe.c dm: Convert spi_flash_probe() and 'sf probe' to use driver model 2014-10-22 10:36:50 -06:00
sf-uclass.c dm: sf: Add a uclass for SPI flash 2014-10-22 10:36:50 -06:00
sf.c sf: Add CONFIG_SF_DUAL_FLASH 2014-01-12 21:40:22 +05:30
spi_spl_load.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00