aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mv78xx0/common.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-12-07 15:48:06 -0500
committerNicolas Pitre <nico@fluxnic.net>2011-12-13 18:46:55 -0500
commit45173d5ed4c9a397db31623bf6469efbd3a239cd (patch)
treed4efe8af8c7b23ed2a97d2686a88037ea6bc7758 /arch/arm/mach-mv78xx0/common.c
parentb6d1c33a31deb1784c1d34070db6e84fd6f9d870 (diff)
ARM: Orion: mbus_dram_info consolidation
Move the *_mbus_dram_info structure into the orion platform and call it orion_mbus_dram_info everywhere. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Michael Walle <michael@walle.cc> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-mv78xx0/common.c')
-rw-r--r--arch/arm/mach-mv78xx0/common.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c
index 23d3980ef59d..be0c232ea0d8 100644
--- a/arch/arm/mach-mv78xx0/common.c
+++ b/arch/arm/mach-mv78xx0/common.c
@@ -23,6 +23,7 @@
23#include <plat/orion_nand.h> 23#include <plat/orion_nand.h>
24#include <plat/time.h> 24#include <plat/time.h>
25#include <plat/common.h> 25#include <plat/common.h>
26#include <plat/addr-map.h>
26#include "common.h" 27#include "common.h"
27 28
28static int get_tclk(void); 29static int get_tclk(void);
@@ -169,7 +170,7 @@ void __init mv78xx0_map_io(void)
169 ****************************************************************************/ 170 ****************************************************************************/
170void __init mv78xx0_ehci0_init(void) 171void __init mv78xx0_ehci0_init(void)
171{ 172{
172 orion_ehci_init(&mv78xx0_mbus_dram_info, 173 orion_ehci_init(&orion_mbus_dram_info,
173 USB0_PHYS_BASE, IRQ_MV78XX0_USB_0); 174 USB0_PHYS_BASE, IRQ_MV78XX0_USB_0);
174} 175}
175 176
@@ -179,7 +180,7 @@ void __init mv78xx0_ehci0_init(void)
179 ****************************************************************************/ 180 ****************************************************************************/
180void __init mv78xx0_ehci1_init(void) 181void __init mv78xx0_ehci1_init(void)
181{ 182{
182 orion_ehci_1_init(&mv78xx0_mbus_dram_info, 183 orion_ehci_1_init(&orion_mbus_dram_info,
183 USB1_PHYS_BASE, IRQ_MV78XX0_USB_1); 184 USB1_PHYS_BASE, IRQ_MV78XX0_USB_1);
184} 185}
185 186
@@ -189,7 +190,7 @@ void __init mv78xx0_ehci1_init(void)
189 ****************************************************************************/ 190 ****************************************************************************/
190void __init mv78xx0_ehci2_init(void) 191void __init mv78xx0_ehci2_init(void)
191{ 192{
192 orion_ehci_2_init(&mv78xx0_mbus_dram_info, 193 orion_ehci_2_init(&orion_mbus_dram_info,
193 USB2_PHYS_BASE, IRQ_MV78XX0_USB_2); 194 USB2_PHYS_BASE, IRQ_MV78XX0_USB_2);
194} 195}
195 196
@@ -199,7 +200,7 @@ void __init mv78xx0_ehci2_init(void)
199 ****************************************************************************/ 200 ****************************************************************************/
200void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data) 201void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data)
201{ 202{
202 orion_ge00_init(eth_data, &mv78xx0_mbus_dram_info, 203 orion_ge00_init(eth_data, &orion_mbus_dram_info,
203 GE00_PHYS_BASE, IRQ_MV78XX0_GE00_SUM, 204 GE00_PHYS_BASE, IRQ_MV78XX0_GE00_SUM,
204 IRQ_MV78XX0_GE_ERR, get_tclk()); 205 IRQ_MV78XX0_GE_ERR, get_tclk());
205} 206}
@@ -210,7 +211,7 @@ void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data)
210 ****************************************************************************/ 211 ****************************************************************************/
211void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) 212void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data)
212{ 213{
213 orion_ge01_init(eth_data, &mv78xx0_mbus_dram_info, 214 orion_ge01_init(eth_data, &orion_mbus_dram_info,
214 GE01_PHYS_BASE, IRQ_MV78XX0_GE01_SUM, 215 GE01_PHYS_BASE, IRQ_MV78XX0_GE01_SUM,
215 NO_IRQ, get_tclk()); 216 NO_IRQ, get_tclk());
216} 217}
@@ -234,7 +235,7 @@ void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data)
234 eth_data->duplex = DUPLEX_FULL; 235 eth_data->duplex = DUPLEX_FULL;
235 } 236 }
236 237
237 orion_ge10_init(eth_data, &mv78xx0_mbus_dram_info, 238 orion_ge10_init(eth_data, &orion_mbus_dram_info,
238 GE10_PHYS_BASE, IRQ_MV78XX0_GE10_SUM, 239 GE10_PHYS_BASE, IRQ_MV78XX0_GE10_SUM,
239 NO_IRQ, get_tclk()); 240 NO_IRQ, get_tclk());
240} 241}
@@ -258,7 +259,7 @@ void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data)
258 eth_data->duplex = DUPLEX_FULL; 259 eth_data->duplex = DUPLEX_FULL;
259 } 260 }
260 261
261 orion_ge11_init(eth_data, &mv78xx0_mbus_dram_info, 262 orion_ge11_init(eth_data, &orion_mbus_dram_info,
262 GE11_PHYS_BASE, IRQ_MV78XX0_GE11_SUM, 263 GE11_PHYS_BASE, IRQ_MV78XX0_GE11_SUM,
263 NO_IRQ, get_tclk()); 264 NO_IRQ, get_tclk());
264} 265}
@@ -277,7 +278,7 @@ void __init mv78xx0_i2c_init(void)
277 ****************************************************************************/ 278 ****************************************************************************/
278void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data) 279void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data)
279{ 280{
280 orion_sata_init(sata_data, &mv78xx0_mbus_dram_info, 281 orion_sata_init(sata_data, &orion_mbus_dram_info,
281 SATA_PHYS_BASE, IRQ_MV78XX0_SATA); 282 SATA_PHYS_BASE, IRQ_MV78XX0_SATA);
282} 283}
283 284