Skip to content

Commit db33f4d

Browse files
lunnnpitre
authored andcommitted
ARM: Orion: Remove address map info from all platform data structures
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>
1 parent 63a9332 commit db33f4d

11 files changed

Lines changed: 36 additions & 105 deletions

File tree

‎arch/arm/mach-dove/common.c‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <linux/platform_device.h>
1515
#include <linux/pci.h>
1616
#include <linux/clk.h>
17-
#include <linux/mbus.h>
1817
#include <linux/ata_platform.h>
1918
#include <linux/gpio.h>
2019
#include <asm/page.h>
@@ -72,25 +71,23 @@ void __init dove_map_io(void)
7271
****************************************************************************/
7372
void __init dove_ehci0_init(void)
7473
{
75-
orion_ehci_init(&orion_mbus_dram_info,
76-
DOVE_USB0_PHYS_BASE, IRQ_DOVE_USB0);
74+
orion_ehci_init(DOVE_USB0_PHYS_BASE, IRQ_DOVE_USB0);
7775
}
7876

7977
/*****************************************************************************
8078
* EHCI1
8179
****************************************************************************/
8280
void __init dove_ehci1_init(void)
8381
{
84-
orion_ehci_1_init(&orion_mbus_dram_info,
85-
DOVE_USB1_PHYS_BASE, IRQ_DOVE_USB1);
82+
orion_ehci_1_init(DOVE_USB1_PHYS_BASE, IRQ_DOVE_USB1);
8683
}
8784

