arm64: mach-k3: am625_init: Probe ESM nodes
authorJulien Panis <jpanis@baylibre.com>
Fri, 1 Jul 2022 12:30:11 +0000 (14:30 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 25 Jul 2022 13:38:47 +0000 (09:38 -0400)
commit169582025adc8892ec0813f52f6d643055b3e9dc
tree244eb4045c12657e5a2f1389545533adaeb5a5fb
parent3128c890f2715f5e73300d67edff2bd26865740d
arm64: mach-k3: am625_init: Probe ESM nodes

On AM62x devices, main ESM error event outputs can be routed to
MCU ESM as inputs. So, two ESM device nodes are expected in the
device tree : one for main ESM and another one for MCU ESM.
MCU ESM error output can trigger the reset logic to reset
the device when CTRLMMR_MCU_RST_CTRL:MCU_ESM_ERROR_RESET_EN_Z is
set to '0'.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
arch/arm/mach-k3/am625_init.c
arch/arm/mach-k3/include/mach/am62_hardware.h