sw: Properly mask syscon register fields
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 4 Jun 2020 01:56:47 +0000 (11:56 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 10 Jun 2020 03:10:57 +0000 (13:10 +1000)
commit3167515069e6ca2e236781974af08c05a06a0f84
treed625084715057e4ac16c351c4d995920a4d5747f
parent13da4caafb0f652d9f00744a62479a0eab2ccfee
sw: Properly mask syscon register fields

Some fields might get extended with extra bits, use the appropriate
masks when reading the values.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/microwatt_soc.h
lib/console.c
litedram/gen-src/sdram_init/main.c