rockchip: gru: pass apio number to arm-trust-firmware

for save power consumption, some gpio2 ~ gpio4 need to
set to input and pull none mode. It depend on these gpio
should shut down there power supply, so pass apio number
to ATF, to decide which gpio need to config.

BRANCH=None
BUG=chrome-os-partner:56423
TEST=run suspend_stress_test on kevin board

Change-Id: Iaf441e8e34c5591ffe7c65f6533fcf0b733ff5ac
Signed-off-by: Lin Huang <hl@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/378475
Commit-Ready: Caesar Wang <wxt@rock-chips.com>
Tested-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Lin Huang 2016-08-30 15:34:42 -07:00 committed by chrome-bot
parent 0f3332ef21
commit 9c42082d1c

View file

@ -43,6 +43,23 @@ static void configure_emmc(void)
rkclk_configure_emmc();
}
static void register_apio_suspend(void)
{
static struct bl31_apio_param param_apio = {
.h = {
.type = PARAM_SUSPEND_APIO,
},
.apio = {
.apio1 = 1,
.apio2 = 1,
.apio3 = 1,
.apio4 = 1,
.apio5 = 1,
},
};
register_bl31_param(&param_apio.h);
}
static void register_gpio_suspend(void)
{
/*
@ -227,6 +244,7 @@ static void mainboard_init(device_t dev)
register_reset_to_bl31();
register_poweroff_to_bl31();
register_gpio_suspend();
register_apio_suspend();
}
static void enable_backlight_booster(void)