coreboot/src/drivers/aspeed/common
Patrick Rudolph 9d63a6b46d drivers/aspeed/common: Support disabled P2A bridge
This ports Linux commit 71f677a91046599ece96ebab21df956ce909c456
"Handle configuration without P2A bridge".

Quote:

    The ast driver configures a window to enable access into BMC
    memory space in order to read some configuration registers.

    If this window is disabled, which it can be from the BMC side,
    the ast driver can't function.

    Closing this window is a necessity for security if a machine's
    host side and BMC side are controlled by different parties;
    i.e. a cloud provider offering machines "bare metal".

P2A stands for primary to AHB.

Tested on Prodrive Hermes, which uses an AST2500. The machine still
boots, has a high resolution framebuffer working in EDK2, and its
boot time has been reduced by 2.5 seconds as it no longer runs into
a timeout due to disabled P2A bridge.

Change-Id: I3293dc35ae89c010154e02eff904ec3a68c96683
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45137
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2020-09-09 10:37:13 +00:00
..
aspeed_coreboot.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ast_dp501.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ast_dram_tables.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ast_drv.h drivers/aspeed/common: Support disabled P2A bridge 2020-09-09 10:37:13 +00:00
ast_i2c.c treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
ast_main.c drivers/aspeed/common: Support disabled P2A bridge 2020-09-09 10:37:13 +00:00
ast_mode.c treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
ast_mode_corebootfb.c src: Use PCI_BASE_ADDRESS_* macros instead of magic numbers 2020-08-17 07:00:37 +00:00
ast_post.c drivers/aspeed/common: Support disabled P2A bridge 2020-09-09 10:37:13 +00:00
ast_tables.h treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
Kconfig drivers/aspeed/common: Add support for high resolution framebuffer 2019-12-12 12:49:01 +00:00
Makefile.inc drivers/aspeed/common: Add support for high resolution framebuffer 2019-12-12 12:49:01 +00:00