mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
0f3332ef21
commit
9c42082d1c
1 changed files with 18 additions and 0 deletions
|
@ -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(¶m_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)
|
||||
|
|
Loading…
Add table
Reference in a new issue