coverity: fix MISRA violationsFixes for the following MISRA violations:- Missing explicit parentheses on sub-expression- An identifier or macro name beginning with an underscore, shall not be d
coverity: fix MISRA violationsFixes for the following MISRA violations:- Missing explicit parentheses on sub-expression- An identifier or macro name beginning with an underscore, shall not be declared- Type mismatch in BL1 SMC handlers and tspd_main.cChange-Id: I7a92abf260da95acb0846b27c2997b59b059efc4Signed-off-by: Zelalem <zelalem.aweke@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: Move norflash driver to drivers/ folderThis way it can be reused by other platforms if needed.Note that this driver is designed to work with the Versatile Express NORflash of Juno and
plat/arm: Move norflash driver to drivers/ folderThis way it can be reused by other platforms if needed.Note that this driver is designed to work with the Versatile Express NORflash of Juno and FVP. In said platforms, the memory is organized as aninterleaved memory of two chips with a 16 bit word.Any platform that wishes to reuse it with a different configuration willneed to modify the driver so that it is more generic.Change-Id: Ic721758425864e0cf42b7b9b04bf0d9513b6022eSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>