reset: stm32: Add support of MCU HOLD BOOT
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 15 Oct 2020 13:01:11 +0000 (15:01 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Wed, 25 Nov 2020 10:32:31 +0000 (11:32 +0100)
commitd8d29a4489c72ed8cbeafa42ea5c06e26b80a2e5
tree084769b0e016fec5459d89bb5f4d8bf5992b3abf
parent29e5c027889ed583fd04d87927e714201b47a225
reset: stm32: Add support of MCU HOLD BOOT

Handle the register RCC_MP_GCR without SET/CLR registers
but with a direct access to bit BOOT_MCU:
- deassert => set the bit: The MCU will not be in HOLD_BOOT
- assert => clear the bit: The MCU will be set in HOLD_BOOT

With this patch the RCC driver handles the MCU_HOLD_BOOT_R value
added in binding stm32mp1-resets.h

Cc: Fabien DESSENNE <fabien.dessenne@st.com>
Cc: Arnaud POULIQUEN <arnaud.pouliquen@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
drivers/reset/stm32-reset.c
include/dt-bindings/reset/stm32mp1-resets.h