diff options
-rw-r--r-- | Documentation/devicetree/bindings/ata/calxeda-sata.txt | 17 | ||||
-rw-r--r-- | drivers/ata/ahci_platform.c | 7 |
2 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/ata/calxeda-sata.txt b/Documentation/devicetree/bindings/ata/calxeda-sata.txt new file mode 100644 index 00000000000..79caa5651f5 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/calxeda-sata.txt | |||
@@ -0,0 +1,17 @@ | |||
1 | * Calxeda SATA Controller | ||
2 | |||
3 | SATA nodes are defined to describe on-chip Serial ATA controllers. | ||
4 | Each SATA controller should have its own node. | ||
5 | |||
6 | Required properties: | ||
7 | - compatible : compatible list, contains "calxeda,hb-ahci" | ||
8 | - interrupts : <interrupt mapping for SATA IRQ> | ||
9 | - reg : <registers mapping> | ||
10 | |||
11 | Example: | ||
12 | sata@ffe08000 { | ||
13 | compatible = "calxeda,hb-ahci"; | ||
14 | reg = <0xffe08000 0x1000>; | ||
15 | interrupts = <115>; | ||
16 | }; | ||
17 | |||
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index c03277d3774..004f2ce3dc7 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c | |||
@@ -202,11 +202,18 @@ static int __devexit ahci_remove(struct platform_device *pdev) | |||
202 | return 0; | 202 | return 0; |
203 | } | 203 | } |
204 | 204 | ||
205 | static const struct of_device_id ahci_of_match[] = { | ||
206 | { .compatible = "calxeda,hb-ahci", }, | ||
207 | {}, | ||
208 | }; | ||
209 | MODULE_DEVICE_TABLE(of, ahci_of_match); | ||
210 | |||
205 | static struct platform_driver ahci_driver = { | 211 | static struct platform_driver ahci_driver = { |
206 | .remove = __devexit_p(ahci_remove), | 212 | .remove = __devexit_p(ahci_remove), |
207 | .driver = { | 213 | .driver = { |
208 | .name = "ahci", | 214 | .name = "ahci", |
209 | .owner = THIS_MODULE, | 215 | .owner = THIS_MODULE, |
216 | .of_match_table = ahci_of_match, | ||
210 | }, | 217 | }, |
211 | .id_table = ahci_devtype, | 218 | .id_table = ahci_devtype, |
212 | }; | 219 | }; |