Simon Glass | 466c785 | 2019-12-06 21:42:18 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2019 Google LLC |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <init.h> |
Bin Meng | fe9f1df | 2021-08-02 17:45:22 +0800 | [diff] [blame^] | 9 | #include <asm/fsp/fsp_support.h> |
Simon Glass | 466c785 | 2019-12-06 21:42:18 -0700 | [diff] [blame] | 10 | |
| 11 | int arch_fsp_init(void) |
| 12 | { |
| 13 | return 0; |
| 14 | } |
Bin Meng | fe9f1df | 2021-08-02 17:45:22 +0800 | [diff] [blame^] | 15 | |
| 16 | void board_final_cleanup(void) |
| 17 | { |
| 18 | u32 status; |
| 19 | |
| 20 | /* TODO(sjg@chromium.org): This causes Linux to crash */ |
| 21 | return; |
| 22 | |
| 23 | /* call into FspNotify */ |
| 24 | debug("Calling into FSP (notify phase INIT_PHASE_END_FIRMWARE): "); |
| 25 | status = fsp_notify(NULL, INIT_PHASE_END_FIRMWARE); |
| 26 | if (status) |
| 27 | debug("fail, error code %x\n", status); |
| 28 | else |
| 29 | debug("OK\n"); |
| 30 | } |