blob: 3cac2d431079451a683e02e2caf8e431533d7871 [file] [log] [blame]
York Sun133fbfa2013-09-16 12:49:31 -07001/*
2 * Copyright 2013 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _ASM_FSL_ERRATA_H
8#define _ASM_FSL_ERRATA_H
9
10#include <common.h>
11#include <asm/processor.h>
12
13#ifdef CONFIG_SYS_FSL_ERRATUM_A006379
14static inline bool has_erratum_a006379(void)
15{
16 u32 svr = get_svr();
17 if (((SVR_SOC_VER(svr) == SVR_T4240) && SVR_MAJ(svr) <= 1) ||
18 ((SVR_SOC_VER(svr) == SVR_B4860) && SVR_MAJ(svr) <= 2))
19 return true;
20
21 return false;
22}
23#endif
24
25#endif