Furquan Shaikh has uploaded a new patch set (#2). ( https://review.coreboot.org/19708 )
Change subject: drivers/spi: Add flash probe callbacks to spi_ctrlr structure
......................................................................
drivers/spi: Add flash probe callbacks to spi_ctrlr structure
In order to support some specialized SPI controllers that are actually
SPI flash controllers, add two new members to spi_ctrlr structure:
1. flash_probe: Specialized probe function provided by the spi flash
controller.
2. try_generic_probe_first: Check if the controllers wants the flash
driver to perform generic probing before trying out the specialized
probing.
With this change, the specialized spi flash probe functions are now
associated with a particular spi ctrlr structure and no longer
disconnected from the spi controller.
BUG=b:38330715
TEST=Verified with the entire patch series that spi flash driver still
works fine on poppy.
Change-Id: I35f3bd8ddc5e71515df3ef0c1c4b1a68ee56bf4b
---
M src/drivers/spi/spi_flash.c
M src/include/spi-generic.h
M src/include/spi_flash.h
M src/soc/intel/common/block/fast_spi/fast_spi_flash.c
M src/soc/mediatek/mt8173/flash_controller.c
M src/soc/mediatek/mt8173/include/soc/spi.h
M src/soc/mediatek/mt8173/spi.c
M src/southbridge/intel/common/spi.c
8 files changed, 65 insertions(+), 64 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/19708/2
--
To view, visit https://review.coreboot.org/19708
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I35f3bd8ddc5e71515df3ef0c1c4b1a68ee56bf4b
Gerrit-PatchSet: 2
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Furquan Shaikh has uploaded a new patch set (#2). ( https://review.coreboot.org/19707 )
Change subject: drivers/spi/spi_flash: Pass in spi_slave structure as const to probe functions
......................................................................
drivers/spi/spi_flash: Pass in spi_slave structure as const to probe functions
Pointer to spi_slave structure can be passed in as const to spi flash
probe functions since the probe functions do not need to modify the
slave properties.
BUG=b:38330715
Change-Id: I956ee777c62dbb811fd6ce2aeb6ae090e1892acd
Signed-off-by: Furquan Shaikh <furquan(a)chromium.org>
---
M src/drivers/spi/adesto.c
M src/drivers/spi/amic.c
M src/drivers/spi/atmel.c
M src/drivers/spi/eon.c
M src/drivers/spi/gigadevice.c
M src/drivers/spi/macronix.c
M src/drivers/spi/spansion.c
M src/drivers/spi/spi_flash.c
M src/drivers/spi/spi_flash_internal.h
M src/drivers/spi/sst.c
M src/drivers/spi/stmicro.c
M src/drivers/spi/winbond.c
M src/include/spi_flash.h
M src/soc/intel/common/block/fast_spi/fast_spi_flash.c
M src/soc/mediatek/mt8173/flash_controller.c
M src/southbridge/intel/common/spi.c
16 files changed, 28 insertions(+), 27 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/19707/2
--
To view, visit https://review.coreboot.org/19707
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I956ee777c62dbb811fd6ce2aeb6ae090e1892acd
Gerrit-PatchSet: 2
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>