mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-18 09:07:59 +09:00
![pekon gupta](/assets/img/avatar_default.png)
OMAP NAND driver can detect Page-size and OOB-size of NAND device from ONFI params or nand_id[] table. And based on that it defines ECC layout. This patch 1) removes following board configs used for defining NAND ECC layout - GPMC_NAND_ECC_LP_x16_LAYOUT (for large page x16 NAND) - GPMC_NAND_ECC_LP_x8_LAYOUT (for large page x8 NAND) - GPMC_NAND_ECC_SP_x16_LAYOUT (for small page x16 NAND) - GPMC_NAND_ECC_SP_x8_LAYOUT (for small page x8 NAND) 2) removes unused #defines in common omap_gpmc.h depending on above configs Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5 Signed-off-by: Pekon Gupta <pekon@ti.com>
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
/*
|
|
* (C) Copyright 2004-2008 Texas Instruments, <www.ti.com>
|
|
* Rohit Choraria <rohitkc@ti.com>
|
|
*
|
|
* (C) Copyright 2013 Andreas Bießmann <andreas.devel@googlemail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#ifndef __ASM_OMAP_GPMC_H
|
|
#define __ASM_OMAP_GPMC_H
|
|
|
|
#define GPMC_BUF_EMPTY 0
|
|
#define GPMC_BUF_FULL 1
|
|
|
|
enum omap_ecc {
|
|
/* 1-bit ECC calculation by Software, Error detection by Software */
|
|
OMAP_ECC_HAM1_CODE_SW = 1, /* avoid un-initialized int can be 0x0 */
|
|
/* 1-bit ECC calculation by GPMC, Error detection by Software */
|
|
/* ECC layout compatible to legacy ROMCODE. */
|
|
OMAP_ECC_HAM1_CODE_HW,
|
|
/* 4-bit ECC calculation by GPMC, Error detection by Software */
|
|
OMAP_ECC_BCH4_CODE_HW_DETECTION_SW,
|
|
/* 4-bit ECC calculation by GPMC, Error detection by ELM */
|
|
OMAP_ECC_BCH4_CODE_HW,
|
|
/* 8-bit ECC calculation by GPMC, Error detection by Software */
|
|
OMAP_ECC_BCH8_CODE_HW_DETECTION_SW,
|
|
/* 8-bit ECC calculation by GPMC, Error detection by ELM */
|
|
OMAP_ECC_BCH8_CODE_HW,
|
|
};
|
|
|
|
#endif /* __ASM_OMAP_GPMC_H */
|