google/kukui: Configure AP_IN_SLEEP_L correctly
commitcc86d8921b7d285fd0b5841acfeca4ee12be3b3d
authorYou-Cheng Syu <youcheng@google.com>
Tue, 9 Apr 2019 04:55:55 +0000 (9 12:55 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 9 Apr 2019 17:23:59 +0000 (9 17:23 +0000)
treec444a7cb7ff159b170b04aae47a2dce9da08cacd
parent61d365fafdb2100aabf4d39bf525e5364d1db5e8
google/kukui: Configure AP_IN_SLEEP_L correctly

This pin should be set to its alternative function SRCLKENA0 instead of
GPIO, so that SPM (a power management component of MT8183) can control
it.

BUG=b:113367227
BRANCH=none
TEST=1. Boot. Run 'powerinfo' in EC console and see power state in S0.
     2. Run 'powerd_dbus_suspend --wakeup_timeout=10', and then
        run 'powerinfo' in EC console and see power state in S3.
     3. Wait until AP resume.
     4. Run 'powerinfo' in EC console and see power state back to S0.

Change-Id: I0a7e34f95381dec17eb6d166d6552c12e021bd9a
Signed-off-by: You-Cheng Syu <youcheng@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32120
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/kukui/early_init.c