Update hisilicon drivers to not rely on undefined overflow behaviour
authorJustin Chadwell <[email protected]>
Thu, 11 Jul 2019 08:35:01 +0000 (09:35 +0100)
committerJustin Chadwell <[email protected]>
Fri, 12 Jul 2019 08:12:19 +0000 (09:12 +0100)
commitd3b6df7c3b0db0c5791dd92b66f195a601d69559
tree2de45bb7c4e89dfb00df441697a6ba8811cd3700
parent9264f0876e7b085597c2da9fa850c8e6be1823f8
Update hisilicon drivers to not rely on undefined overflow behaviour

This consists of ensuring that the left operand of each shift is
unsigned when the operation might overflow into the sign bit.

Change-Id: I67984b6c48c08af61e95a4dbd18047e2c3151f9a
Signed-off-by: Justin Chadwell <[email protected]>
plat/hisilicon/hikey/hikey_ddr.c
plat/hisilicon/hikey/include/hi6220_regs_ao.h
plat/hisilicon/hikey/include/hi6220_regs_peri.h
plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c
plat/hisilicon/hikey960/include/hi3660.h
plat/hisilicon/hikey960/include/hi3660_crg.h
plat/hisilicon/hikey960/include/hi3660_hkadc.h