diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/board-dm644x-evm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index 34c8b418cd72..65bb94064feb 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <mach/nand.h> | 37 | #include <mach/nand.h> |
38 | #include <mach/mmc.h> | 38 | #include <mach/mmc.h> |
39 | #include <mach/usb.h> | 39 | #include <mach/usb.h> |
40 | #include <mach/aemif.h> | ||
40 | 41 | ||
41 | #define DM644X_EVM_PHY_MASK (0x2) | 42 | #define DM644X_EVM_PHY_MASK (0x2) |
42 | #define DM644X_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | 43 | #define DM644X_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ |
@@ -137,11 +138,22 @@ static struct mtd_partition davinci_evm_nandflash_partition[] = { | |||
137 | */ | 138 | */ |
138 | }; | 139 | }; |
139 | 140 | ||
141 | static struct davinci_aemif_timing davinci_evm_nandflash_timing = { | ||
142 | .wsetup = 20, | ||
143 | .wstrobe = 40, | ||
144 | .whold = 20, | ||
145 | .rsetup = 10, | ||
146 | .rstrobe = 40, | ||
147 | .rhold = 10, | ||
148 | .ta = 40, | ||
149 | }; | ||
150 | |||
140 | static struct davinci_nand_pdata davinci_evm_nandflash_data = { | 151 | static struct davinci_nand_pdata davinci_evm_nandflash_data = { |
141 | .parts = davinci_evm_nandflash_partition, | 152 | .parts = davinci_evm_nandflash_partition, |
142 | .nr_parts = ARRAY_SIZE(davinci_evm_nandflash_partition), | 153 | .nr_parts = ARRAY_SIZE(davinci_evm_nandflash_partition), |
143 | .ecc_mode = NAND_ECC_HW, | 154 | .ecc_mode = NAND_ECC_HW, |
144 | .options = NAND_USE_FLASH_BBT, | 155 | .options = NAND_USE_FLASH_BBT, |
156 | .timing = &davinci_evm_nandflash_timing, | ||
145 | }; | 157 | }; |
146 | 158 | ||
147 | static struct resource davinci_evm_nandflash_resource[] = { | 159 | static struct resource davinci_evm_nandflash_resource[] = { |