OSDN Git Service

hw/arm/mps2-tz: Fix MPS2 SCC config register values
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:47 +0000 (13:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:47 +0000 (13:17 +0100)
commitcb159db944b290a4704603baa8b96facde634521
tree42a9a8f70c1fa6beba523aab08f222c808795adc
parent0d49759b97cb8b62079921c631179ebd6b716a27
hw/arm/mps2-tz: Fix MPS2 SCC config register values

Some of the config register values we were setting for the MPS2 SCC
weren't correct:
 * the SCC_AID bits [23:20] specify the FPGA build target board revision,
   and the SCC_CFG4 register specifies the actual board revision, so
   these should have matching values. Claim to be board revision C,
   consistently -- we had the revision in the wrong part of SCC_AID.
 * SCC_ID bits [15:4] should be 0x505, not decimal 505

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20180820141116.9118-23-peter.maydell@linaro.org
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/arm/mps2-tz.c