Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273547
b: refs/heads/master
c: 02aac31
h: refs/heads/master
i:
  273545: 558dae2
  273543: cbc1abf
v: v3
  • Loading branch information
Rob Herring committed Nov 3, 2011
1 parent 9ab18b1 commit fab255b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 303f59d1a71ebf1ede04b2adb07e3f545e53b7ba
refs/heads/master: 02aac316abf436a7529d46a71f7083f9f9ef4b49
17 changes: 17 additions & 0 deletions trunk/Documentation/devicetree/bindings/ata/calxeda-sata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
* Calxeda SATA Controller

SATA nodes are defined to describe on-chip Serial ATA controllers.
Each SATA controller should have its own node.

Required properties:
- compatible : compatible list, contains "calxeda,hb-ahci"
- interrupts : <interrupt mapping for SATA IRQ>
- reg : <registers mapping>

Example:
sata@ffe08000 {
compatible = "calxeda,hb-ahci";
reg = <0xffe08000 0x1000>;
interrupts = <115>;
};

7 changes: 7 additions & 0 deletions trunk/drivers/ata/ahci_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,18 @@ static int __devexit ahci_remove(struct platform_device *pdev)
return 0;
}

static const struct of_device_id ahci_of_match[] = {
{ .compatible = "calxeda,hb-ahci", },
{},
};
MODULE_DEVICE_TABLE(of, ahci_of_match);

static struct platform_driver ahci_driver = {
.remove = __devexit_p(ahci_remove),
.driver = {
.name = "ahci",
.owner = THIS_MODULE,
.of_match_table = ahci_of_match,
},
.id_table = ahci_devtype,
};
Expand Down

0 comments on commit fab255b

Please sign in to comment.