]> git.ipfire.org Git - people/ms/u-boot.git/commit
armv8: fsl-layerscape: Fix "cpu status" command
authorYork Sun <york.sun@nxp.com>
Tue, 13 Sep 2016 19:40:30 +0000 (12:40 -0700)
committerYork Sun <york.sun@nxp.com>
Thu, 6 Oct 2016 16:56:57 +0000 (09:56 -0700)
commitef9a5fd8643ebdd5f492a5b09725134999f428b9
treeaae37bebfc242c7f0f63e8e2fa3b735440deb056
parent5d1a7a9d209fd9b8ffca1f3f27139f372a225e16
armv8: fsl-layerscape: Fix "cpu status" command

The core position is not continuous for some SoCs. For example,
valid cores may present at position 0, 1, 4, 5, 8, 9, etc. Some
registers (including boot release register) only count existing
cores. Current implementation of cpu_mask() complies with the
continuous numbering. However, command "cpu status" queries the
spin table with actual core position. Add functions to calculate
core position from core number, to correctly calculate offsets.

Tested on LS2080ARDB and LS1043ARDB.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/mp.c
arch/arm/include/asm/arch-fsl-layerscape/mp.h