Commit e180cdba authored by Manish Pandey's avatar Manish Pandey Committed by TrustedFirmware Code Review
Browse files

Merge changes from topic "deprecated-macro" into integration

* changes:
  Makefile: Remove unused macro
  plat: brcm: Remove 'AARCH32' deprecated macro
  Remove deprecated macro from TF-A code
parents 81cf819a acbe35e0
...@@ -1067,14 +1067,6 @@ ifneq ($(findstring clang,$(notdir $(CC))),) ...@@ -1067,14 +1067,6 @@ ifneq ($(findstring clang,$(notdir $(CC))),)
else else
CPPFLAGS += -Wno-error=deprecated-declarations -Wno-error=cpp CPPFLAGS += -Wno-error=deprecated-declarations -Wno-error=cpp
endif endif
# __ASSEMBLY__ is deprecated in favor of the compiler-builtin __ASSEMBLER__.
ASFLAGS += -D__ASSEMBLY__
# AARCH32/AARCH64 macros are deprecated in favor of the compiler-builtin __aarch64__.
ifeq (${ARCH},aarch32)
$(eval $(call add_define,AARCH32))
else
$(eval $(call add_define,AARCH64))
endif
endif # !ERROR_DEPRECATED endif # !ERROR_DEPRECATED
$(eval $(call MAKE_LIB_DIRS)) $(eval $(call MAKE_LIB_DIRS))
......
/* /*
* Copyright (C) 2018 Marvell International Ltd. * Copyright (C) 2018-2020 Marvell International Ltd.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses * https://spdx.org/licenses
...@@ -57,6 +57,6 @@ int llc_sram_enable(int ap_index, int size); ...@@ -57,6 +57,6 @@ int llc_sram_enable(int ap_index, int size);
void llc_sram_disable(int ap_index); void llc_sram_disable(int ap_index);
int llc_sram_test(int ap_index, int size, char *msg); int llc_sram_test(int ap_index, int size, char *msg);
#endif /* LLC_SRAM */ #endif /* LLC_SRAM */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLER__ */
#endif /* CACHE_LLC_H */ #endif /* CACHE_LLC_H */
...@@ -323,7 +323,7 @@ static int brcm_validate_ns_entrypoint(uintptr_t entrypoint) ...@@ -323,7 +323,7 @@ static int brcm_validate_ns_entrypoint(uintptr_t entrypoint)
if ((entrypoint >= BRCM_NS_DRAM1_BASE) && if ((entrypoint >= BRCM_NS_DRAM1_BASE) &&
(entrypoint < (BRCM_NS_DRAM1_BASE + BRCM_NS_DRAM1_SIZE))) (entrypoint < (BRCM_NS_DRAM1_BASE + BRCM_NS_DRAM1_SIZE)))
return PSCI_E_SUCCESS; return PSCI_E_SUCCESS;
#ifndef AARCH32 #ifdef __aarch64__
if ((entrypoint >= BRCM_DRAM2_BASE) && if ((entrypoint >= BRCM_DRAM2_BASE) &&
(entrypoint < (BRCM_DRAM2_BASE + BRCM_DRAM2_SIZE))) (entrypoint < (BRCM_DRAM2_BASE + BRCM_DRAM2_SIZE)))
return PSCI_E_SUCCESS; return PSCI_E_SUCCESS;
......
/* /*
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define MC_SMMU_BYPASS_CONFIG_SETTINGS (MC_SMMU_BYPASS_CONFIG_WRITE_ACCESS_BIT | \ #define MC_SMMU_BYPASS_CONFIG_SETTINGS (MC_SMMU_BYPASS_CONFIG_WRITE_ACCESS_BIT | \
MC_SMMU_CTRL_TBU_BYPASS_SPL_STREAMID) MC_SMMU_CTRL_TBU_BYPASS_SPL_STREAMID)
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLER__
#include <assert.h> #include <assert.h>
...@@ -53,9 +53,9 @@ typedef struct mc_regs { ...@@ -53,9 +53,9 @@ typedef struct mc_regs {
.val = 0xFFFFFFFFU, \ .val = 0xFFFFFFFFU, \
} }
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLER__ */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLER__
#include <lib/mmio.h> #include <lib/mmio.h>
......
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
#define MC_CLIENT_HOTRESET_CTRL1_SCE_FLUSH_ENB (1U << 24) #define MC_CLIENT_HOTRESET_CTRL1_SCE_FLUSH_ENB (1U << 24)
#define MC_CLIENT_HOTRESET_STATUS1 0x974U #define MC_CLIENT_HOTRESET_STATUS1 0x974U
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLER__
/******************************************************************************* /*******************************************************************************
* Structure to hold the transaction override settings to use to override * Structure to hold the transaction override settings to use to override
...@@ -393,6 +393,6 @@ typedef struct mc_streamid_security_cfg { ...@@ -393,6 +393,6 @@ typedef struct mc_streamid_security_cfg {
MC_TXN_OVERRIDE_CONFIG_CGID_##so_dev_axi_id); \ MC_TXN_OVERRIDE_CONFIG_CGID_##so_dev_axi_id); \
} while (0) } while (0)
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLER__ */
#endif /* TEGRA_MC_DEF_H */ #endif /* TEGRA_MC_DEF_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment