From ae64b6e5db2e35b45e76ee4ef9ec416a6f09384e Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Tue, 14 Jun 2022 12:29:40 +0100 Subject: [PATCH] mb/starlabs/lite: Configure MMIO window for EC The Nuvoton EC requires a window to be opened for updates, so open this window only if the Nuvoton EC is present. Change-Id: Iaa45aa58749c4d0bfc77e60b52eab2bcb270f3ee Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/65130 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/starlabs/lite/bootblock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainboard/starlabs/lite/bootblock.c b/src/mainboard/starlabs/lite/bootblock.c index 5349207eeb..6bf172344d 100644 --- a/src/mainboard/starlabs/lite/bootblock.c +++ b/src/mainboard/starlabs/lite/bootblock.c @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -12,4 +13,7 @@ void bootblock_mainboard_init(void) pads = variant_early_gpio_table(&num); gpio_configure_pads(pads, num); + + if (CONFIG(EC_STARLABS_NUVOTON)) + lpc_open_mmio_window(0xfe800000, 0x10000); }