]> git.baikalelectronics.ru Git - uboot.git/commit
stm32mp: stpmic1: remove the debug unit request by debugger
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 1 Jun 2022 16:33:40 +0000 (18:33 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 17 Jun 2022 12:12:27 +0000 (14:12 +0200)
commit13fb0bc307db900de91ad25f2174058cd456a322
tree6d5949ed6fd10cba9aee8a21dd8f42a178e6758f
parent1630deb2e88b7fb53f0b0910f5e3f3f6377b2f2a
stm32mp: stpmic1: remove the debug unit request by debugger

Depending on backup register value, U-Boot SPL maintains the debug unit
powered-on for debugging purpose; only BUCK1 is required for powering
the debug unit, so revert the setting for all the other power lanes,
except BUCK3 that has to be always on.

To be functional this patch requires a modification in the debugger
,openocd for example, to update the STM32MP15 backup register when it is
required to debug SPL after reset. After deeper analysis this behavior
will be never supported in tools so the associated code, will be never
used and the associated code can be removed.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/include/mach/stm32.h
board/st/common/stpmic1.c
include/power/stpmic1.h