Skip to contentSkip to conversation

Bug fix for Xilinx silicon errata 213.

PATCH New Grant C. Likely 1 participant 1 message Jan 14, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 9/10 Bug fix for Xilinx silicon errata 213.

Pulled from Xilinx's Linux source code. Also adds CONFIG entries to differentiate between the VIRTEX_4_FX and VIRTEX_II_PRO where appropriate.

---

 arch/ppc/boot/simple/head.S    |    7 +++++++
 arch/ppc/platforms/4xx/Kconfig |   12 +++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)

94032273929311dfaa6cc5516a3376c67af83c0e

arch/ppc/boot/simple/head.S +7 -0
index 5e4adc2..119b9dc 100644
@@ -65,6 +65,13 @@ start_:
 			 */
 #endif
 
+#if defined(CONFIG_XILINX_VIRTEX_4_FX)
+	/* PPC errata 213: only for Virtex-4 FX */
+	mfccr0  0
+	oris    0,0,0x50000000@h
+	mtccr0  0
+#endif
+
 	mflr	r3	/* Save our actual starting address. */
 
 	/* The following functions we call must not modify r3 or r4.....
arch/ppc/platforms/4xx/Kconfig +11 -1
index 48def71..174ddbc 100644
@@ -207,9 +207,19 @@ config 405GPR
 	depends on SYCAMORE
 	default y
 
+config XILINX_VIRTEX_II_PRO
+	bool
+	depends on XILINX_ML300
+	default y
+
+config XILINX_VIRTEX_4_FX
+	bool
+	depends on XILINX_ML403
+	default y
+
 config XILINX_VIRTEX
 	bool
-	depends on XILINX_ML300 || XILINX_ML403
+	depends on XILINX_VIRTEX_II_PRO || XILINX_VIRTEX_4_FX
 	default y
 
 config STB03xxx
Signature · 1 line
1.1.2-g9e9b-dirty