Commit 615f0cba584d11944b43af03cc6d9324fc7587e3

Authored by York Sun
Committed by Andy Fleming
1 parent eb80880eb2

powerpc/mpc85xx: Fix PIR parsing for chassis2

The PIR parsing algorithm we used is not only for E6500. It applies to all
SoCs with chassis 2.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

arch/powerpc/cpu/mpc85xx/release.S
... ... @@ -159,9 +159,9 @@
159 159 * we cannot access it yet before setting up a new TLB
160 160 */
161 161 mfspr r0,SPRN_PIR
162   -#if defined(CONFIG_E6500)
  162 +#ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
163 163 /*
164   - * PIR definition for E6500
  164 + * PIR definition for Chassis 2
165 165 * 0-17 Reserved (logic 0s)
166 166 * 8-19 CHIP_ID, 2'b00 - SoC 1
167 167 * all others - reserved
... ... @@ -187,7 +187,7 @@
187 187 slwi r8,r4,6 /* spin table is padded to 64 byte */
188 188 add r10,r3,r8
189 189  
190   -#ifdef CONFIG_E6500
  190 +#ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
191 191 mfspr r0,SPRN_PIR
192 192 /*
193 193 * core 0 thread 0: pir reset value 0x00, new pir 0