powerpc/qe: update QE Serial Number
authorHaiying Wang <Haiying.Wang@freescale.com>
Fri, 1 May 2009 19:40:48 +0000 (15:40 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 19 May 2009 05:50:24 +0000 (00:50 -0500)
commit98ca77af23da6682bb3e34961a3f32e2c064a4ce
tree7c022d718c8933d25cf59c71ace2683731f905e9
parent345f84227b50e90329dd303499024603596566f4
powerpc/qe: update QE Serial Number

The latest QE chip may have more Serial Number(SNUM)s of thread to use. We
will get the number of SNUMs from device tree by reading the new property
"fsl,qe-num-snums", and set 28 as the default number of SNUMs so that it is
compatible with the old QE chips' device trees which don't have this new
property. The macro QE_NUM_OF_SNUM is defined as the maximum number in QE
snum table which is 256.

Also we update the snum_init[] array with 18 more new SNUMs which are
confirmed to be useful on new chip.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Documentation/powerpc/dts-bindings/fsl/cpm_qe/qe.txt
arch/powerpc/include/asm/qe.h
arch/powerpc/sysdev/qe_lib/qe.c