power: reset: power key detection only when power off

1. In power off flow:
- detect power key is really released
- execute acpm_prepare_reboot
- AOSP send SMC to TF-A to do real power off action.

2. In cold reboot flow:
- skip power key detection
- execute acpm_prepare_reboot
- AOSP send SMC to TF-A to do real cold reboot action

Bug: 234066226
Signed-off-by: Jone Chou <[email protected]>
Change-Id: Id9ace2c2b8a9841f5f5ac978b8650cad793c0d7a
(cherry picked from commit 4cc727a5900bc7473b8c0f3b075c6ae63d91e0f9)
1 file changed
tree: efe9aa91c49b91bc6068e574682769b9b48664c2
  1. BUILD.bazel
  2. exynos-gs101-reboot.c
  3. exynos-gs201-reboot.c
  4. Kbuild
  5. Kconfig
  6. Makefile