diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-02-13 11:06:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-14 09:29:59 +0100 |
commit | 5f337b5452eebe9369a322fc9f49ae1449f104b8 (patch) | |
tree | 7f08f22789ce088a5a145e1598b268650c481289 /drivers/ata/ahci.c | |
parent | a3f74d928ce73f37eab5b398e018aaeb42fd2ba4 (diff) | |
download | barebox-5f337b5452eebe9369a322fc9f49ae1449f104b8.tar.gz barebox-5f337b5452eebe9369a322fc9f49ae1449f104b8.tar.xz |
ahci-generic: add oftree support
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 3aff3f3c2d..2d6e42232f 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -671,10 +671,19 @@ static int ahci_probe(struct device_d *dev) return ret; } +static __maybe_unused struct of_device_id ahci_dt_ids[] = { + { + .compatible = "calxeda,hb-ahci", + }, { + /* sentinel */ + } +}; + static struct driver_d ahci_driver = { .name = "ahci", .probe = ahci_probe, .info = ahci_info, + .of_compatible = DRV_OF_COMPAT(ahci_dt_ids), }; static int ahci_init(void) |