OSDN Git Service

vexpress: Set reset-cbar property for CPUs
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:31:45 +0000 (16:31 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:31:45 +0000 (16:31 +0000)
commit9948c38bd9aef8fa762a1b62b9fccc35e11a6fd5
tree7caed686c41754d84b64a5b947b17bb5f9ae6f25
parent87f639629334c4592c3ba1011af0f691db1e7ed1
vexpress: Set reset-cbar property for CPUs

Newer versions of the Linux kernel (as of commit bc41b8724 in 3.12)
now assume that if the CPU is a Cortex-A9 and the reset value of the
PERIPHBASE/CBAR register is zero then the CPU is a specific buggy
single core A9 SoC, and will not try to start other cores. Since we
now have a CPU property for the reset value of the CBAR, we can
just fix the vexpress board model to correctly set CBAR so SMP
works again. To avoid duplicate boilerplate code in both the A9
and A15 daughterboard init functions, we split out the CPU and
private memory region init to its own function.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Rob Herring <rob.herring@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1394462692-8871-2-git-send-email-peter.maydell@linaro.org
hw/arm/vexpress.c