Angel Pons | b6636b0 | 2020-04-05 13:21:41 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Wisley Chen | a8a7374 | 2019-12-19 18:08:09 +0800 | [diff] [blame] | 2 | |
| 3 | #include <delay.h> |
| 4 | #include <gpio.h> |
| 5 | #include <baseboard/variants.h> |
Wisley Chen | a8a7374 | 2019-12-19 18:08:09 +0800 | [diff] [blame] | 6 | |
| 7 | void 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 | } |