diff options
author | John Holland <john.holland@cellent-fs.de> | 2010-02-19 17:11:01 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2010-02-23 16:44:01 -0500 |
commit | d7b222d708e6eff0cf47928f439c8bcf49f10bb6 (patch) | |
tree | dc7ea1ea89c4ce2953e1094f4f21925bb16d3f67 /arch/arm/mach-kirkwood/sheevaplug-setup.c | |
parent | d8ecb3490050b33bf46ce77c7f239e0fc51a6835 (diff) |
[ARM] eSATA SheevaPlug: configure SoC SATA interface
Enable the kirkwood SATA SoC interface on the eSATA SheevaPlug.
Signed-off-by: John Holland <john.holland@cellent-fs.de>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
--
Diffstat (limited to 'arch/arm/mach-kirkwood/sheevaplug-setup.c')
-rw-r--r-- | arch/arm/mach-kirkwood/sheevaplug-setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c index 629ce84ae433..bb9bc70381ef 100644 --- a/arch/arm/mach-kirkwood/sheevaplug-setup.c +++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/ata_platform.h> | ||
14 | #include <linux/mtd/partitions.h> | 15 | #include <linux/mtd/partitions.h> |
15 | #include <linux/mv643xx_eth.h> | 16 | #include <linux/mv643xx_eth.h> |
16 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
@@ -42,6 +43,10 @@ static struct mv643xx_eth_platform_data sheevaplug_ge00_data = { | |||
42 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), | 43 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
43 | }; | 44 | }; |
44 | 45 | ||
46 | static struct mv_sata_platform_data sheeva_esata_sata_data = { | ||
47 | .n_ports = 2, | ||
48 | }; | ||
49 | |||
45 | static struct mvsdio_platform_data sheevaplug_mvsdio_data = { | 50 | static struct mvsdio_platform_data sheevaplug_mvsdio_data = { |
46 | /* unfortunately the CD signal has not been connected */ | 51 | /* unfortunately the CD signal has not been connected */ |
47 | }; | 52 | }; |
@@ -91,6 +96,11 @@ static void __init sheevaplug_init(void) | |||
91 | kirkwood_ehci_init(); | 96 | kirkwood_ehci_init(); |
92 | 97 | ||
93 | kirkwood_ge00_init(&sheevaplug_ge00_data); | 98 | kirkwood_ge00_init(&sheevaplug_ge00_data); |
99 | |||
100 | /* honor lower power consumption for plugs with out eSATA */ | ||
101 | if (machine_is_sheeva_esata()) | ||
102 | kirkwood_sata_init(&sheeva_esata_sata_data); | ||
103 | |||
94 | kirkwood_sdio_init(&sheevaplug_mvsdio_data); | 104 | kirkwood_sdio_init(&sheevaplug_mvsdio_data); |
95 | 105 | ||
96 | platform_device_register(&sheevaplug_leds); | 106 | platform_device_register(&sheevaplug_leds); |