1 /* 2 * Generic DWMAC platform driver 3 * 4 * Copyright (C) 2007-2011 STMicroelectronics Ltd 5 * Copyright (C) 2015 Joachim Eastwood <manabian@gmail.com> 6 * 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. 10 */ 11 12 #include <linux/module.h> 13 #include <linux/of.h> 14 #include <linux/platform_device.h> 15 16 #include "stmmac.h" 17 #include "stmmac_platform.h" 18 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"}, 25 { } 26 }; 27 MODULE_DEVICE_TABLE(of, dwmac_generic_match); 28 29 static struct platform_driver dwmac_generic_driver = { 30 .probe = stmmac_pltfr_probe, 31 .remove = stmmac_pltfr_remove, 32 .driver = { 33 .name = STMMAC_RESOURCE_NAME, 34 .pm = &stmmac_pltfr_pm_ops, 35 .of_match_table = of_match_ptr(dwmac_generic_match), 36 }, 37 }; 38 module_platform_driver(dwmac_generic_driver); 39 40 MODULE_DESCRIPTION("Generic dwmac driver"); 41 MODULE_LICENSE("GPL v2"); 42