linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i2c: xlp9xx: add ACPI support for Broadcom Vulcan
@ 2016-05-24  8:09 Tanmay Jagdale
  2016-06-03 11:14 ` [PATCH v2] " Tanmay Jagdale
  0 siblings, 1 reply; 7+ messages in thread
From: Tanmay Jagdale @ 2016-05-24  8:09 UTC (permalink / raw)
  To: wsa; +Cc: linux-i2c, jayachandran.chandrashekaran, tanmay.jagdale

Added ACPI support for the I2C controller present on Broadcom's
Vulcan ARM64 processor. ACPI ID used by the controller is BRCM9007.

Signed-off-by: Tanmay Jagdale <tanmay.jagdale@broadcom.com>
---
 drivers/i2c/busses/i2c-xlp9xx.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/i2c/busses/i2c-xlp9xx.c b/drivers/i2c/busses/i2c-xlp9xx.c
index c941418..62a7cff 100644
--- a/drivers/i2c/busses/i2c-xlp9xx.c
+++ b/drivers/i2c/busses/i2c-xlp9xx.c
@@ -13,6 +13,7 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/acpi.h>
 #include <linux/platform_device.h>
 
 #define XLP9XX_I2C_DIV			0x0
@@ -429,12 +430,21 @@ static const struct of_device_id xlp9xx_i2c_of_match[] = {
 	{ /* sentinel */ },
 };
 
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id vulcan_i2c_acpi_ids[] = {
+	{"BRCM9007", 0},
+	{}
+};
+MODULE_DEVICE_TABLE(acpi, vulcan_i2c_acpi_ids);
+#endif
+
 static struct platform_driver xlp9xx_i2c_driver = {
 	.probe = xlp9xx_i2c_probe,
 	.remove = xlp9xx_i2c_remove,
 	.driver = {
 		.name = "xlp9xx-i2c",
 		.of_match_table = xlp9xx_i2c_of_match,
+		.acpi_match_table = ACPI_PTR(vulcan_i2c_acpi_ids),
 	},
 };
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-08  1:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24  8:09 i2c: xlp9xx: add ACPI support for Broadcom Vulcan Tanmay Jagdale
2016-06-03 11:14 ` [PATCH v2] " Tanmay Jagdale
2016-06-17 17:20   ` Jayachandran C
2016-06-18 14:04   ` Wolfram Sang
2016-06-20  9:26     ` [PATCH v3] " Tanmay Jagdale
2016-06-20 10:27       ` Mika Westerberg
2016-07-08  1:42       ` Wolfram Sang

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).