mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] ahci-generic: add oftree support
@ 2013-02-12 13:10 Jean-Christophe PLAGNIOL-VILLARD
  2013-02-12 13:41 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-02-12 13:10 UTC (permalink / raw)
  To: barebox; +Cc: Rob Herring

calxeda use the generic driver but have it's own compatible cf Linux kernel
Documentation

Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 drivers/ata/ahci-generic.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/ata/ahci-generic.c b/drivers/ata/ahci-generic.c
index 4077627..62f2a19 100644
--- a/drivers/ata/ahci-generic.c
+++ b/drivers/ata/ahci-generic.c
@@ -35,9 +35,20 @@ err_free:
 	return ret;
 }
 
+static __maybe_unused struct of_device_id ahci_dt_ids[] = {
+	{
+		.compatible = "ahci",
+	}, {
+		.compatible = "calxeda,hb-ahci",
+	}, {
+		/* sentinel */
+	}
+};
+
 static struct driver_d ahci_driver = {
 	.name	= "ahci",
 	.probe	= ahci_probe,
+	.of_compatible = DRV_OF_COMPAT(ahci_dt_ids),
 };
 
 static int ahci_init(void)
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-12 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 13:10 [PATCH 1/1] ahci-generic: add oftree support Jean-Christophe PLAGNIOL-VILLARD
2013-02-12 13:41 ` Rob Herring
2013-02-12 14:10   ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox