]> git.baikalelectronics.ru Git - arm-tf.git/commit
hikey960: Enable system power off callback
authorLeo Yan <leo.yan@linaro.org>
Mon, 2 Mar 2020 14:15:08 +0000 (22:15 +0800)
committerLeo Yan <leo.yan@linaro.org>
Mon, 2 Mar 2020 14:34:21 +0000 (22:34 +0800)
commitcfde1870ca713f2a89a80df80badd5805304103e
treecd8d56fc7833543b341e009718bc43d341eb57f7
parent2403813779d983fc039bcd05cd659520bcaaf75e
hikey960: Enable system power off callback

On Hikey960 if outputs GPIO176 low level, it can tell PMIC to power off
the whole board.  To avoid resetting the board and stay off, it also
requires the SW2201's three switches 1/2/3 need to be all set to 0.

Since current code doesn't contain complete GPIO modules and misses to
support GPIO176.  This patch adds all known GPIO modules and initialize
GPIO in BL31, and adds system power off callback to use GPIO176 for PMIC
power off operation.

Change-Id: Ia88859b8b7c87c061420ef75f0de3e2768667bb0
Signed-off-by: Leo Yan <leo.yan@linaro.org>
plat/hisilicon/hikey960/hikey960_bl31_setup.c
plat/hisilicon/hikey960/hikey960_bl_common.c
plat/hisilicon/hikey960/hikey960_pm.c
plat/hisilicon/hikey960/include/hi3660.h
plat/hisilicon/hikey960/platform.mk