diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2010-04-16 13:29:11 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-05-06 18:02:06 -0400 |
commit | 7034217467abe91b5bc63fc2993bb8eec1cf3c9f (patch) | |
tree | 5e0aeb13a0b69f111fa53a78f3dc0b61e437087b /arch/arm/mach-davinci/board-dm646x-evm.c | |
parent | ef03592a1a8112309f1fca1c11fbaef8ab541ef2 (diff) |
DaVinci: move AEMIF #define's to the proper headers
Currently each DaVinci board file #define's its own version of the EMIFA base
addresses (all named DAVINCI_ASYNC_EMIF_*_BASE), which leads to duplication.
Move these #define's to the SoC specific headers, changing their prefixes from
'DAVINCI' to the 'DM355', 'DM644X', and 'DM646X' since all these base addresses
are SoC specific...
And while at it, rename DM646X_ASYNC_EMIF_DATA_CE0_BASE to
DM646X_ASYNC_EMIF_CS2_SPACE_BASE in order to match the DM646x datasheet.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-dm646x-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm646x-evm.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index 5ba3cb2daaa0..b22e22cefcdd 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c | |||
@@ -80,17 +80,14 @@ static struct davinci_nand_pdata davinci_nand_data = { | |||
80 | .options = 0, | 80 | .options = 0, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | #define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x20008000 | ||
84 | #define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x42000000 | ||
85 | |||
86 | static struct resource davinci_nand_resources[] = { | 83 | static struct resource davinci_nand_resources[] = { |
87 | { | 84 | { |
88 | .start = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE, | 85 | .start = DM646X_ASYNC_EMIF_CS2_SPACE_BASE, |
89 | .end = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE + SZ_32M - 1, | 86 | .end = DM646X_ASYNC_EMIF_CS2_SPACE_BASE + SZ_32M - 1, |
90 | .flags = IORESOURCE_MEM, | 87 | .flags = IORESOURCE_MEM, |
91 | }, { | 88 | }, { |
92 | .start = DAVINCI_ASYNC_EMIF_CONTROL_BASE, | 89 | .start = DM646X_ASYNC_EMIF_CONTROL_BASE, |
93 | .end = DAVINCI_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1, | 90 | .end = DM646X_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1, |
94 | .flags = IORESOURCE_MEM, | 91 | .flags = IORESOURCE_MEM, |
95 | }, | 92 | }, |
96 | }; | 93 | }; |