coreboot/src
Furquan Shaikh d82c7d24ff soc/amd/common/block/lpc: Split lpc_set_spibase() into two functions
This change splits lpc_set_spibase() into two separate functions:
lpc_set_spibase() - Sets MMIO base address for SPI controller and eSPI
controller (if supported by platforms)
lpc_enable_spi_rom() - Enables SPI ROM

This split is done to allow setting of MMIO base independent of ROM
enable bits. On platforms like Picasso, eSPI base is determined by the
same register and hence eSPI can set the BAR without having to touch
the enable bits.

Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: I3f270ba1745b4bb8a403f00cd069a02e21d444be
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41247
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2020-05-12 18:59:38 +00:00
..
acpi treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
arch treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
commonlib treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
console treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cpu treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
device treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
drivers treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
ec treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
include treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
lib treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
mainboard trogdor: Add support for rev1 2020-05-12 00:01:21 +00:00
northbridge nb/intel/sandybridge: Reorder IOSAV writes 2020-05-12 06:45:59 +00:00
security treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
soc soc/amd/common/block/lpc: Split lpc_set_spibase() into two functions 2020-05-12 18:59:38 +00:00
southbridge treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
superio treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
vendorcode treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00