2 * Generic DWMAC platform driver
4 * Copyright (C) 2007-2011 STMicroelectronics Ltd
5 * Copyright (C) 2015 Joachim Eastwood <manabian@gmail.com>
7 * This file is licensed under the terms of the GNU General Public
8 * License version 2. This program is licensed "as is" without any
9 * warranty of any kind, whether express or implied.
12 #include <linux/module.h>
14 #include <linux/platform_device.h>
17 #include "stmmac_platform.h"
19 static const struct of_device_id dwmac_generic_match[] = {
20 { .compatible = "st,spear600-gmac"},
21 { .compatible = "snps,dwmac-3.610"},
22 { .compatible = "snps,dwmac-3.70a"},
23 { .compatible = "snps,dwmac-3.710"},
24 { .compatible = "snps,dwmac"},
27 MODULE_DEVICE_TABLE(of, dwmac_generic_match);
29 static struct platform_driver dwmac_generic_driver = {
30 .probe = stmmac_pltfr_probe,
31 .remove = stmmac_pltfr_remove,
33 .name = STMMAC_RESOURCE_NAME,
34 .pm = &stmmac_pltfr_pm_ops,
35 .of_match_table = of_match_ptr(dwmac_generic_match),
38 module_platform_driver(dwmac_generic_driver);
40 MODULE_DESCRIPTION("Generic dwmac driver");
41 MODULE_LICENSE("GPL v2");