fvp_bl2_setup.c 763 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2013-2019, 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
8
9
#include <drivers/arm/sp804_delay_timer.h>
#include <drivers/generic_delay_timer.h>
#include <lib/mmio.h>
10
#include <plat/arm/common/plat_arm.h>
11
#include <plat/common/platform.h>
12
#include <platform_def.h>
13

14
#include "fvp_private.h"
15

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

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

void bl2_platform_setup(void)
{
	arm_bl2_platform_setup();

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