Felix Singer has uploaded this change for review.
ichspi.c: Turn ichspi_lock into local variable
WIP
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: Ica92995a74069efb6b9b8de9ec27e6c7f19703ef
---
M ichspi.c
1 file changed, 16 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/35/67435/1
diff --git a/ichspi.c b/ichspi.c
index f5876b7..d58c3c8 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -255,8 +255,6 @@
LOCKED = 3,
};
-/* ICH SPI configuration lock-down. May be set during chipset enabling. */
-static bool ichspi_lock = false;
static enum ich_chipset ich_generation = CHIPSET_ICH_UNKNOWN;
static uint32_t ichspi_bbar;
@@ -2217,6 +2215,8 @@
{
ich_generation = ich_gen;
ich_spibar = spibar;
+ /* ICH SPI configuration lock-down. May be set during chipset enabling. */
+ bool ichspi_lock = false;
switch (ich_gen) {
case CHIPSET_ICH7:
@@ -2243,6 +2243,8 @@
int via_init_spi(uint32_t mmio_base)
{
int i;
+ /* ICH SPI configuration lock-down. May be set during chipset enabling. */
+ bool ichspi_lock = false;
ich_spibar = rphysmap("VIA SPI MMIO registers", mmio_base, 0x70);
if (ich_spibar == ERROR_PTR)
To view, visit change 67435. To unsubscribe, or for help writing mail filters, visit settings.