blob: b198992824211b1b3855f8741f8f4c7180f78b1c [file] [log] [blame]
Sheng-Liang Pan29228282021-06-01 19:32:11 +08001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <delay.h>
4#include <gpio.h>
5#include <baseboard/variants.h>
6#include <soc/gpio.h>
7
8void variant_ramstage_init(void)
9{
10 /*
11 * Assert FPMCU reset and enable power to FPMCU,
12 * wait for power rail to stabilize,
13 * and then deassert FPMCU reset.
14 * Waiting for the power rail to stabilize can take a while.
15 */
16 gpio_output(GPP_C23, 0);
17 gpio_output(GPP_A21, 1);
18 mdelay(1);
19 gpio_output(GPP_C23, 1);
20}