8885
/*****************************************************************************
8986
* GE00
9087
****************************************************************************/
9188
void __init dove_ge00_init(struct mv643xx_eth_platform_data *eth_data)
9289
{
93-
orion_ge00_init(eth_data, &orion_mbus_dram_info,
90+
orion_ge00_init(eth_data,
9491
DOVE_GE00_PHYS_BASE, IRQ_DOVE_GE00_SUM,
9592
0, get_tclk());
9693
}
@@ -108,8 +105,7 @@ void __init dove_rtc_init(void)
108105
****************************************************************************/
109106
void __init dove_sata_init(struct mv_sata_platform_data *sata_data)
110107
{
111-
orion_sata_init(sata_data, &orion_mbus_dram_info,
112-
DOVE_SATA_PHYS_BASE, IRQ_DOVE_SATA);
108+
orion_sata_init(sata_data, DOVE_SATA_PHYS_BASE, IRQ_DOVE_SATA);
113109

114110
}
115111

@@ -199,8 +195,7 @@ struct sys_timer dove_timer = {
199195
****************************************************************************/
200196
void __init dove_xor0_init(void)
201197
{
202-
orion_xor0_init(&orion_mbus_dram_info,
203-
DOVE_XOR0_PHYS_BASE, DOVE_XOR0_HIGH_PHYS_BASE,
198+
orion_xor0_init(DOVE_XOR0_PHYS_BASE, DOVE_XOR0_HIGH_PHYS_BASE,
204199
IRQ_DOVE_XOR_00, IRQ_DOVE_XOR_01);
205200
}
206201

‎arch/arm/mach-kirkwood/common.c‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/init.h>
1313
#include <linux/platform_device.h>
1414
#include <linux/serial_8250.h>
15-
#include <linux/mbus.h>
1615
#include <linux/ata_platform.h>
1716
#include <linux/mtd/nand.h>
1817
#include <linux/dma-mapping.h>
@@ -74,8 +73,7 @@ unsigned int kirkwood_clk_ctrl = CGC_DUNIT | CGC_RESERVED;
7473
void __init kirkwood_ehci_init(void)
7574
{
7675
kirkwood_clk_ctrl |= CGC_USB0;
77-
orion_ehci_init(&orion_mbus_dram_info,
78-
USB_PHYS_BASE, IRQ_KIRKWOOD_USB);
76+
orion_ehci_init(USB_PHYS_BASE, IRQ_KIRKWOOD_USB);
7977
}
8078

8179

@@ -86,7 +84,7 @@ void __init kirkwood_ge00_init(struct mv643xx_eth_platform_data *eth_data)
8684
{
8785
kirkwood_clk_ctrl |= CGC_GE0;
8886

89-
orion_ge00_init(eth_data, &orion_mbus_dram_info,
87+
orion_ge00_init(eth_data,
9088
GE00_PHYS_BASE, IRQ_KIRKWOOD_GE00_SUM,
9189
IRQ_KIRKWOOD_GE00_ERR, kirkwood_tclk);
9290
}
@@ -100,7 +98,7 @@ void __init kirkwood_ge01_init(struct mv643xx_eth_platform_data *eth_data)
10098

10199
kirkwood_clk_ctrl |= CGC_GE1;
102100

103-
orion_ge01_init(eth_data, &orion_mbus_dram_info,
101+
orion_ge01_init(eth_data,
104102
GE01_PHYS_BASE, IRQ_KIRKWOOD_GE01_SUM,
105103
IRQ_KIRKWOOD_GE01_ERR, kirkwood_tclk);
106104
}
@@ -179,8 +177,7 @@ void __init kirkwood_sata_init(struct mv_sata_platform_data *sata_data)
179177
if (sata_data->n_ports > 1)
180178
kirkwood_clk_ctrl |= CGC_SATA1;
181179

182-
orion_sata_init(sata_data, &orion_mbus_dram_info,
183-
SATA_PHYS_BASE, IRQ_KIRKWOOD_SATA);
180+
orion_sata_init(sata_data, SATA_PHYS_BASE, IRQ_KIRKWOOD_SATA);
184181
}
185182

186183

@@ -222,7 +219,6 @@ void __init kirkwood_sdio_init(struct mvsdio_platform_data *mvsdio_data)
222219
mvsdio_data->clock = 100000000;
223220
else
224221
mvsdio_data->clock = 200000000;
225-
mvsdio_data->dram = &orion_mbus_dram_info;
226222
kirkwood_clk_ctrl |= CGC_SDIO;
227223
kirkwood_sdio.dev.platform_data = mvsdio_data;
228224
platform_device_register(&kirkwood_sdio);
@@ -286,8 +282,7 @@ static void __init kirkwood_xor0_init(void)
286282
{
287283
kirkwood_clk_ctrl |= CGC_XOR0;
288284

289-
orion_xor0_init(&orion_mbus_dram_info,
290-
XOR0_PHYS_BASE, XOR0_HIGH_PHYS_BASE,
285+
orion_xor0_init(XOR0_PHYS_BASE, XOR0_HIGH_PHYS_BASE,
291286
IRQ_KIRKWOOD_XOR_00, IRQ_KIRKWOOD_XOR_01);
292287
}
293288

@@ -365,7 +360,6 @@ static struct resource kirkwood_i2s_resources[] = {
365360
};
366361

367362
static struct kirkwood_asoc_platform_data kirkwood_i2s_data = {
368-
.dram = &orion_mbus_dram_info,
369363
.burst = 128,
370364
};
371365

‎arch/arm/mach-mv78xx0/common.c‎

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/init.h>
1313
#include <linux/platform_device.h>
1414
#include <linux/serial_8250.h>
15-
#include <linux/mbus.h>
1615
#include <linux/ata_platform.h>
1716
#include <linux/ethtool.h>
1817
#include <asm/mach/map.h>
@@ -170,8 +169,7 @@ void __init mv78xx0_map_io(void)
170169
****************************************************************************/
171170
void __init mv78xx0_ehci0_init(void)
172171
{
173-
orion_ehci_init(&orion_mbus_dram_info,
174-
USB0_PHYS_BASE, IRQ_MV78XX0_USB_0);
172+
orion_ehci_init(USB0_PHYS_BASE, IRQ_MV78XX0_USB_0);
175173
}
176174

177175

@@ -180,8 +178,7 @@ void __init mv78xx0_ehci0_init(void)
180178
****************************************************************************/
181179
void __init mv78xx0_ehci1_init(void)
182180
{
183-
orion_ehci_1_init(&orion_mbus_dram_info,
184-
USB1_PHYS_BASE, IRQ_MV78XX0_USB_1);
181+
orion_ehci_1_init(USB1_PHYS_BASE, IRQ_MV78XX0_USB_1);
185182
}
186183

187184

@@ -190,8 +187,7 @@ void __init mv78xx0_ehci1_init(void)
190187
****************************************************************************/
191188
void __init mv78xx0_ehci2_init(void)
192189
{
193-
orion_ehci_2_init(&orion_mbus_dram_info,
194-
USB2_PHYS_BASE, IRQ_MV78XX0_USB_2);
190+
orion_ehci_2_init(USB2_PHYS_BASE, IRQ_MV78XX0_USB_2);
195191
}
196192

197193

@@ -200,7 +196,7 @@ void __init mv78xx0_ehci2_init(void)
200196
****************************************************************************/
201197
void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data)
202198
{
203-
orion_ge00_init(eth_data, &orion_mbus_dram_info,
199+
orion_ge00_init(eth_data,
204200
GE00_PHYS_BASE, IRQ_MV78XX0_GE00_SUM,
205201
IRQ_MV78XX0_GE_ERR, get_tclk());
206202
}
@@ -211,7 +207,7 @@ void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data)
211207
****************************************************************************/
212208
void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data)
213209
{
214-
orion_ge01_init(eth_data, &orion_mbus_dram_info,
210+
orion_ge01_init(eth_data,
215211
GE01_PHYS_BASE, IRQ_MV78XX0_GE01_SUM,
216212
NO_IRQ, get_tclk());
217213
}
@@ -235,7 +231,7 @@ void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data)
235231
eth_data->duplex = DUPLEX_FULL;
236232
}
237233

238-
orion_ge10_init(eth_data, &orion_mbus_dram_info,
234+
orion_ge10_init(eth_data,
239235
GE10_PHYS_BASE, IRQ_MV78XX0_GE10_SUM,
240236
NO_IRQ, get_tclk());
241237
}
@@ -259,7 +255,7 @@ void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data)
259255
eth_data->duplex = DUPLEX_FULL;
260256
}
261257

