omap_gpmc.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. #define GPMC_BUF_EMPTY 0
  12. #define GPMC_BUF_FULL 1
  13. enum omap_ecc {
  14. /* 1-bit ECC calculation by Software, Error detection by Software */
  15. OMAP_ECC_HAM1_CODE_SW = 1, /* avoid un-initialized int can be 0x0 */
  16. /* 1-bit ECC calculation by GPMC, Error detection by Software */
  17. /* ECC layout compatible to legacy ROMCODE. */
  18. OMAP_ECC_HAM1_CODE_HW,
  19. /* 4-bit ECC calculation by GPMC, Error detection by Software */
  20. OMAP_ECC_BCH4_CODE_HW_DETECTION_SW,
  21. /* 4-bit ECC calculation by GPMC, Error detection by ELM */
  22. OMAP_ECC_BCH4_CODE_HW,
  23. /* 8-bit ECC calculation by GPMC, Error detection by Software */
  24. OMAP_ECC_BCH8_CODE_HW_DETECTION_SW,
  25. /* 8-bit ECC calculation by GPMC, Error detection by ELM */
  26. OMAP_ECC_BCH8_CODE_HW,
  27. };
  28. #endif /* __ASM_OMAP_GPMC_H */