diff options
author | Saeed Bishara <saeed@marvell.com> | 2008-01-29 17:33:32 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2008-02-08 11:52:23 -0500 |
commit | f244baa3cafb4a49934d1fd944e29885a0fdbc3e (patch) | |
tree | f638d21639490add6959cd396f9a8b996add9cb7 /arch/arm/mach-orion/common.c | |
parent | a4ffc0a0b240a29cbe489f6db9dae112a49ef1c1 (diff) |
[ARM] Orion: Use the sata_mv driver for the integrated SATA controller
This patch adds instantiation for the sata_mv driver, enabling the
integrated SATA controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-orion/common.c')
-rw-r--r-- | arch/arm/mach-orion/common.c | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/arch/arm/mach-orion/common.c b/arch/arm/mach-orion/common.c index 5e20b6b32508..5f41fc537fa5 100644 --- a/arch/arm/mach-orion/common.c +++ b/arch/arm/mach-orion/common.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <asm/page.h> | 19 | #include <asm/page.h> |
20 | #include <asm/timex.h> | 20 | #include <asm/timex.h> |
21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
22 | #include <asm/arch/orion.h> | 22 | #include <asm/arch/hardware.h> |
23 | #include "common.h" | 23 | #include "common.h" |
24 | 24 | ||
25 | /***************************************************************************** | 25 | /***************************************************************************** |
@@ -250,6 +250,40 @@ static struct platform_device orion_i2c = { | |||
250 | }; | 250 | }; |
251 | 251 | ||
252 | /***************************************************************************** | 252 | /***************************************************************************** |
253 | * Sata port | ||
254 | ****************************************************************************/ | ||
255 | static struct resource orion_sata_resources[] = { | ||
256 | { | ||
257 | .name = "sata base", | ||
258 | .start = ORION_SATA_REG_BASE, | ||
259 | .end = ORION_SATA_REG_BASE + 0x5000 - 1, | ||
260 | .flags = IORESOURCE_MEM, | ||
261 | }, | ||
262 | { | ||
263 | .name = "sata irq", | ||
264 | .start = IRQ_ORION_SATA, | ||
265 | .end = IRQ_ORION_SATA, | ||
266 | .flags = IORESOURCE_IRQ, | ||
267 | }, | ||
268 | }; | ||
269 | |||
270 | static struct platform_device orion_sata = { | ||
271 | .name = "sata_mv", | ||
272 | .id = 0, | ||
273 | .dev = { | ||
274 | .coherent_dma_mask = 0xffffffff, | ||
275 | }, | ||
276 | .num_resources = ARRAY_SIZE(orion_sata_resources), | ||
277 | .resource = orion_sata_resources, | ||
278 | }; | ||
279 | |||
280 | void __init orion_sata_init(struct mv_sata_platform_data *sata_data) | ||
281 | { | ||
282 | orion_sata.dev.platform_data = sata_data; | ||
283 | platform_device_register(&orion_sata); | ||
284 | } | ||
285 | |||
286 | /***************************************************************************** | ||
253 | * General | 287 | * General |
254 | ****************************************************************************/ | 288 | ****************************************************************************/ |
255 | 289 | ||