aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mv78xx0/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mv78xx0/common.c')
-rw-r--r--arch/arm/mach-mv78xx0/common.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c
index f250196becd7..23d3980ef59d 100644
--- a/arch/arm/mach-mv78xx0/common.c
+++ b/arch/arm/mach-mv78xx0/common.c
@@ -275,35 +275,10 @@ void __init mv78xx0_i2c_init(void)
275/***************************************************************************** 275/*****************************************************************************
276 * SATA 276 * SATA
277 ****************************************************************************/ 277 ****************************************************************************/
278static struct resource mv78xx0_sata_resources[] = {
279 {
280 .name = "sata base",
281 .start = SATA_PHYS_BASE,
282 .end = SATA_PHYS_BASE + 0x5000 - 1,
283 .flags = IORESOURCE_MEM,
284 }, {
285 .name = "sata irq",
286 .start = IRQ_MV78XX0_SATA,
287 .end = IRQ_MV78XX0_SATA,
288 .flags = IORESOURCE_IRQ,
289 },
290};
291
292static struct platform_device mv78xx0_sata = {
293 .name = "sata_mv",
294 .id = 0,
295 .dev = {
296 .coherent_dma_mask = DMA_BIT_MASK(32),
297 },
298 .num_resources = ARRAY_SIZE(mv78xx0_sata_resources),
299 .resource = mv78xx0_sata_resources,
300};
301
302void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data) 278void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data)
303{ 279{
304 sata_data->dram = &mv78xx0_mbus_dram_info; 280 orion_sata_init(sata_data, &mv78xx0_mbus_dram_info,
305 mv78xx0_sata.dev.platform_data = sata_data; 281 SATA_PHYS_BASE, IRQ_MV78XX0_SATA);
306 platform_device_register(&mv78xx0_sata);
307} 282}
308 283
309 284