From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (S0106001346b91f0f.cg.shawcable.net [68.147.210.21]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 93B21689E8 for ; Mon, 9 Jan 2006 19:33:07 +1100 (EST) In-Reply-To: <11367955793438-git-send-email-grant.likely@secretlab.ca> Date: Mon, 9 Jan 2006 01:33:01 -0700 Message-Id: <11367955813778-git-send-email-grant.likely@secretlab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" To: glikely@gmail.com, mporter@kernel.crashing.org, linuxppc-embedded@ozlabs.org, gnathita@gmail.com, dhlii@dlasys.net From: grant.likely@secretlab.ca Subject: [PATCH 10/10] Bug fix for Xilinx silicon errata 213. Reply-To: grant.likely@secretlab.ca List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Pulled from Xilinx's Linux source code. Also adds CONFIG entries to differentiate between the VIRTEX_4_FX and VIRTEX_II_PRO where appropriate. Signed-off-by: Grant C. Likely --- arch/ppc/boot/simple/head.S | 7 +++++++ arch/ppc/platforms/4xx/Kconfig | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletions(-) 5fc2a191f262984434640c01599a439a7650b6e6 diff --git a/arch/ppc/boot/simple/head.S b/arch/ppc/boot/simple/head.S index 5e4adc2..119b9dc 100644 --- a/arch/ppc/boot/simple/head.S +++ b/arch/ppc/boot/simple/head.S @@ -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..... diff --git a/arch/ppc/platforms/4xx/Kconfig b/arch/ppc/platforms/4xx/Kconfig index 48def71..174ddbc 100644 --- a/arch/ppc/platforms/4xx/Kconfig +++ b/arch/ppc/platforms/4xx/Kconfig @@ -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 -- 1.0.6-g58e3