diff options
author | Andrew Lunn <andrew@lunn.ch> | 2011-05-15 07:32:50 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2011-05-16 15:13:19 -0400 |
commit | 9e613f8a7904f2b7516eed08f413463c579325bd (patch) | |
tree | 30c0fb01bc1af921009079536b4d9ec3a0222e41 /arch/arm/mach-orion5x | |
parent | 4fcd3f374a928081d391cd9a570afe3b2c692fdc (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-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 2132eafa7ccc..8bbf497cc5f1 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -119,35 +119,10 @@ void __init orion5x_i2c_init(void) | |||
119 | /***************************************************************************** | 119 | /***************************************************************************** |
120 | * SATA | 120 | * SATA |
121 | ****************************************************************************/ | 121 | ****************************************************************************/ |
122 | static struct resource orion5x_sata_resources[] = { | ||
123 | { | ||
124 | .name = "sata base", | ||
125 | .start = ORION5X_SATA_PHYS_BASE, | ||
126 | .end = ORION5X_SATA_PHYS_BASE + 0x5000 - 1, | ||
127 | .flags = IORESOURCE_MEM, | ||
128 | }, { | ||
129 | .name = "sata irq", | ||
130 | .start = IRQ_ORION5X_SATA, | ||
131 | .end = IRQ_ORION5X_SATA, | ||
132 | .flags = IORESOURCE_IRQ, | ||
133 | }, | ||
134 | }; | ||
135 | |||
136 | static struct platform_device orion5x_sata = { | ||
137 | .name = "sata_mv", | ||
138 | .id = 0, | ||
139 | .dev = { | ||
140 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
141 | }, | ||
142 | .num_resources = ARRAY_SIZE(orion5x_sata_resources), | ||
143 | .resource = orion5x_sata_resources, | ||
144 | }; | ||
145 | |||
146 | void __init orion5x_sata_init(struct mv_sata_platform_data *sata_data) | 122 | void __init orion5x_sata_init(struct mv_sata_platform_data *sata_data) |
147 | { | 123 | { |
148 | sata_data->dram = &orion5x_mbus_dram_info; | 124 | orion_sata_init(sata_data, &orion5x_mbus_dram_info, |
149 | orion5x_sata.dev.platform_data = sata_data; | 125 | ORION5X_SATA_PHYS_BASE, IRQ_ORION5X_SATA); |
150 | platform_device_register(&orion5x_sata); | ||
151 | } | 126 | } |
152 | 127 | ||
153 | 128 | ||