From: Kamlakant Patel <kamlakant.patel@cavium.com>
To: linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org
Cc: Jayachandran C <jnair@caviumnetworks.com>,
Wolfram Sang <wsa@the-dreams.de>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Kamlakant Patel <kamlakant.patel@cavium.com>
Subject: [PATCH 1/3] ACPI / APD: Add clock frequency for ThunderX2 I2C controller
Date: Wed, 27 Sep 2017 20:22:21 +0530 [thread overview]
Message-ID: <1506523943-8632-2-git-send-email-kamlakant.patel@cavium.com> (raw)
In-Reply-To: <1506523943-8632-1-git-send-email-kamlakant.patel@cavium.com>
From: Jayachandran C <jnair@caviumnetworks.com>
Add the input frequency of 125MHz for the ThunderX2 I2C controller block.
The ACPI ID used is "CAV9007".
Signed-off-by: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: Kamlakant Patel <kamlakant.patel@cavium.com>
---
drivers/acpi/acpi_apd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index 17a1eb1..93acc9b 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -106,6 +106,10 @@ static const struct apd_device_desc vulcan_spi_desc = {
.setup = acpi_apd_setup,
.fixed_clk_rate = 133000000,
};
+static const struct apd_device_desc thunderx2_i2c_desc = {
+ .setup = acpi_apd_setup,
+ .fixed_clk_rate = 125000000,
+};
#endif
#else
@@ -170,6 +174,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
{ "APMC0D0F", APD_ADDR(xgene_i2c_desc) },
{ "BRCM900D", APD_ADDR(vulcan_spi_desc) },
{ "CAV900D", APD_ADDR(vulcan_spi_desc) },
+ { "CAV9007", APD_ADDR(thunderx2_i2c_desc) },
#endif
{ }
};
--
2.7.4
next prev parent reply other threads:[~2017-09-27 14:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-27 14:52 [PATCH 0/3] i2c-xlp9xx: update i2c driver to handle I2C_M_RECV_LEN flag Kamlakant Patel
2017-09-27 14:52 ` Kamlakant Patel [this message]
2017-09-28 8:45 ` [PATCH 1/3] ACPI / APD: Add clock frequency for ThunderX2 I2C controller Mika Westerberg
2017-09-27 14:52 ` [PATCH 2/3] i2c: xlp9xx: Get clock frequency with clk API Kamlakant Patel
2017-09-28 8:49 ` Mika Westerberg
2017-09-27 14:52 ` [PATCH 3/3] i2c: xlp9xx: Handle I2C_M_RECV_LEN in msg->flags Kamlakant Patel
2017-09-28 8:50 ` 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=1506523943-8632-2-git-send-email-kamlakant.patel@cavium.com \
--to=kamlakant.patel@cavium.com \
--cc=jnair@caviumnetworks.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--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 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).