aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-dove
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-05-15 07:32:50 -0400
committerNicolas Pitre <nico@fluxnic.net>2011-05-16 15:13:19 -0400
commit9e613f8a7904f2b7516eed08f413463c579325bd (patch)
tree30c0fb01bc1af921009079536b4d9ec3a0222e41 /arch/arm/mach-dove
parent4fcd3f374a928081d391cd9a570afe3b2c692fdc (diff)
ARM: orion: Consolidate SATA platform setup.
Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-dove')
-rw-r--r--arch/arm/mach-dove/common.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index 1412592fdca1..5ed51b84c1b2 100644
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -107,35 +107,11 @@ void __init dove_rtc_init(void)
107/***************************************************************************** 107/*****************************************************************************
108 * SATA 108 * SATA
109 ****************************************************************************/ 109 ****************************************************************************/
110static struct resource dove_sata_resources[] = {
111 {
112 .name = "sata base",
113 .start = DOVE_SATA_PHYS_BASE,
114 .end = DOVE_SATA_PHYS_BASE + 0x5000 - 1,
115 .flags = IORESOURCE_MEM,
116 }, {
117 .name = "sata irq",
118 .start = IRQ_DOVE_SATA,
119 .end = IRQ_DOVE_SATA,
120 .flags = IORESOURCE_IRQ,
121 },
122};
123
124static struct platform_device dove_sata = {
125 .name = "sata_mv",
126 .id = 0,
127 .dev = {
128 .coherent_dma_mask = DMA_BIT_MASK(32),
129 },
130 .num_resources = ARRAY_SIZE(dove_sata_resources),
131 .resource = dove_sata_resources,
132};
133
134void __init dove_sata_init(struct mv_sata_platform_data *sata_data) 110void __init dove_sata_init(struct mv_sata_platform_data *sata_data)
135{ 111{
136 sata_data->dram = &dove_mbus_dram_info; 112 orion_sata_init(sata_data, &dove_mbus_dram_info,
137 dove_sata.dev.platform_data = sata_data; 113 DOVE_SATA_PHYS_BASE, IRQ_DOVE_SATA);
138 platform_device_register(&dove_sata); 114
139} 115}
140 116
141/***************************************************************************** 117/*****************************************************************************