public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] powerpc/85xx: Report workaround of errata SATA-A001
Date: Wed,  9 Jun 2010 23:18:55 -0500	[thread overview]
Message-ID: <1276143535-22532-2-git-send-email-galak@kernel.crashing.org> (raw)
In-Reply-To: <1276143535-22532-1-git-send-email-galak@kernel.crashing.org>

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/cpu/mpc85xx/cmd_errata.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/cpu/mpc85xx/cmd_errata.c b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
index 6824ebf..81078bd 100644
--- a/arch/powerpc/cpu/mpc85xx/cmd_errata.c
+++ b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
@@ -22,9 +22,23 @@
 
 #include <common.h>
 #include <command.h>
+#include <linux/compiler.h>
+#include <asm/processor.h>
 
 static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
+	__maybe_unused u32 svr = get_svr();
+
+#if defined(CONFIG_FSL_SATA_V2) && defined(CONFIG_FSL_SATA_ERRATUM_A001)
+	if (IS_SVR_REV(svr, 1, 0) &&
+	    ((SVR_SOC_VER(svr) == SVR_P1022) ||
+	     (SVR_SOC_VER(svr) == SVR_P1022_E) ||
+	     (SVR_SOC_VER(svr) == SVR_P1013) ||
+	     (SVR_SOC_VER(svr) == SVR_P1013_E))) {
+		puts("Work-around for Erratum SATA A001 enabled\n");
+	}
+#endif
+
 	return 0;
 }
 
-- 
1.6.0.6

  reply	other threads:[~2010-06-10  4:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10  4:18 [U-Boot] [PATCH 1/2] powerpc/85xx: Add command to report errata workarounds Kumar Gala
2010-06-10  4:18 ` Kumar Gala [this message]
2010-06-11  1:58   ` [U-Boot] [PATCH 2/2] powerpc/85xx: Report workaround of errata SATA-A001 Timur Tabi
2010-06-11 13:33     ` Kumar Gala
2010-06-30  9:40   ` Kumar Gala
2010-07-14 19:30   ` Wolfgang Denk
2010-07-14 21:06     ` Kumar Gala
2010-07-14 21:13       ` Wolfgang Denk
2010-07-14 21:20       ` [U-Boot] [PATCH] powerpc/85xx: Add command to report errata workarounds Kumar Gala
2010-07-14 21:43         ` Wolfgang Denk
2010-07-14 22:05           ` Kumar Gala
2010-07-14 22:07       ` [U-Boot] [PATCH v3] " Kumar Gala
2010-06-30  9:39 ` [U-Boot] [PATCH 1/2] " Kumar Gala
2010-07-14 19:29 ` Wolfgang Denk
2010-07-14 20:50   ` Kumar Gala
2010-07-14 21:00     ` Wolfgang Denk
2010-07-14 21:06       ` Kumar Gala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1276143535-22532-2-git-send-email-galak@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox