]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: st: stpmic1: add function stpmic1_init
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 25 May 2020 10:19:46 +0000 (12:19 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Tue, 7 Jul 2020 14:01:23 +0000 (16:01 +0200)
commitd1a4b09de6431fbc2f6a9dc53efe8d84cdd31134
tree5ef7a6a3cdf9564eedcdca03a1f4c67ae0ce8e28
parent4e62642aef59ef89e00fe05ef1c27f263d80bcf6
board: st: stpmic1: add function stpmic1_init

Add a function stmpic_init to early initialize the PMIC STPMIC1
- keep vdd on during the reset cycle (to avoid issue when backup battery
  is absent)
- Check if debug is enabled to program PMIC according to the bit

This patch allows to remove the compilation of spl.c file from stm32mp1
board in dh_stm32mp1.

CONFIG_SPL_BOARD_INIT is removed as the new function is called earlier
in SPL, in the function board_early_init_f.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/mach-stm32mp/Kconfig
board/dhelectronics/dh_stm32mp1/Makefile
board/dhelectronics/dh_stm32mp1/board.c
board/st/common/stpmic1.c
board/st/common/stpmic1.h [new file with mode: 0644]
board/st/stm32mp1/spl.c
board/st/stm32mp1/stm32mp1.c
configs/stm32mp15_basic_defconfig