diff options
Diffstat (limited to 'include/linux/platform_data/mtd-nand-omap2.h')
| -rw-r--r-- | include/linux/platform_data/mtd-nand-omap2.h | 20 | 
1 files changed, 11 insertions, 9 deletions
diff --git a/include/linux/platform_data/mtd-nand-omap2.h b/include/linux/platform_data/mtd-nand-omap2.h index 6bf9ef43ddb..3e9dd6676b9 100644 --- a/include/linux/platform_data/mtd-nand-omap2.h +++ b/include/linux/platform_data/mtd-nand-omap2.h @@ -1,6 +1,4 @@  /* - * arch/arm/plat-omap/include/mach/nand.h - *   * Copyright (C) 2006 Micron Technology Inc.   *   * This program is free software; you can redistribute it and/or modify @@ -23,13 +21,16 @@ enum nand_io {  };  enum omap_ecc { -		/* 1-bit ecc: stored at end of spare area */ -	OMAP_ECC_HAMMING_CODE_DEFAULT = 0, /* Default, s/w method */ -	OMAP_ECC_HAMMING_CODE_HW, /* gpmc to detect the error */ -		/* 1-bit ecc: stored at beginning of spare area as romcode */ -	OMAP_ECC_HAMMING_CODE_HW_ROMCODE, /* gpmc method & romcode layout */ -	OMAP_ECC_BCH4_CODE_HW, /* 4-bit BCH ecc code */ -	OMAP_ECC_BCH8_CODE_HW, /* 8-bit BCH ecc code */ +	/* 1-bit  ECC calculation by GPMC, Error detection by Software */ +	OMAP_ECC_HAM1_CODE_HW = 0, +	/* 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,  };  struct gpmc_nand_regs { @@ -63,5 +64,6 @@ struct omap_nand_platform_data {  	/* for passing the partitions */  	struct device_node	*of_node; +	struct device_node	*elm_of_node;  };  #endif  |