From: Feng Kan <fkan@apm.com>
To: patches@apm.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org
Cc: Feng Kan <fkan@apm.com>
Subject: [PATCH V4 2/4] i2c: busses: xgene: add acpi support for i2c xgene SLIMpro driver
Date: Fri, 24 Apr 2015 10:11:31 -0700 [thread overview]
Message-ID: <1429895493-30176-3-git-send-email-fkan@apm.com> (raw)
In-Reply-To: <1429895493-30176-1-git-send-email-fkan@apm.com>
This adds support for ACPI for the APM X-Gene I2C SLIMpro proxy
driver.
Signed-off-by: Feng Kan <fkan@apm.com>
---
drivers/i2c/busses/i2c-xgene-slimpro.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c
index afe4cf2..f1caa29 100644
--- a/drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/drivers/i2c/busses/i2c-xgene-slimpro.c
@@ -22,6 +22,7 @@
* using the APM X-Gene SLIMpro mailbox driver.
*
*/
+#include <linux/acpi.h>
#include <linux/dma-mapping.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
@@ -442,12 +443,21 @@ static const struct of_device_id xgene_slimpro_i2c_id[] = {
};
MODULE_DEVICE_TABLE(of, xgene_slimpro_i2c_dt_ids);
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id xgene_slimpro_i2c_acpi_ids[] = {
+ {"APMC0D40", 0},
+ {}
+};
+MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids);
+#endif
+
static struct platform_driver xgene_slimpro_i2c_driver = {
.probe = xgene_slimpro_i2c_probe,
.remove = xgene_slimpro_i2c_remove,
.driver = {
.name = "xgene-slimpro-i2c",
- .of_match_table = of_match_ptr(xgene_slimpro_i2c_id)
+ .of_match_table = of_match_ptr(xgene_slimpro_i2c_id),
+ .acpi_match_table = ACPI_PTR(xgene_slimpro_i2c_acpi_ids)
},
};
--
1.9.1
next prev parent reply other threads:[~2015-04-24 17:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-24 17:11 [PATCH V4 0/4] i2c: busses: xgene: I2C proxy driver for X-Gene Feng Kan
2015-04-24 17:11 ` [PATCH V4 1/4] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform Feng Kan
2015-04-24 18:13 ` Feng Kan
2015-04-24 17:11 ` Feng Kan [this message]
2015-04-24 17:11 ` [PATCH V4 3/4] Documentation: i2c: Add APM X-Gene platform SLIMpro I2C driver documentation Feng Kan
2015-04-24 17:11 ` [PATCH V4 4/4] arm64: dts: add proxy I2C device driver on 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=1429895493-30176-3-git-send-email-fkan@apm.com \
--to=fkan@apm.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-i2c@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).