Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame^] | 1 | /* 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 | |
| 8 | void 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 | } |