2 * Copyright (c) 2014, Sony Mobile Communications AB.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <linux/module.h>
15 #include <linux/platform_device.h>
16 #include <linux/of_platform.h>
18 #include <linux/slab.h>
19 #include <linux/firmware.h>
20 #include <linux/interrupt.h>
21 #include <linux/delay.h>
23 #include <linux/soc/qcom/smd.h>
25 static int ipcrtr_stub_callback(struct qcom_smd_device *qsdev,
29 print_hex_dump(KERN_DEBUG, "IPCRTR <<<: ", DUMP_PREFIX_OFFSET, 16, 1, data, count, true);
34 static int ipcrtr_stub_probe(struct qcom_smd_device *sdev)
36 dev_err(&sdev->dev, "ipcrtr initialized\n");
41 static const struct of_device_id ipcrtr_stub_of_match[] = {
42 { .compatible = "qcom,ipcrtr" },
45 MODULE_DEVICE_TABLE(of, ipcrtr_stub_of_match);
47 static struct qcom_smd_driver ipcrtr_stub_driver = {
48 .probe = ipcrtr_stub_probe,
49 .callback = ipcrtr_stub_callback,
51 .name = "ipcrtr_stub",
53 .of_match_table = ipcrtr_stub_of_match,
57 module_qcom_smd_driver(ipcrtr_stub_driver);
59 MODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@sonymobile.com>");
60 MODULE_DESCRIPTION("Qualcomm IPCRTR stub driver");
61 MODULE_LICENSE("GPLv2");