Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2015 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef __ARM_TF_H__ |
| 17 | #define __ARM_TF_H__ |
| 18 | |
| 19 | #include <types.h> |
| 20 | |
| 21 | /* TODO: Pull in directly from ARM TF once its headers have been reorganized. */ |
| 22 | #include <arm_tf_temp.h> |
| 23 | |
| 24 | /* Load and enter BL31, set it up to exit to payload according to arguments. */ |
| 25 | void arm_tf_run_bl31(u64 payload_entry, u64 payload_arg0, u64 payload_spsr); |
| 26 | |
| 27 | /* Return platform-specific bl31_plat_params. May update bl31_params. */ |
| 28 | void *soc_get_bl31_plat_params(bl31_params_t *bl31_params); |
| 29 | |
| 30 | #endif /* __ARM_TF_H__ */ |