diff options
author | Ben Gardiner <bengardiner@nanometrics.ca> | 2010-10-14 21:26:17 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-17 18:14:43 (GMT) |
commit | 10d6ac94e0aa8bbbde45094e988c87ca971e1f10 (patch) | |
tree | 0592320741ad5e7c92282eb4d4bb907b01c98e55 | |
parent | 1a832dc4f8cd4cf899117ecab4821bdb9a4005bc (diff) | |
download | u-boot-fsl-qoriq-10d6ac94e0aa8bbbde45094e988c87ca971e1f10.tar.xz |
davinci_nand, trivial : use symbolic ECC start command
The ECC calculations were started by writing 1 << 13 to the nand FCR register;
that value is also defined as DAVINCI_NANDFCR_4BIT_CALC_START in emif_defs.h.
This patch substitutes the macro DAVINCI_NANDFCR_4BIT_CALC_START for the
magic number '1 << 13'.
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index c5a86d6..d41579c 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -481,7 +481,8 @@ static int nand_davinci_4bit_correct_data(struct mtd_info *mtd, uint8_t *dat, * Set the addr_calc_st bit(bit no 13) in the NAND Flash Control * register to 1. */ - __raw_writel(1 << 13, &davinci_emif_regs->nandfcr); + __raw_writel(DAVINCI_NANDFCR_4BIT_CALC_START, + &davinci_emif_regs->nandfcr); /* * Wait for the corr_state field (bits 8 to 11) in the |