summaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines/apu2/romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/pcengines/apu2/romstage.c')
-rw-r--r--src/mainboard/pcengines/apu2/romstage.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/pcengines/apu2/romstage.c b/src/mainboard/pcengines/apu2/romstage.c
index 7565bfca1d..34c42b43ff 100644
--- a/src/mainboard/pcengines/apu2/romstage.c
+++ b/src/mainboard/pcengines/apu2/romstage.c
@@ -38,6 +38,15 @@ void board_BeforeAgesa(struct sysinfo *cb)
/* Release GPIO32/33 for other uses. */
pm_write8(0xea, 1);
+
+ /*
+ * Assert resets on the PCIe slots, since AGESA calls deassert callout
+ * only. Only apu2 uses GPIOs to reset PCIe slots.
+ */
+ if (CONFIG(BOARD_PCENGINES_APU2)) {
+ gpio1_write8(0xa, gpio1_read8(0xa) & ~(1 << 6));
+ gpio1_write8(0xe, gpio1_read8(0xe) & ~(1 << 6));
+ }
}
static void early_lpc_init(void)