mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00

Align entire TF-A to use Arm in copyright header. Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244 Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
35 lines
770 B
C
35 lines
770 B
C
/*
|
|
* Copyright (c) 2019, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#include <inttypes.h>
|
|
#include <stdint.h>
|
|
|
|
#include <common/debug.h>
|
|
#include <lib/coreboot.h>
|
|
#include <lib/bl_aux_params/bl_aux_params.h>
|
|
|
|
void bl_aux_params_parse(u_register_t head,
|
|
bl_aux_param_handler_t handler)
|
|
{
|
|
struct bl_aux_param_header *p;
|
|
|
|
for (p = (void *)head; p; p = (void *)(uintptr_t)p->next) {
|
|
if (handler && handler(p))
|
|
continue;
|
|
|
|
switch (p->type) {
|
|
#if COREBOOT
|
|
case BL_AUX_PARAM_COREBOOT_TABLE:
|
|
coreboot_table_setup((void *)(uintptr_t)
|
|
((struct bl_aux_param_uint64 *)p)->value);
|
|
break;
|
|
#endif
|
|
default:
|
|
ERROR("Ignoring unknown BL aux parameter: 0x%" PRIx64,
|
|
p->type);
|
|
break;
|
|
}
|
|
}
|
|
}
|