2 * (C) Copyright 2004-2008 Texas Instruments, <www.ti.com>
3 * Rohit Choraria <rohitkc@ti.com>
5 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __ASM_ARCH_OMAP_GPMC_H
8 #define __ASM_ARCH_OMAP_GPMC_H
10 /* These GPMC_NAND_HW_BCHx_ECC_LAYOUT defines are based on AM33xx ELM */
11 #define GPMC_NAND_HW_BCH4_ECC_LAYOUT {\
13 .eccpos = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\
14 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\
15 28, 29, 30, 31, 32, 33},\
21 #define GPMC_NAND_HW_BCH8_ECC_LAYOUT {\
23 .eccpos = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\
24 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\
25 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,\
26 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\
27 52, 53, 54, 55, 56, 57},\
33 #define GPMC_NAND_HW_BCH16_ECC_LAYOUT {\
35 .eccpos = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\
36 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\
37 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,\
38 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\
39 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,\
40 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,\
41 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,\
42 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,\
43 100, 101, 102, 103, 104, 105},\
48 #endif /* __ASM_ARCH_OMAP_GPMC_H */