diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-10-25 09:44:25 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 02:58:11 -0500 |
commit | a99631489bbd1b4647b82d0822b6a3942e2dd731 (patch) | |
tree | 9af7ee56eea709ae48587ca5409e768fbf68917a /arch/arm/plat-mxc/include/mach/mx31.h | |
parent | cf3a6aba2f8402d4e45f7f263a0e69f779cd1bdc (diff) |
ARM: imx: change static io mapping to use a function
Now only the virtual addresses [0xf4000000, 0xf5ffffff] are used for
static per-SoC mappings. The few mappings of whole chip selects are
moved accordingly.
The now wrong defines for virtual base addresses are removed.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/mx31.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx31.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mx31.h b/arch/arm/plat-mxc/include/mach/mx31.h index eb4a28dc2686..9ed9975bc9be 100644 --- a/arch/arm/plat-mxc/include/mach/mx31.h +++ b/arch/arm/plat-mxc/include/mach/mx31.h | |||
@@ -15,7 +15,6 @@ | |||
15 | #define MX31_L2CC_SIZE SZ_1M | 15 | #define MX31_L2CC_SIZE SZ_1M |
16 | 16 | ||
17 | #define MX31_AIPS1_BASE_ADDR 0x43f00000 | 17 | #define MX31_AIPS1_BASE_ADDR 0x43f00000 |
18 | #define MX31_AIPS1_BASE_ADDR_VIRT 0xfc000000 | ||
19 | #define MX31_AIPS1_SIZE SZ_1M | 18 | #define MX31_AIPS1_SIZE SZ_1M |
20 | #define MX31_MAX_BASE_ADDR (MX31_AIPS1_BASE_ADDR + 0x04000) | 19 | #define MX31_MAX_BASE_ADDR (MX31_AIPS1_BASE_ADDR + 0x04000) |
21 | #define MX31_EVTMON_BASE_ADDR (MX31_AIPS1_BASE_ADDR + 0x08000) | 20 | #define MX31_EVTMON_BASE_ADDR (MX31_AIPS1_BASE_ADDR + 0x08000) |
@@ -41,7 +40,6 @@ | |||
41 | #define MX31_ECT_IP2_BASE_ADDR (MX31_AIPS1_BASE_ADDR + 0xbc000) | 40 | #define MX31_ECT_IP2_BASE_ADDR (MX31_AIPS1_BASE_ADDR + 0xbc000) |
42 | 41 | ||
43 | #define MX31_SPBA0_BASE_ADDR 0x50000000 | 42 | #define MX31_SPBA0_BASE_ADDR 0x50000000 |
44 | #define MX31_SPBA0_BASE_ADDR_VIRT 0xfc100000 | ||
45 | #define MX31_SPBA0_SIZE SZ_1M | 43 | #define MX31_SPBA0_SIZE SZ_1M |
46 | #define MX31_MMC_SDHC1_BASE_ADDR (MX31_SPBA0_BASE_ADDR + 0x04000) | 44 | #define MX31_MMC_SDHC1_BASE_ADDR (MX31_SPBA0_BASE_ADDR + 0x04000) |
47 | #define MX31_MMC_SDHC2_BASE_ADDR (MX31_SPBA0_BASE_ADDR + 0x08000) | 45 | #define MX31_MMC_SDHC2_BASE_ADDR (MX31_SPBA0_BASE_ADDR + 0x08000) |
@@ -55,7 +53,6 @@ | |||
55 | #define MX31_SPBA_CTRL_BASE_ADDR (MX31_SPBA0_BASE_ADDR + 0x3c000) | 53 | #define MX31_SPBA_CTRL_BASE_ADDR (MX31_SPBA0_BASE_ADDR + 0x3c000) |
56 | 54 | ||
57 | #define MX31_AIPS2_BASE_ADDR 0x53f00000 | 55 | #define MX31_AIPS2_BASE_ADDR 0x53f00000 |
58 | #define MX31_AIPS2_BASE_ADDR_VIRT 0xfc200000 | ||
59 | #define MX31_AIPS2_SIZE SZ_1M | 56 | #define MX31_AIPS2_SIZE SZ_1M |
60 | #define MX31_CCM_BASE_ADDR (MX31_AIPS2_BASE_ADDR + 0x80000) | 57 | #define MX31_CCM_BASE_ADDR (MX31_AIPS2_BASE_ADDR + 0x80000) |
61 | #define MX31_CSPI3_BASE_ADDR (MX31_AIPS2_BASE_ADDR + 0x84000) | 58 | #define MX31_CSPI3_BASE_ADDR (MX31_AIPS2_BASE_ADDR + 0x84000) |
@@ -84,7 +81,6 @@ | |||
84 | #define MX31_ROMP_SIZE SZ_1M | 81 | #define MX31_ROMP_SIZE SZ_1M |
85 | 82 | ||
86 | #define MX31_AVIC_BASE_ADDR 0x68000000 | 83 | #define MX31_AVIC_BASE_ADDR 0x68000000 |
87 | #define MX31_AVIC_BASE_ADDR_VIRT 0xfc400000 | ||
88 | #define MX31_AVIC_SIZE SZ_1M | 84 | #define MX31_AVIC_SIZE SZ_1M |
89 | 85 | ||
90 | #define MX31_IPU_MEM_BASE_ADDR 0x70000000 | 86 | #define MX31_IPU_MEM_BASE_ADDR 0x70000000 |
@@ -97,15 +93,14 @@ | |||
97 | #define MX31_CS3_BASE_ADDR 0xb2000000 | 93 | #define MX31_CS3_BASE_ADDR 0xb2000000 |
98 | 94 | ||
99 | #define MX31_CS4_BASE_ADDR 0xb4000000 | 95 | #define MX31_CS4_BASE_ADDR 0xb4000000 |
100 | #define MX31_CS4_BASE_ADDR_VIRT 0xf4000000 | 96 | #define MX31_CS4_BASE_ADDR_VIRT 0xf6000000 |
101 | #define MX31_CS4_SIZE SZ_32M | 97 | #define MX31_CS4_SIZE SZ_32M |
102 | 98 | ||
103 | #define MX31_CS5_BASE_ADDR 0xb6000000 | 99 | #define MX31_CS5_BASE_ADDR 0xb6000000 |
104 | #define MX31_CS5_BASE_ADDR_VIRT 0xf6000000 | 100 | #define MX31_CS5_BASE_ADDR_VIRT 0xf8000000 |
105 | #define MX31_CS5_SIZE SZ_32M | 101 | #define MX31_CS5_SIZE SZ_32M |
106 | 102 | ||
107 | #define MX31_X_MEMC_BASE_ADDR 0xb8000000 | 103 | #define MX31_X_MEMC_BASE_ADDR 0xb8000000 |
108 | #define MX31_X_MEMC_BASE_ADDR_VIRT 0xfc320000 | ||
109 | #define MX31_X_MEMC_SIZE SZ_64K | 104 | #define MX31_X_MEMC_SIZE SZ_64K |
110 | #define MX31_NFC_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x0000) | 105 | #define MX31_NFC_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x0000) |
111 | #define MX31_ESDCTL_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x1000) | 106 | #define MX31_ESDCTL_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x1000) |
@@ -121,12 +116,7 @@ | |||
121 | 116 | ||
122 | #define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000 | 117 | #define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000 |
123 | 118 | ||
124 | #define MX31_IO_P2V(x) ( \ | 119 | #define MX31_IO_P2V(x) IMX_IO_P2V(x) |
125 | IMX_IO_P2V_MODULE(x, MX31_AIPS1) ?: \ | ||
126 | IMX_IO_P2V_MODULE(x, MX31_AIPS2) ?: \ | ||
127 | IMX_IO_P2V_MODULE(x, MX31_AVIC) ?: \ | ||
128 | IMX_IO_P2V_MODULE(x, MX31_X_MEMC) ?: \ | ||
129 | IMX_IO_P2V_MODULE(x, MX31_SPBA0)) | ||
130 | #define MX31_IO_ADDRESS(x) IOMEM(MX31_IO_P2V(x)) | 120 | #define MX31_IO_ADDRESS(x) IOMEM(MX31_IO_P2V(x)) |
131 | 121 | ||
132 | #ifndef __ASSEMBLER__ | 122 | #ifndef __ASSEMBLER__ |