Remove several warnings reported with W=2Improved support for W=2 compilation flag by solving some nested-externand sign-compare warnings.The libraries are compiling with warnings (which turn in
Remove several warnings reported with W=2Improved support for W=2 compilation flag by solving some nested-externand sign-compare warnings.The libraries are compiling with warnings (which turn into errors withthe Werror flag).Outside of libraries, some warnings cannot be fixed.Change-Id: I06b1923857f2a6a50e93d62d0274915b268cef05Signed-off-by: Ambroise Vincent <ambroise.vincent@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>
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>
Add SP804 delay timer driverAdd a delay timer driver for the ARM SP804 dual timer.This driver only uses the first timer, called timer 1 in theSP804 Technical Reference Manual (ARM DDI 0271D).T
Add SP804 delay timer driverAdd a delay timer driver for the ARM SP804 dual timer.This driver only uses the first timer, called timer 1 in theSP804 Technical Reference Manual (ARM DDI 0271D).To use this driver, the BSP must provide three constants:* The base address of the SP804 dual timer* The clock multiplier* The clock dividerThe BSP is responsible for calling sp804_timer_init(). The SP804driver instantiates a constant timer_ops_t and calls the generictimer_init().Change-Id: I49ba0a52bdf6072f403d1d0a20e305151d4bc086Co-authored-by: Dan Handley <dan.handley@arm.com>