2013-10-25 09:08:21 +01:00
|
|
|
/*
|
2020-02-03 20:56:42 +00:00
|
|
|
* Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
|
2013-10-25 09:08:21 +01:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2013-10-25 09:08:21 +01:00
|
|
|
*/
|
|
|
|
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <drivers/arm/sp804_delay_timer.h>
|
2019-01-25 14:30:04 +00:00
|
|
|
#include <plat/arm/common/plat_arm.h>
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <plat/common/platform.h>
|
2019-01-15 14:19:50 +00:00
|
|
|
#include <platform_def.h>
|
2018-12-14 00:18:21 +00:00
|
|
|
|
2014-05-14 17:44:19 +01:00
|
|
|
#include "fvp_private.h"
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2018-01-10 15:59:31 +00:00
|
|
|
void bl2_early_platform_setup2(u_register_t arg0, u_register_t arg1, u_register_t arg2, u_register_t arg3)
|
2013-10-25 09:08:21 +01:00
|
|
|
{
|
2018-01-15 14:45:33 +00:00
|
|
|
arm_bl2_early_platform_setup((uintptr_t)arg0, (meminfo_t *)arg1);
|
2013-10-25 09:08:21 +01:00
|
|
|
|
|
|
|
/* Initialize the platform config for future decision making */
|
2014-05-15 14:53:30 +01:00
|
|
|
fvp_config_setup();
|
2014-05-16 18:48:12 +01:00
|
|
|
}
|
2015-03-17 14:54:01 +00:00
|
|
|
|
|
|
|
void bl2_platform_setup(void)
|
|
|
|
{
|
|
|
|
arm_bl2_platform_setup();
|
|
|
|
|
2019-08-16 14:15:59 +01:00
|
|
|
/* Initialize System level generic or SP804 timer */
|
|
|
|
fvp_timer_init();
|
2015-03-17 14:54:01 +00:00
|
|
|
}
|