]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/omap_gpmc.h
3caaed85fbcb1ce09e7caff2defc38ebaeb4b7a1
[karo-tx-uboot.git] / arch / arm / include / asm / omap_gpmc.h
1 /*
2  * (C) Copyright 2004-2008 Texas Instruments, <www.ti.com>
3  * Rohit Choraria <rohitkc@ti.com>
4  *
5  * (C) Copyright 2013 Andreas Bießmann <andreas.devel@googlemail.com>
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9 #ifndef __ASM_OMAP_GPMC_H
10 #define __ASM_OMAP_GPMC_H
11
12 #define GPMC_BUF_EMPTY  0
13 #define GPMC_BUF_FULL   1
14
15 enum omap_ecc {
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,
29 };
30
31 #endif /* __ASM_OMAP_GPMC_H */