262-
orion_ge11_init(eth_data, &orion_mbus_dram_info,
258+
orion_ge11_init(eth_data,
263259
GE11_PHYS_BASE, IRQ_MV78XX0_GE11_SUM,
264260
NO_IRQ, get_tclk());
265261
}
@@ -278,8 +274,7 @@ void __init mv78xx0_i2c_init(void)
278274
****************************************************************************/
279275
void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data)
280276
{
281-
orion_sata_init(sata_data, &orion_mbus_dram_info,
282-
SATA_PHYS_BASE, IRQ_MV78XX0_SATA);
277+
orion_sata_init(sata_data, SATA_PHYS_BASE, IRQ_MV78XX0_SATA);
283278
}
284279

285280

‎arch/arm/mach-orion5x/common.c‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <linux/platform_device.h>
1616
#include <linux/dma-mapping.h>
1717
#include <linux/serial_8250.h>
18-
#include <linux/mbus.h>
1918
#include <linux/mv643xx_i2c.h>
2019
#include <linux/ata_platform.h>
2120
#include <net/dsa.h>
@@ -72,8 +71,7 @@ void __init orion5x_map_io(void)
7271
****************************************************************************/
7372
void __init orion5x_ehci0_init(void)
7473
{
75-
orion_ehci_init(&orion_mbus_dram_info,
76-
ORION5X_USB0_PHYS_BASE, IRQ_ORION5X_USB0_CTRL);
74+
orion_ehci_init(ORION5X_USB0_PHYS_BASE, IRQ_ORION5X_USB0_CTRL);
7775
}
7876

7977

@@ -82,8 +80,7 @@ void __init orion5x_ehci0_init(void)
8280
****************************************************************************/
8381
void __init orion5x_ehci1_init(void)
8482
{
85-
orion_ehci_1_init(&orion_mbus_dram_info,
86-
ORION5X_USB1_PHYS_BASE, IRQ_ORION5X_USB1_CTRL);
83+
orion_ehci_1_init(ORION5X_USB1_PHYS_BASE, IRQ_ORION5X_USB1_CTRL);
8784
}
8885

8986

@@ -92,7 +89,7 @@ void __init orion5x_ehci1_init(void)
9289
****************************************************************************/
9390
void __init orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data)
9491
{
95-
orion_ge00_init(eth_data, &orion_mbus_dram_info,
92+
orion_ge00_init(eth_data,
9693
ORION5X_ETH_PHYS_BASE, IRQ_ORION5X_ETH_SUM,
9794
IRQ_ORION5X_ETH_ERR, orion5x_tclk);
9895
}
@@ -122,8 +119,7 @@ void __init orion5x_i2c_init(void)
122119
****************************************************************************/
123120
void __init orion5x_sata_init(struct mv_sata_platform_data *sata_data)
124121
{
125-
orion_sata_init(sata_data, &orion_mbus_dram_info,
126-
ORION5X_SATA_PHYS_BASE, IRQ_ORION5X_SATA);
122+
orion_sata_init(sata_data, ORION5X_SATA_PHYS_BASE, IRQ_ORION5X_SATA);
127123
}
128124

129125

@@ -159,8 +155,7 @@ void __init orion5x_uart1_init(void)
159155
****************************************************************************/
160156
void __init orion5x_xor_init(void)
161157
{
162-
orion_xor0_init(&orion_mbus_dram_info,
163-
ORION5X_XOR_PHYS_BASE,
158+
orion_xor0_init(ORION5X_XOR_PHYS_BASE,
164159
ORION5X_XOR_PHYS_BASE + 0x200,
165160
IRQ_ORION5X_XOR0, IRQ_ORION5X_XOR1);
166161
}

0 commit comments

Comments
 (0)