aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-05-15 07:32:46 -0400
committerNicolas Pitre <nico@fluxnic.net>2011-05-16 15:09:07 -0400
commit980f9f601ad456dc5a699bf526b6bd894957bad3 (patch)
treef5e1bd57495bf3dabc17eadd4eda8a36d14637b9 /arch/arm/mach-orion5x
parentaac7ffa3ed121846b61347028828617c5dd1ce46 (diff)
ARM: orion: Consolidate SPI initialization.
This change removes the interrupt resource. The driver does not use it. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r--arch/arm/mach-orion5x/common.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c
index 9af0b88573ae..d2dee431635a 100644
--- a/arch/arm/mach-orion5x/common.c
+++ b/arch/arm/mach-orion5x/common.c
@@ -17,7 +17,6 @@
17#include <linux/mbus.h> 17#include <linux/mbus.h>
18#include <linux/mv643xx_i2c.h> 18#include <linux/mv643xx_i2c.h>
19#include <linux/ata_platform.h> 19#include <linux/ata_platform.h>
20#include <linux/spi/orion_spi.h>
21#include <net/dsa.h> 20#include <net/dsa.h>
22#include <asm/page.h> 21#include <asm/page.h>
23#include <asm/setup.h> 22#include <asm/setup.h>
@@ -214,33 +213,9 @@ void __init orion5x_sata_init(struct mv_sata_platform_data *sata_data)
214/***************************************************************************** 213/*****************************************************************************
215 * SPI 214 * SPI
216 ****************************************************************************/ 215 ****************************************************************************/
217static struct orion_spi_info orion5x_spi_plat_data = {
218 .tclk = 0,
219 .enable_clock_fix = 1,
220};
221
222static struct resource orion5x_spi_resources[] = {
223 {
224 .name = "spi base",
225 .start = SPI_PHYS_BASE,
226 .end = SPI_PHYS_BASE + 0x1f,
227 .flags = IORESOURCE_MEM,
228 },
229};
230
231static struct platform_device orion5x_spi = {
232 .name = "orion_spi",
233 .id = 0,
234 .dev = {
235 .platform_data = &orion5x_spi_plat_data,
236 },
237 .num_resources = ARRAY_SIZE(orion5x_spi_resources),
238 .resource = orion5x_spi_resources,
239};
240
241void __init orion5x_spi_init() 216void __init orion5x_spi_init()
242{ 217{
243 platform_device_register(&orion5x_spi); 218 orion_spi_init(SPI_PHYS_BASE, orion5x_tclk);
244} 219}
245 220
246 221
@@ -513,8 +488,6 @@ void __init orion5x_init(void)
513 orion5x_id(&dev, &rev, &dev_name); 488 orion5x_id(&dev, &rev, &dev_name);
514 printk(KERN_INFO "Orion ID: %s. TCLK=%d.\n", dev_name, orion5x_tclk); 489 printk(KERN_INFO "Orion ID: %s. TCLK=%d.\n", dev_name, orion5x_tclk);
515 490
516 orion5x_spi_plat_data.tclk = orion5x_tclk;
517
518 /* 491 /*
519 * Setup Orion address map 492 * Setup Orion address map
520 */ 493 */