mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
powerpc/85xx: Add command to report errata workarounds
Add 'errata' command to report what errata we workaround. Report workaround for erratum SATA-A001 on P1022/P1013. Also sorted the CONFIG_CMD_* list. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
c59e1b4d07
commit
79ee344802
3 changed files with 55 additions and 3 deletions
|
@ -32,6 +32,7 @@ START = start.o resetvec.o
|
||||||
SOBJS-$(CONFIG_MP) += release.o
|
SOBJS-$(CONFIG_MP) += release.o
|
||||||
SOBJS = $(SOBJS-y)
|
SOBJS = $(SOBJS-y)
|
||||||
|
|
||||||
|
COBJS-$(CONFIG_CMD_ERRATA) += cmd_errata.o
|
||||||
COBJS-$(CONFIG_CPM2) += commproc.o
|
COBJS-$(CONFIG_CPM2) += commproc.o
|
||||||
|
|
||||||
# supports ddr1
|
# supports ddr1
|
||||||
|
|
51
arch/powerpc/cpu/mpc85xx/cmd_errata.c
Normal file
51
arch/powerpc/cpu/mpc85xx/cmd_errata.c
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2010 Freescale Semiconductor, Inc.
|
||||||
|
*
|
||||||
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
* project.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation; either version 2 of
|
||||||
|
* the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
* MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#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 * const 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)) {
|
||||||
|
switch (SVR_SOC_VER(svr)) {
|
||||||
|
case SVR_P1013:
|
||||||
|
case SVR_P1013_E:
|
||||||
|
case SVR_P1022:
|
||||||
|
case SVR_P1022_E:
|
||||||
|
puts("Work-around for Erratum SATA A001 enabled\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
U_BOOT_CMD(
|
||||||
|
errata, 1, 0, do_errata,
|
||||||
|
"Report errata workarounds",
|
||||||
|
""
|
||||||
|
);
|
|
@ -338,12 +338,12 @@
|
||||||
*/
|
*/
|
||||||
#include <config_cmd_default.h>
|
#include <config_cmd_default.h>
|
||||||
|
|
||||||
|
#define CONFIG_CMD_ELF
|
||||||
|
#define CONFIG_CMD_ERRATA
|
||||||
#define CONFIG_CMD_IRQ
|
#define CONFIG_CMD_IRQ
|
||||||
#define CONFIG_CMD_PING
|
|
||||||
#define CONFIG_CMD_I2C
|
#define CONFIG_CMD_I2C
|
||||||
#define CONFIG_CMD_MII
|
#define CONFIG_CMD_MII
|
||||||
#define CONFIG_CMD_ELF
|
#define CONFIG_CMD_PING
|
||||||
#define CONFIG_CMD_IRQ
|
|
||||||
#define CONFIG_CMD_SETEXPR
|
#define CONFIG_CMD_SETEXPR
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
|
|
Loading…
Reference in a new issue