plat/arm: Fix header dependenciesFrom now on, platform_def.h must include any header with definitions thatare platform-specific (like arm_def.h) and the included headers mustn'tinclude back platf
plat/arm: Fix header dependenciesFrom now on, platform_def.h must include any header with definitions thatare platform-specific (like arm_def.h) and the included headers mustn'tinclude back platform_def.h, and shouldn't be used by other files. Onlyplatform_def.h should be included in other files. This will ensure that allneeded definitions are present, rather than needing to include all theheaders in all the definitions' headers just in case.This also prevents problems like cyclic dependencies.Change-Id: I9d3cf4d1de4b956fa035c79545222697acdaf5caSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
show more ...
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- inclu
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- include/lib/el3_runtime/${ARCH}The reason for this change is that having a global namespace forincludes isn't a good idea. It defeats one of the advantages of havingfolders and it introduces problems that are sometimes subtle (becauseyou may not know the header you are actually including if there are twoof them).For example, this patch had to be created because two headers werecalled the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platformto avoid collision."). More recently, this patch has had similarproblems: 46f9b2c3a282 ("drivers: add tzc380 support").This problem was introduced in commit 4ecca33988b9 ("Move include andsource files to logical locations"). At that time, there weren't toomany headers so it wasn't a real issue. However, time has shown thatthis creates problems.Platforms that want to preserve the way they include headers may add theremoved paths to PLAT_INCLUDES, but this is discouraged.Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8fSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
plat/arm: relocate the jump_if_cpu_midr macro.macro jump_if_cpu_midr is used commonly by many arm platform.It has now been relocated to common place to remove duplicationof code.Change-Id: Ic08
plat/arm: relocate the jump_if_cpu_midr macro.macro jump_if_cpu_midr is used commonly by many arm platform.It has now been relocated to common place to remove duplicationof code.Change-Id: Ic0876097dbc085df4f90eadb4b7687dde7c726daSigned-off-by: Deepak Pandey <Deepak.Pandey@arm.com>
juno: Fix AArch32 buildCommit 6de8b24f52cf2bd74adefbaa86dd2a0676c3eaa2 broke Juno AArch32build.Change-Id: Ied70d9becb86e53ccb46a2e3245e2a551d1bf701Signed-off-by: Dimitris Papastamos <dimitris.p
juno: Fix AArch32 buildCommit 6de8b24f52cf2bd74adefbaa86dd2a0676c3eaa2 broke Juno AArch32build.Change-Id: Ied70d9becb86e53ccb46a2e3245e2a551d1bf701Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by FreeBSD have not been modified.[0]: https://spdx.org/Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761aSigned-off-by: dp-arm <dimitris.papastamos@arm.com>
AArch32: Add SP_MIN support for JUNOThis patch adds support for SP_MIN on JUNO platform.The changes include addition of AArch32 assembly files,JUNO specific SP_MIN make file and miscellaneous cha
AArch32: Add SP_MIN support for JUNOThis patch adds support for SP_MIN on JUNO platform.The changes include addition of AArch32 assembly files,JUNO specific SP_MIN make file and miscellaneous changesin ARM platform files to enable support for SP_MIN.Change-Id: Id1303f422fc9b98b9362c757b1a4225a16fffc0bSigned-off-by: Yatharth Kochar <yatharth.kochar@arm.com>Signed-off-by: dp-arm <dimitris.papastamos@arm.com>