0001
0002
0003
0004
0005
0006 #include <linux/device.h>
0007 #include <linux/module.h>
0008 #include <linux/platform_device.h>
0009 #include <linux/of.h>
0010 #include "spi-bcm-qspi.h"
0011
0012 static const struct of_device_id brcmstb_qspi_of_match[] = {
0013 { .compatible = "brcm,spi-brcmstb-qspi" },
0014 { .compatible = "brcm,spi-brcmstb-mspi" },
0015 {},
0016 };
0017 MODULE_DEVICE_TABLE(of, brcmstb_qspi_of_match);
0018
0019 static int brcmstb_qspi_probe(struct platform_device *pdev)
0020 {
0021 return bcm_qspi_probe(pdev, NULL);
0022 }
0023
0024 static int brcmstb_qspi_remove(struct platform_device *pdev)
0025 {
0026 return bcm_qspi_remove(pdev);
0027 }
0028
0029 static struct platform_driver brcmstb_qspi_driver = {
0030 .probe = brcmstb_qspi_probe,
0031 .remove = brcmstb_qspi_remove,
0032 .driver = {
0033 .name = "brcmstb_qspi",
0034 .pm = &bcm_qspi_pm_ops,
0035 .of_match_table = brcmstb_qspi_of_match,
0036 }
0037 };
0038 module_platform_driver(brcmstb_qspi_driver);
0039
0040 MODULE_LICENSE("GPL v2");
0041 MODULE_AUTHOR("Kamal Dasu");
0042 MODULE_DESCRIPTION("Broadcom SPI driver for settop SoC");