summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorEric Benard <eric@eukrea.com>2013-04-22 05:55:00 +0000
committerTom Rini <trini@ti.com>2013-05-10 08:25:56 -0400
commit34fa07063a7f5fc437bcaa71156182bb3bf2f516 (patch)
treeb4bf61cb0c60c79b5708b99c7b4cca6c0c45d73f /arch/arm/include/asm
parent81ac7e51ccf2984e9c0964a883d6b7e8fe875aad (diff)
downloadu-boot-imx-34fa07063a7f5fc437bcaa71156182bb3bf2f516.zip
u-boot-imx-34fa07063a7f5fc437bcaa71156182bb3bf2f516.tar.gz
u-boot-imx-34fa07063a7f5fc437bcaa71156182bb3bf2f516.tar.bz2
davinci: handle CONFIG_SYS_CLE_MASK and CONFIG_SYS_ALE_MASK
these variables are curently defined in several config files but the driver doesn't use them and defaults to hardcoded values in nand_defs.h It's interesting to be able to change this hardcoded valude when the hardware is not using the default adress signals to drive ALE and CLE and two configuration defines already exist for this purpose so use them. Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/arch-davinci/nand_defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-davinci/nand_defs.h b/arch/arm/include/asm/arch-davinci/nand_defs.h
index 10f3a39..4a30813 100644
--- a/arch/arm/include/asm/arch-davinci/nand_defs.h
+++ b/arch/arm/include/asm/arch-davinci/nand_defs.h
@@ -36,6 +36,15 @@
#define MASK_ALE 0x08
#endif
+#ifdef CONFIG_SYS_NAND_MASK_CLE
+#undef MASK_CLE
+#define MASK_CLE CONFIG_SYS_NAND_MASK_CLE
+#endif
+#ifdef CONFIG_SYS_NAND_MASK_ALE
+#undef MASK_ALE
+#define MASK_ALE CONFIG_SYS_NAND_MASK_ALE
+#endif
+
#define NAND_READ_START 0x00
#define NAND_READ_END 0x30
#define NAND_STATUS 0x70