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/include | |
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/include')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm355.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm365.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm644x.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm646x.h | 3 |
4 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/dm355.h b/arch/arm/mach-davinci/include/mach/dm355.h index 85536d8e8336..36dff4a0ce3f 100644 --- a/arch/arm/mach-davinci/include/mach/dm355.h +++ b/arch/arm/mach-davinci/include/mach/dm355.h | |||
@@ -15,6 +15,9 @@ | |||
15 | #include <mach/asp.h> | 15 | #include <mach/asp.h> |
16 | #include <media/davinci/vpfe_capture.h> | 16 | #include <media/davinci/vpfe_capture.h> |
17 | 17 | ||
18 | #define DM355_ASYNC_EMIF_CONTROL_BASE 0x01E10000 | ||
19 | #define DM355_ASYNC_EMIF_DATA_CE0_BASE 0x02000000 | ||
20 | |||
18 | #define ASP1_TX_EVT_EN 1 | 21 | #define ASP1_TX_EVT_EN 1 |
19 | #define ASP1_RX_EVT_EN 2 | 22 | #define ASP1_RX_EVT_EN 2 |
20 | 23 | ||
diff --git a/arch/arm/mach-davinci/include/mach/dm365.h b/arch/arm/mach-davinci/include/mach/dm365.h index 3a37b5a6983c..ea5df3b49ec4 100644 --- a/arch/arm/mach-davinci/include/mach/dm365.h +++ b/arch/arm/mach-davinci/include/mach/dm365.h | |||
@@ -36,6 +36,10 @@ | |||
36 | #define DAVINCI_DMA_VC_TX 2 | 36 | #define DAVINCI_DMA_VC_TX 2 |
37 | #define DAVINCI_DMA_VC_RX 3 | 37 | #define DAVINCI_DMA_VC_RX 3 |
38 | 38 | ||
39 | #define DM365_ASYNC_EMIF_CONTROL_BASE 0x01D10000 | ||
40 | #define DM365_ASYNC_EMIF_DATA_CE0_BASE 0x02000000 | ||
41 | #define DM365_ASYNC_EMIF_DATA_CE1_BASE 0x04000000 | ||
42 | |||
39 | void __init dm365_init(void); | 43 | void __init dm365_init(void); |
40 | void __init dm365_init_asp(struct snd_platform_data *pdata); | 44 | void __init dm365_init_asp(struct snd_platform_data *pdata); |
41 | void __init dm365_init_vc(struct snd_platform_data *pdata); | 45 | void __init dm365_init_vc(struct snd_platform_data *pdata); |
diff --git a/arch/arm/mach-davinci/include/mach/dm644x.h b/arch/arm/mach-davinci/include/mach/dm644x.h index 1a8b09ccc3c8..6fca568a0fd2 100644 --- a/arch/arm/mach-davinci/include/mach/dm644x.h +++ b/arch/arm/mach-davinci/include/mach/dm644x.h | |||
@@ -34,6 +34,12 @@ | |||
34 | #define DM644X_EMAC_MDIO_OFFSET (0x4000) | 34 | #define DM644X_EMAC_MDIO_OFFSET (0x4000) |
35 | #define DM644X_EMAC_CNTRL_RAM_SIZE (0x2000) | 35 | #define DM644X_EMAC_CNTRL_RAM_SIZE (0x2000) |
36 | 36 | ||
37 | #define DM644X_ASYNC_EMIF_CONTROL_BASE 0x01E00000 | ||
38 | #define DM644X_ASYNC_EMIF_DATA_CE0_BASE 0x02000000 | ||
39 | #define DM644X_ASYNC_EMIF_DATA_CE1_BASE 0x04000000 | ||
40 | #define DM644X_ASYNC_EMIF_DATA_CE2_BASE 0x06000000 | ||
41 | #define DM644X_ASYNC_EMIF_DATA_CE3_BASE 0x08000000 | ||
42 | |||
37 | void __init dm644x_init(void); | 43 | void __init dm644x_init(void); |
38 | void __init dm644x_init_asp(struct snd_platform_data *pdata); | 44 | void __init dm644x_init_asp(struct snd_platform_data *pdata); |
39 | void dm644x_set_vpfe_config(struct vpfe_config *cfg); | 45 | void dm644x_set_vpfe_config(struct vpfe_config *cfg); |
diff --git a/arch/arm/mach-davinci/include/mach/dm646x.h b/arch/arm/mach-davinci/include/mach/dm646x.h index 846da98b619a..4d62db7b6f94 100644 --- a/arch/arm/mach-davinci/include/mach/dm646x.h +++ b/arch/arm/mach-davinci/include/mach/dm646x.h | |||
@@ -27,6 +27,9 @@ | |||
27 | 27 | ||
28 | #define DM646X_ATA_REG_BASE (0x01C66000) | 28 | #define DM646X_ATA_REG_BASE (0x01C66000) |
29 | 29 | ||
30 | #define DM646X_ASYNC_EMIF_CONTROL_BASE 0x20008000 | ||
31 | #define DM646X_ASYNC_EMIF_CS2_SPACE_BASE 0x42000000 | ||
32 | |||
30 | void __init dm646x_init(void); | 33 | void __init dm646x_init(void); |
31 | void __init dm646x_init_ide(void); | 34 | void __init dm646x_init_ide(void); |
32 | void __init dm646x_init_mcasp0(struct snd_platform_data *pdata); | 35 | void __init dm646x_init_mcasp0(struct snd_platform_data *pdata); |