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-neuros-osd2.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-neuros-osd2.c')
-rw-r--r-- | arch/arm/mach-davinci/board-neuros-osd2.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index 1fadc68d9fbb..5afe37e3a4cb 100644 --- a/arch/arm/mach-davinci/board-neuros-osd2.c +++ b/arch/arm/mach-davinci/board-neuros-osd2.c | |||
@@ -43,9 +43,6 @@ | |||
43 | 43 | ||
44 | #define DAVINCI_CFC_ATA_BASE 0x01C66000 | 44 | #define DAVINCI_CFC_ATA_BASE 0x01C66000 |
45 | 45 | ||
46 | #define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e00000 | ||
47 | #define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000 | ||
48 | |||
49 | #define LXT971_PHY_ID 0x001378e2 | 46 | #define LXT971_PHY_ID 0x001378e2 |
50 | #define LXT971_PHY_MASK 0xfffffff0 | 47 | #define LXT971_PHY_MASK 0xfffffff0 |
51 | 48 | ||
@@ -98,12 +95,12 @@ static struct davinci_nand_pdata davinci_ntosd2_nandflash_data = { | |||
98 | 95 | ||
99 | static struct resource davinci_ntosd2_nandflash_resource[] = { | 96 | static struct resource davinci_ntosd2_nandflash_resource[] = { |
100 | { | 97 | { |
101 | .start = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE, | 98 | .start = DM644X_ASYNC_EMIF_DATA_CE0_BASE, |
102 | .end = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE + SZ_16M - 1, | 99 | .end = DM644X_ASYNC_EMIF_DATA_CE0_BASE + SZ_16M - 1, |
103 | .flags = IORESOURCE_MEM, | 100 | .flags = IORESOURCE_MEM, |
104 | }, { | 101 | }, { |
105 | .start = DAVINCI_ASYNC_EMIF_CONTROL_BASE, | 102 | .start = DM644X_ASYNC_EMIF_CONTROL_BASE, |
106 | .end = DAVINCI_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1, | 103 | .end = DM644X_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1, |
107 | .flags = IORESOURCE_MEM, | 104 | .flags = IORESOURCE_MEM, |
108 | }, | 105 | }, |
109 | }; | 106 | }; |