From: Loc Ho <lho@apm.com>
To: wsa@the-dreams.de, Ken.Xue@amd.com, Jeff.Wu@amd.com,
rjw@rjwysocki.net, mika.westerberg@linux.intel.com,
lenb@kernel.org
Cc: linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, jcm@redhat.com,
patches@apm.com, Loc Ho <lho@apm.com>
Subject: [PATCH 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support
Date: Mon, 7 Dec 2015 17:16:13 -0700 [thread overview]
Message-ID: <1449533774-22672-2-git-send-email-lho@apm.com> (raw)
In-Reply-To: <1449533774-22672-1-git-send-email-lho@apm.com>
Add APM X-Gene ACPI I2C device support by hooks into existent
ACPI apd driver. To fully enable support, require another
patch to add the X-Gene ACPI node into the DW I2C driver.
Signed-off-by: Loc Ho <lho@apm.com>
---
drivers/acpi/acpi_apd.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index a450e7a..6a9cb8d 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -51,7 +51,7 @@ struct apd_private_data {
const struct apd_device_desc *dev_desc;
};
-#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
+#if defined(CONFIG_X86_AMD_PLATFORM_DEVICE) || defined(CONFIG_ARM64)
#define APD_ADDR(desc) ((unsigned long)&desc)
static int acpi_apd_setup(struct apd_private_data *pdata)
@@ -76,6 +76,11 @@ static struct apd_device_desc cz_i2c_desc = {
.fixed_clk_rate = 133000000,
};
+static struct apd_device_desc xgene_i2c_desc = {
+ .setup = acpi_apd_setup,
+ .fixed_clk_rate = 100000000,
+};
+
static struct apd_device_desc cz_uart_desc = {
.setup = acpi_apd_setup,
.fixed_clk_rate = 48000000,
@@ -135,6 +140,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
{ "AMD0010", APD_ADDR(cz_i2c_desc) },
{ "AMD0020", APD_ADDR(cz_uart_desc) },
{ "AMD0030", },
+ { "APMC0D0F", APD_ADDR(xgene_i2c_desc) },
{ }
};
--
1.7.1
WARNING: multiple messages have this Message-ID (diff)
From: lho@apm.com (Loc Ho)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support
Date: Mon, 7 Dec 2015 17:16:13 -0700 [thread overview]
Message-ID: <1449533774-22672-2-git-send-email-lho@apm.com> (raw)
In-Reply-To: <1449533774-22672-1-git-send-email-lho@apm.com>
Add APM X-Gene ACPI I2C device support by hooks into existent
ACPI apd driver. To fully enable support, require another
patch to add the X-Gene ACPI node into the DW I2C driver.
Signed-off-by: Loc Ho <lho@apm.com>
---
drivers/acpi/acpi_apd.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index a450e7a..6a9cb8d 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -51,7 +51,7 @@ struct apd_private_data {
const struct apd_device_desc *dev_desc;
};
-#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
+#if defined(CONFIG_X86_AMD_PLATFORM_DEVICE) || defined(CONFIG_ARM64)
#define APD_ADDR(desc) ((unsigned long)&desc)
static int acpi_apd_setup(struct apd_private_data *pdata)
@@ -76,6 +76,11 @@ static struct apd_device_desc cz_i2c_desc = {
.fixed_clk_rate = 133000000,
};
+static struct apd_device_desc xgene_i2c_desc = {
+ .setup = acpi_apd_setup,
+ .fixed_clk_rate = 100000000,
+};
+
static struct apd_device_desc cz_uart_desc = {
.setup = acpi_apd_setup,
.fixed_clk_rate = 48000000,
@@ -135,6 +140,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
{ "AMD0010", APD_ADDR(cz_i2c_desc) },
{ "AMD0020", APD_ADDR(cz_uart_desc) },
{ "AMD0030", },
+ { "APMC0D0F", APD_ADDR(xgene_i2c_desc) },
{ }
};
--
1.7.1
next prev parent reply other threads:[~2015-12-08 0:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 0:16 [PATCH 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support Loc Ho
2015-12-08 0:16 ` Loc Ho
2015-12-08 0:16 ` Loc Ho [this message]
2015-12-08 0:16 ` [PATCH 1/2] acpi:apd: " Loc Ho
2015-12-08 2:49 ` Ken Xue
2015-12-08 2:49 ` Ken Xue
2015-12-09 22:03 ` Loc Ho
2015-12-09 22:03 ` Loc Ho
2015-12-10 6:14 ` Ken Xue
2015-12-10 6:14 ` Ken Xue
2015-12-10 6:57 ` Loc Ho
2015-12-10 6:57 ` Loc Ho
2015-12-10 7:19 ` Ken Xue
2015-12-10 7:19 ` Ken Xue
2015-12-08 0:16 ` [PATCH 2/2] i2c:dw: " Loc Ho
2015-12-08 0:16 ` Loc Ho
2015-12-08 11:36 ` Mika Westerberg
2015-12-08 11:36 ` Mika Westerberg
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=1449533774-22672-2-git-send-email-lho@apm.com \
--to=lho@apm.com \
--cc=Jeff.Wu@amd.com \
--cc=Ken.Xue@amd.com \
--cc=jcm@redhat.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=patches@apm.com \
--cc=rjw@rjwysocki.net \
--cc=wsa@the-dreams.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.