diff options
author | davidcunado-arm <david.cunado@arm.com> | 2018-03-03 00:25:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-03 00:25:19 +0000 |
commit | 06e3a5e118eebf7575b1ae16edfeca781a4415d5 (patch) | |
tree | 521fcfcebc2e764f51109cb8aedef4519351ef3c /plat/common | |
parent | c208d8128ae28909497dd37fd97d41dcce58c726 (diff) | |
parent | 0ed8c00174f8c2bd7917fafa5c72a038f944b07b (diff) | |
download | platform_external_arm-trusted-firmware-06e3a5e118eebf7575b1ae16edfeca781a4415d5.tar.gz platform_external_arm-trusted-firmware-06e3a5e118eebf7575b1ae16edfeca781a4415d5.tar.bz2 platform_external_arm-trusted-firmware-06e3a5e118eebf7575b1ae16edfeca781a4415d5.zip |
Merge pull request #1297 from soby-mathew/sm/fix_aarch32_plat_cmn
Remove sp_min functions from plat_common.c
Diffstat (limited to 'plat/common')
-rw-r--r-- | plat/common/aarch32/plat_common.c | 24 | ||||
-rw-r--r-- | plat/common/aarch32/plat_sp_min_common.c | 36 |
2 files changed, 37 insertions, 23 deletions
diff --git a/plat/common/aarch32/plat_common.c b/plat/common/aarch32/plat_common.c index c02386983..4f2714902 100644 --- a/plat/common/aarch32/plat_common.c +++ b/plat/common/aarch32/plat_common.c @@ -4,9 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include <console.h> #include <platform.h> -#include <platform_sp_min.h> #include <xlat_mmu_helpers.h> /* @@ -15,29 +13,9 @@ * platforms but may also be overridden by a platform if required. */ #pragma weak bl32_plat_enable_mmu -#pragma weak sp_min_plat_runtime_setup + void bl32_plat_enable_mmu(uint32_t flags) { enable_mmu_secure(flags); } - -void sp_min_plat_runtime_setup(void) -{ - /* - * Finish the use of console driver in SP_MIN so that any runtime logs - * from SP_MIN will be suppressed. - */ - console_uninit(); -} - -#if !ERROR_DEPRECATED - -#pragma weak sp_min_early_platform_setup2 - -void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1, - u_register_t arg2, u_register_t arg3) -{ - sp_min_early_platform_setup((void *) arg0, (void *)arg1); -} -#endif diff --git a/plat/common/aarch32/plat_sp_min_common.c b/plat/common/aarch32/plat_sp_min_common.c new file mode 100644 index 000000000..67ae817e6 --- /dev/null +++ b/plat/common/aarch32/plat_sp_min_common.c @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include <console.h> +#include <platform.h> +#include <platform_sp_min.h> + +/* + * The following platform setup functions are weakly defined. They + * provide typical implementations that may be re-used by multiple + * platforms but may also be overridden by a platform if required. + */ +#pragma weak sp_min_plat_runtime_setup + +void sp_min_plat_runtime_setup(void) +{ + /* + * Finish the use of console driver in SP_MIN so that any runtime logs + * from SP_MIN will be suppressed. + */ + console_uninit(); +} + +#if !ERROR_DEPRECATED + +#pragma weak sp_min_early_platform_setup2 + +void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1, + u_register_t arg2, u_register_t arg3) +{ + sp_min_early_platform_setup((void *)arg0, (void *)arg1); +} +#endif |