fvp_bl2_setup.c 700 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
#include <drivers/arm/sp804_delay_timer.h>
8
#include <plat/arm/common/plat_arm.h>
9
#include <plat/common/platform.h>
10
#include <platform_def.h>
11

12
#include "fvp_private.h"
13

14
void bl2_early_platform_setup2(u_register_t arg0, u_register_t arg1, u_register_t arg2, u_register_t arg3)
15
{
16
	arm_bl2_early_platform_setup((uintptr_t)arg0, (meminfo_t *)arg1);
17
18

	/* Initialize the platform config for future decision making */
19
	fvp_config_setup();
20
}
Ryan Harkin's avatar
Ryan Harkin committed
21
22
23
24
25

void bl2_platform_setup(void)
{
	arm_bl2_platform_setup();

26
27
	/* Initialize System level generic or SP804 timer */
	fvp_timer_init();
Ryan Harkin's avatar
Ryan Harkin committed
28
}