[PATCH u-boot-mvebu v2 0/4] turris_omnia: Disable MCU watchdog in SPL when booting over UART

Marek Behún marek.behun at nic.cz
Mon Aug 16 15:19:36 CEST 2021


Hello Stefan,

while debugging Omnia, when sending U-Boot over UART, some USB-TTY
controllers are too slow and Omnia's MCU watchdog resets the board
before U-Boot proper is sent.

This patch series changes Omnia board code so that when booting via
UART, we disable MCU watchdog in SPL, prior loading U-Boot proper.

Changes since v1:
- added patch that moves disabling MCU watchdog in normal boot from
  board_init() to board_late_init(), so that it is disabled after
  U-Boot enables the SOC watchdog

Marek

Marek Behún (4):
  arm: mvebu: Move get_boot_device() to cpu.c and make visible
  arm: mvebu: turris_omnia: don't guard by CONFIG_SPL_BUILD macro
  arm: mvebu: turris_omnia: disable MCU watchdog in SPL when booting
    over UART
  arm: mvebu: turris_omnia: disable MCU watchdog in board_late_init()

 arch/arm/mach-mvebu/cpu.c                | 60 ++++++++++++++++++
 arch/arm/mach-mvebu/include/mach/cpu.h   |  2 +
 arch/arm/mach-mvebu/spl.c                | 77 +++---------------------
 board/CZ.NIC/turris_omnia/turris_omnia.c | 27 ++++++---
 configs/turris_omnia_defconfig           |  1 +
 5 files changed, 89 insertions(+), 78 deletions(-)

-- 
2.31.1



More information about the U-Boot mailing list