Skip to content
Prev Previous commit
mchp: lfw: stop wdt before firmware load
If the lfw is stopped after the firmware was loaded, we will only ever
be ablt to boot the bootrom loaded RO FW, since we otherwise don't have
the time to load a bigger image from the SPI flash.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Oct 10, 2023
commit 5d8b6f14c795b478d23a822265885db8bbe3ea59
3 changes: 2 additions & 1 deletion chip/mchp/lfw/ec_lfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ void lfw_main(void)
uart_init();
system_init();

lfw_wdt_stop();

/*
* We need to switch control of VCI_OUT (aliased as EC_ON) away from
* VCI_INx to keep the machine powered even after the user releases the
Expand Down Expand Up @@ -545,7 +547,6 @@ void lfw_main(void)

init_addr = CONFIG_RO_MEM_OFF + CONFIG_PROGRAM_MEMORY_BASE;
}
lfw_wdt_stop();
trace11(0, LFW, 0, "Get EC reset handler from 0x%08x", (init_addr + 4));
trace11(0, LFW, 0, "Jump to EC @ 0x%08x",
*((uint32_t *)(init_addr + 4)));
Expand Down