From: Niklaus Giger <niklaus.giger@netstal.com>
Date: Fri, 18 Jul 2008 09:22:23 +0000 (+0200)
Subject: POST PPC4xx/spr IVPR only if PPC440
X-Git-Tag: v2025.01-rc5-pxa1908~21999^2~42
X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=0043ac55024963295fc79b39af85b6dc3b261e17;p=u-boot.git

POST PPC4xx/spr IVPR only if PPC440

The SPR IVPR register is only present (as far as I know) for
processors with a PPC440 core.

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
Acked-by: Stefan Roese <sr@denx.de>
---

diff --git a/post/cpu/ppc4xx/spr.c b/post/cpu/ppc4xx/spr.c
index 6152eb21a9..110df6e910 100644
--- a/post/cpu/ppc4xx/spr.c
+++ b/post/cpu/ppc4xx/spr.c
@@ -76,7 +76,9 @@ static struct {
 	{0x3b,	"CSRR1",	0x00000000,	0x00000000},
 	{0x3d,	"DEAR",		0x00000000,	0x00000000},
 	{0x3e,	"ESR",		0x00000000,	0x00000000},
+#ifdef CONFIG_440
 	{0x3f,	"IVPR",		0xffff0000,	0x00000000},
+#endif
 	{0x100,	"USPRG0",	0x00000000,	0x00000000},
 	{0x104,	"SPRG4",	0x00000000,	0x00000000},
 	{0x105,	"SPRG5",	0x00000000,	0x00000000},