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>
show more ...
Fix MISRA defects in SP805 driverFix violations of MISRA C-2012 Rules 10.1, 10.3 and 10.4.Change-Id: I13c6acda798c1666892f630f097a23e68748f9e4Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@a
Fix MISRA defects in SP805 driverFix violations of MISRA C-2012 Rules 10.1, 10.3 and 10.4.Change-Id: I13c6acda798c1666892f630f097a23e68748f9e4Signed-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 a simple ARM SP805 watchdog driverBased on SP805 Programmer's model (ARM DDI 0270B). This driverprovides three public APIs: void sp805_start(uintptr_t base, unsigned long ticks); void
Add a simple ARM SP805 watchdog driverBased on SP805 Programmer's model (ARM DDI 0270B). This driverprovides three public APIs: void sp805_start(uintptr_t base, unsigned long ticks); void sp805_stop(uintptr_t base); void sp805_refresh(uintptr_t base, unsigned long ticks);Upon start, the watchdog starts counting down from the number ofticks specified. When the count reaches 0 an interrupt is triggered.The watchdog restarts counting down from the number of ticksspecified. If the count reaches 0 again, the system is reset. Amechanism to handle the interrupt has not been implemented. Instead,the API to refresh the watchdog should be used instead to prevent asystem reset.Change-Id: I799d53f8d1213b10b341a4a67fde6486e89a3dab