From: Feng Kan <fkan@apm.com>
To: patches@apm.com, jassisinghbrar@gmail.com,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org
Cc: Feng Kan <fkan@apm.com>
Subject: [PATCH V2 2/4] mailbox: xgene: add ACPI support for X-Gene mailbox driver
Date: Wed, 22 Apr 2015 15:18:43 -0700 [thread overview]
Message-ID: <1429741125-29156-3-git-send-email-fkan@apm.com> (raw)
In-Reply-To: <1429741125-29156-1-git-send-email-fkan@apm.com>
Add ACPI support for APM X-Gene mailbox driver.
Signed-off-by: Feng Kan <fkan@apm.com>
---
drivers/mailbox/mailbox-xgene-slimpro.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c
index 49370e5..890f95b 100644
--- a/drivers/mailbox/mailbox-xgene-slimpro.c
+++ b/drivers/mailbox/mailbox-xgene-slimpro.c
@@ -18,6 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
*/
+#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/io.h>
@@ -240,6 +241,14 @@ static const struct of_device_id slimpro_of_match[] = {
};
MODULE_DEVICE_TABLE(of, slimpro_of_match);
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id slimpro_acpi_ids[] = {
+ {"APMC0D01", 0},
+ {}
+};
+MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids);
+#endif
+
static struct platform_driver slimpro_mbox_driver = {
.probe = slimpro_mbox_probe,
.remove = slimpro_mbox_remove,
@@ -247,6 +256,7 @@ static struct platform_driver slimpro_mbox_driver = {
.name = "xgene-slimpro-mbox",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(slimpro_of_match),
+ .acpi_match_table = ACPI_PTR(slimpro_acpi_ids)
},
};
--
1.9.1
next prev parent reply other threads:[~2015-04-22 22:19 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-22 22:18 [PATCH V2 0/4] APM X-Gene Mailbox driver Feng Kan
2015-04-22 22:18 ` [PATCH V2 1/4] mailbox: add support for APM X-Gene platform mailbox driver Feng Kan
2015-04-24 8:25 ` Paul Bolle
2015-11-09 18:05 ` [PATCH v3 0/3] mailbox: Add " Duc Dang
2015-11-16 19:22 ` Duc Dang
2015-11-20 10:39 ` Paul Bolle
2015-11-09 18:05 ` [PATCH v3 1/3] mailbox: Add support for " Duc Dang
2015-11-20 11:47 ` Jassi Brar
2015-12-07 9:29 ` Duc Dang
2016-01-16 2:57 ` [PATCH v4 0/3] mailbox: Add " Duc Dang
2016-01-16 2:57 ` [PATCH v4 1/3] mailbox: Add support for " Duc Dang
2016-01-16 12:31 ` kbuild test robot
2016-01-22 23:05 ` Duc Dang
2016-02-01 19:38 ` Duc Dang
2016-02-02 5:14 ` Jassi Brar
2016-02-08 22:04 ` [PATCH v5 0/3] mailbox: Add " Duc Dang
2016-02-08 22:04 ` [PATCH v5 1/3] mailbox: Add support for " Duc Dang
2016-02-09 16:40 ` Mathieu Poirier
2016-02-10 3:46 ` Duc Dang
2016-02-10 14:41 ` Mathieu Poirier
2016-02-13 3:25 ` Duc Dang
2016-02-13 3:39 ` [PATCH v6 0/3] mailbox: Add " Duc Dang
2016-02-19 20:43 ` Duc Dang
2016-02-13 3:39 ` [PATCH v6 1/3] mailbox: Add support for " Duc Dang
2016-02-13 3:39 ` [PATCH v6 2/3] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation Duc Dang
2016-02-13 3:39 ` [PATCH v6 3/3] arm64: dts: mailbox device tree node for APM X-Gene platform Duc Dang
2016-02-25 22:33 ` Duc Dang
2016-02-08 22:04 ` [PATCH v5 2/3] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation Duc Dang
2016-02-08 22:04 ` [PATCH v5 3/3] arm64: dts: mailbox device tree node for APM X-Gene platform Duc Dang
2016-01-16 2:57 ` [PATCH v4 2/3] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation Duc Dang
2016-01-17 0:13 ` Rob Herring
2016-01-19 23:53 ` Duc Dang
2016-01-16 2:57 ` [PATCH v4 3/3] arm64: dts: mailbox device tree node for APM X-Gene platform Duc Dang
2015-11-09 18:05 ` [PATCH v3 2/3] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation Duc Dang
2015-11-10 14:15 ` Rob Herring
2015-11-10 18:42 ` Duc Dang
2016-01-16 2:41 ` Duc Dang
2015-11-09 18:05 ` [PATCH v3 3/3] arm64: dts: mailbox device tree node for APM X-Gene platform Duc Dang
2015-04-22 22:18 ` Feng Kan [this message]
2015-04-22 22:18 ` [PATCH V2 3/4] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation Feng Kan
2015-04-22 22:18 ` [PATCH V2 4/4] arm64: dts: mailbox device tree node for APM X-Gene platform Feng Kan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1429741125-29156-3-git-send-email-fkan@apm.com \
--to=fkan@apm.com \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@apm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®