From b741293f34e394dc544250b3bad39a148e206f6d Mon Sep 17 00:00:00 2001 From: Gavin Liu Date: Tue, 5 Nov 2024 11:08:28 +0800 Subject: [PATCH] feat(mediatek): move plat_helpers.h to the common folder The plat_helpers.h is identical across various platforms, moved to the common folder for easier maintenance. Change-Id: Ic9f10c697fcda7e3cfbf32e67486c9cd28481b8a Signed-off-by: Gavin Liu --- plat/mediatek/{mt8188 => }/include/plat_helpers.h | 2 +- plat/mediatek/mt8186/include/plat_helpers.h | 12 ------------ plat/mediatek/mt8192/include/plat_helpers.h | 12 ------------ plat/mediatek/mt8195/include/plat_helpers.h | 12 ------------ 4 files changed, 1 insertion(+), 37 deletions(-) rename plat/mediatek/{mt8188 => }/include/plat_helpers.h (71%) delete mode 100644 plat/mediatek/mt8186/include/plat_helpers.h delete mode 100644 plat/mediatek/mt8192/include/plat_helpers.h delete mode 100644 plat/mediatek/mt8195/include/plat_helpers.h diff --git a/plat/mediatek/mt8188/include/plat_helpers.h b/plat/mediatek/include/plat_helpers.h similarity index 71% rename from plat/mediatek/mt8188/include/plat_helpers.h rename to plat/mediatek/include/plat_helpers.h index eb78623ce..b86ed239b 100644 --- a/plat/mediatek/mt8188/include/plat_helpers.h +++ b/plat/mediatek/include/plat_helpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2024, Mediatek Inc. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ diff --git a/plat/mediatek/mt8186/include/plat_helpers.h b/plat/mediatek/mt8186/include/plat_helpers.h deleted file mode 100644 index ebc9fa01f..000000000 --- a/plat/mediatek/mt8186/include/plat_helpers.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef __PLAT_HELPERS_H__ -#define __PLAT_HELPERS_H__ - -unsigned int plat_mediatek_calc_core_pos(u_register_t mpidr); - -#endif /* __PLAT_HELPERS_H__ */ diff --git a/plat/mediatek/mt8192/include/plat_helpers.h b/plat/mediatek/mt8192/include/plat_helpers.h deleted file mode 100644 index 9b550ee25..000000000 --- a/plat/mediatek/mt8192/include/plat_helpers.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef __PLAT_HELPERS_H__ -#define __PLAT_HELPERS_H__ - -unsigned int plat_mediatek_calc_core_pos(u_register_t mpidr); - -#endif /* __PLAT_HELPERS_H__ */ diff --git a/plat/mediatek/mt8195/include/plat_helpers.h b/plat/mediatek/mt8195/include/plat_helpers.h deleted file mode 100644 index ebc9fa01f..000000000 --- a/plat/mediatek/mt8195/include/plat_helpers.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef __PLAT_HELPERS_H__ -#define __PLAT_HELPERS_H__ - -unsigned int plat_mediatek_calc_core_pos(u_register_t mpidr); - -#endif /* __PLAT_HELPERS_H__ */