2 * (C) Copyright 2004-2008 Texas Instruments, <www.ti.com>
3 * Rohit Choraria <rohitkc@ti.com>
5 * (C) Copyright 2013 Andreas Bießmann <andreas.devel@googlemail.com>
7 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __ASM_OMAP_GPMC_H
10 #define __ASM_OMAP_GPMC_H
12 #define GPMC_BUF_EMPTY 0
13 #define GPMC_BUF_FULL 1
16 /* 1-bit ECC calculation by Software, Error detection by Software */
17 OMAP_ECC_HAM1_CODE_SW = 1, /* avoid un-initialized int can be 0x0 */
18 /* 1-bit ECC calculation by GPMC, Error detection by Software */
19 /* ECC layout compatible to legacy ROMCODE. */
20 OMAP_ECC_HAM1_CODE_HW,
21 /* 4-bit ECC calculation by GPMC, Error detection by Software */
22 OMAP_ECC_BCH4_CODE_HW_DETECTION_SW,
23 /* 4-bit ECC calculation by GPMC, Error detection by ELM */
24 OMAP_ECC_BCH4_CODE_HW,
25 /* 8-bit ECC calculation by GPMC, Error detection by Software */
26 OMAP_ECC_BCH8_CODE_HW_DETECTION_SW,
27 /* 8-bit ECC calculation by GPMC, Error detection by ELM */
28 OMAP_ECC_BCH8_CODE_HW,
31 #endif /* __ASM_OMAP_GPMC_H */