mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 05:42:58 +00:00
842eaa1361
Enable Erratum A006379 for T2080, T2081, T4160, B4420. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
29 lines
731 B
C
29 lines
731 B
C
/*
|
|
* Copyright 2013 Freescale Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _ASM_FSL_ERRATA_H
|
|
#define _ASM_FSL_ERRATA_H
|
|
|
|
#include <common.h>
|
|
#include <asm/processor.h>
|
|
|
|
#ifdef CONFIG_SYS_FSL_ERRATUM_A006379
|
|
static inline bool has_erratum_a006379(void)
|
|
{
|
|
u32 svr = get_svr();
|
|
if (((SVR_SOC_VER(svr) == SVR_T4240) && SVR_MAJ(svr) <= 1) ||
|
|
((SVR_SOC_VER(svr) == SVR_T4160) && SVR_MAJ(svr) <= 1) ||
|
|
((SVR_SOC_VER(svr) == SVR_B4860) && SVR_MAJ(svr) <= 2) ||
|
|
((SVR_SOC_VER(svr) == SVR_B4420) && SVR_MAJ(svr) <= 2) ||
|
|
((SVR_SOC_VER(svr) == SVR_T2080) && SVR_MAJ(svr) <= 1) ||
|
|
((SVR_SOC_VER(svr) == SVR_T2081) && SVR_MAJ(svr) <= 1))
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
#endif
|
|
|
|
#endif
|