Skip to content

Commit 5d8b6f1

Browse files
committed
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 <rouven@czerwinskis.de>
1 parent 01c1512 commit 5d8b6f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

chip/mchp/lfw/ec_lfw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ void lfw_main(void)
454454
uart_init();
455455
system_init();
456456

457+
lfw_wdt_stop();
458+
457459
/*
458460
* We need to switch control of VCI_OUT (aliased as EC_ON) away from
459461
* VCI_INx to keep the machine powered even after the user releases the
@@ -545,7 +547,6 @@ void lfw_main(void)
545547

546548
init_addr = CONFIG_RO_MEM_OFF + CONFIG_PROGRAM_MEMORY_BASE;
547549
}
548-
lfw_wdt_stop();
549550
trace11(0, LFW, 0, "Get EC reset handler from 0x%08x", (init_addr + 4));
550551
trace11(0, LFW, 0, "Jump to EC @ 0x%08x",
551552
*((uint32_t *)(init_addr + 4)));

0 commit comments

Comments
 (0)