Update hisilicon drivers to not rely on undefined overflow behaviourThis consists of ensuring that the left operand of each shift isunsigned when the operation might overflow into the sign bit.C
Update hisilicon drivers to not rely on undefined overflow behaviourThis consists of ensuring that the left operand of each shift isunsigned when the operation might overflow into the sign bit.Change-Id: I67984b6c48c08af61e95a4dbd18047e2c3151f9aSigned-off-by: Justin Chadwell <justin.chadwell@arm.com>
show more ...
hikey960: Fix race condition between hotplug and idlesFrom the hotplug testing on Hikey960, in some case cores fail to becomeonline in the system. When some cores are hotplugged off, if othercore
hikey960: Fix race condition between hotplug and idlesFrom the hotplug testing on Hikey960, in some case cores fail to becomeonline in the system. When some cores are hotplugged off, if othercores in the same cluster enter into CPU idle states at the meantime,the cluster will be powered off. This introduces the state machinemalfunction in the power controller, thus when hotplug on the coreafterwards, it fails to boot up the core because the power controllerthinks the cluster is powered on.This patch is to avoid race condition between hotplug and idles bypreventing cluster power off when some of cores in the cluster arehotplugged off, if all cores in the same cluster are hotplugged off,the cluster can be powered off.Change-Id: Ib2feeb093357c70409a3536cb4f9da9b504fdcbeSigned-off-by: Wei Yu <yuwei3@hisilicon.com>Signed-off-by: Leo Yan <leo.yan@linaro.org>
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>
Standardise header guards across codebaseAll identifiers, regardless of use, that start with two underscores arereserved. This means they can't be used in header guards.The style that this proje
Standardise header guards across codebaseAll identifiers, regardless of use, that start with two underscores arereserved. This means they can't be used in header guards.The style that this project is now to use the full name of the file incapital letters followed by 'H'. For example, for a file called"uart_example.h", the header guard is UART_EXAMPLE_H.The exceptions are files that are imported from other projects:- CryptoCell driver- dt-bindings folders- zlib headersChange-Id: I50561bf6c88b491ec440d0c8385c74650f3c106eSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
hikey960: fix build issue with CLANGplat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c:290:20:error: unused function 'hisi_pdc_set_intmask' [-Werror,-Wunused-function]static inline void hisi_pdc_se
hikey960: fix build issue with CLANGplat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c:290:20:error: unused function 'hisi_pdc_set_intmask' [-Werror,-Wunused-function]static inline void hisi_pdc_set_intmask(void *pdc_base_addr, ^1 error generated.Makefile:605: recipe for target 'build/hikey960/release/bl31/hisi_pwrc.o' failedmake: *** [build/hikey960/release/bl31/hisi_pwrc.o] Error 1Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Fix order of remaining platform #includesThis fix modifies the order of system includes to meet the ARM TF codingstandard. There are some exceptions to this change in order to retainheader groupi
Fix order of remaining platform #includesThis fix modifies the order of system includes to meet the ARM TF codingstandard. There are some exceptions to this change in order to retainheader groupings and where there are headers within #if statements.Change-Id: Ib5b668c992d817cc860e97b29e16ef106d17e404Signed-off-by: Isla Mitchell <isla.mitchell@arm.com>
hikey960: support BL31Support BL31 on HiKey960 platform. Implement PSCI.Signed-off-by: Leo Yan <leo.yan@linaro.org>Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>