blob: 5e128644b29bf791705fa8315eb67a579abcca38 [file] [log] [blame]
Angel Ponsb6636b02020-04-05 13:21:41 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Wisley Chena8a73742019-12-19 18:08:09 +08002
3#include <delay.h>
4#include <gpio.h>
5#include <baseboard/variants.h>
Wisley Chena8a73742019-12-19 18:08:09 +08006
7void variant_ramstage_init(void)
8{
9 /*
10 * Enable power to FPMCU, wait for power rail to stabilize,
11 * and then deassert FPMCU reset.
12 * Waiting for the power rail to stabilize can take a while,
13 * a minimum of 400us on Kohaku.
14 */
15 gpio_output(GPP_C11, 1);
16 mdelay(1);
17 gpio_output(GPP_A12, 1);
18}