coreboot/src
David Hendricks aa0c38e9f7 spi: Die if Winbond chip driver gets probed twice
The way we use the SPI API does not allow for multiple chips to be
used simultaneously. This adds a dumb check to see if the chip has
already been probed/initialized, which should only happen once given
the current assumptions.

If we want to support multiple chips simultaneously, we should
further re-factor these chip drivers to be malloc()-friendly in
early stages (Julius suggested suggested implementing a mini-heap).

BUG=none
BRANCH=none
TEST=none (current ToT is broken)

Signed-off-by: David Hendricks <dhendrix@chromium.org>
Change-Id: I27ccbd5d94e00970f3a07c6383ccdce14a09cb60
Reviewed-on: https://chromium-review.googlesource.com/236080
Reviewed-by: Julius Werner <jwerner@chromium.org>
(cherry picked from commit 5da9e0eceb50b99fa9aba6f597dafcab1965486c)
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/237024
2014-12-20 06:35:12 +00:00
..
arch arm: Fix checkstack() to use correct stack size 2014-12-20 06:34:57 +00:00
console Avoid 64bit math on MIPS platforms 2014-12-02 01:57:08 +00:00
cpu cbmem: Unify random on-CBMEM-init tasks under common CBMEM_INIT_HOOK() API 2014-12-04 04:01:59 +00:00
device Broadwell FSP: Add new finalize functions for devices and chips 2014-11-20 20:49:36 +00:00
drivers spi: Die if Winbond chip driver gets probed twice 2014-12-20 06:35:12 +00:00
ec chromeec: Add wakeup delay after SPI /CS assertion 2014-10-01 06:53:27 +00:00
include FSP: Properly display the FSP HOB List pointer in the tables 2014-12-12 23:16:17 +00:00
lib arm: Fix checkstack() to use correct stack size 2014-12-20 06:34:57 +00:00
mainboard veyron_*: Use common CBFS wrapper 2014-12-20 06:35:08 +00:00
northbridge cbmem: Unify random on-CBMEM-init tasks under common CBMEM_INIT_HOOK() API 2014-12-04 04:01:59 +00:00
soc veyron_*: Use common CBFS wrapper 2014-12-20 06:35:08 +00:00
southbridge timestamp: remove conditional #if CONFIG_COLLECT_TIMESTAMPS 2014-11-07 01:24:01 +00:00
superio superio: ite8772f: Exit extemp busy state 2014-09-27 07:09:25 +00:00
vendorcode vboot: make vboot2_verify_firmware return 2014-12-11 01:55:26 +00:00
Kconfig Broadwell FSP: Successful execution of FspNotify 2014-12-12 23:15:58 +00:00