diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-06-10 10:45:37 -0400 |
---|---|---|
committer | Andrew Lunn <andrew@lunn.ch> | 2012-07-27 10:48:45 -0400 |
commit | 97b414e119ccc7216e29c3bd62fe1a1797f21404 (patch) | |
tree | 3e2104f4e1ce2b8ae7451084d8ca6e0c2c463e27 /arch | |
parent | 1e7bad0f5b91150fef78d732095ca84ca4a16585 (diff) |
ATA: sata_mv: Add device tree support
Add support for instantiating this driver from device tree, and add
the necassary DT information to the kirkwood.dtsi file.
This is based on previous work by Michael Walle and Jason Cooper.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Josh Coombs <josh.coombs@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/kirkwood.dtsi | 7 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-dt.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi index 458d137d0951..cef9616f330a 100644 --- a/arch/arm/boot/dts/kirkwood.dtsi +++ b/arch/arm/boot/dts/kirkwood.dtsi | |||
@@ -76,6 +76,13 @@ | |||
76 | status = "okay"; | 76 | status = "okay"; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | sata@80000 { | ||
80 | compatible = "marvell,orion-sata"; | ||
81 | reg = <0x80000 0x5000>; | ||
82 | interrupts = <21>; | ||
83 | status = "disabled"; | ||
84 | }; | ||
85 | |||
79 | nand@3000000 { | 86 | nand@3000000 { |
80 | #address-cells = <1>; | 87 | #address-cells = <1>; |
81 | #size-cells = <1>; | 88 | #size-cells = <1>; |
diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c index aa229fc1cdc4..8c67c222a0c1 100644 --- a/arch/arm/mach-kirkwood/board-dt.c +++ b/arch/arm/mach-kirkwood/board-dt.c | |||
@@ -31,6 +31,7 @@ struct of_dev_auxdata kirkwood_auxdata_lookup[] __initdata = { | |||
31 | OF_DEV_AUXDATA("marvell,mv64xxx-i2c", 0xf1011000, "mv64xxx_i2c.0", | 31 | OF_DEV_AUXDATA("marvell,mv64xxx-i2c", 0xf1011000, "mv64xxx_i2c.0", |
32 | NULL), | 32 | NULL), |
33 | OF_DEV_AUXDATA("marvell,orion-wdt", 0xf1020300, "orion_wdt", NULL), | 33 | OF_DEV_AUXDATA("marvell,orion-wdt", 0xf1020300, "orion_wdt", NULL), |
34 | OF_DEV_AUXDATA("marvell,orion-sata", 0xf1080000, "sata_mv.0", NULL), | ||
34 | {}, | 35 | {}, |
35 | }; | 36 | }; |
36 | 37 | ||