* Re: [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM
2014-01-20 19:12 [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM Chew Chiau Ee
@ 2014-01-20 11:21 ` Mika Westerberg
2014-02-05 0:10 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Mika Westerberg @ 2014-01-20 11:21 UTC (permalink / raw)
To: Chew Chiau Ee; +Cc: Len Brown, Rafael J. Wysocki, linux-acpi, linux-kernel
On Tue, Jan 21, 2014 at 03:12:02AM +0800, Chew Chiau Ee wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>
> Intel BayTrail LPSS consists of two PWM controllers which can
> be enumerated from ACPI namespace.
>
> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM
@ 2014-01-20 19:12 Chew Chiau Ee
2014-01-20 11:21 ` Mika Westerberg
2014-02-05 0:10 ` Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Chew Chiau Ee @ 2014-01-20 19:12 UTC (permalink / raw)
To: Len Brown, Rafael J. Wysocki; +Cc: linux-acpi, linux-kernel, Mika Westerberg
From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Intel BayTrail LPSS consists of two PWM controllers which can
be enumerated from ACPI namespace.
Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
---
drivers/acpi/acpi_lpss.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 6745fe1..8c2bae9 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -102,6 +102,16 @@ static struct lpss_device_desc lpt_sdio_dev_desc = {
.ltr_required = true,
};
+static struct lpss_shared_clock pwm_clock = {
+ .name = "pwm_clk",
+ .rate = 25000000,
+};
+
+static struct lpss_device_desc byt_pwm_dev_desc = {
+ .clk_required = true,
+ .shared_clock = &pwm_clock,
+};
+
static struct lpss_shared_clock uart_clock = {
.name = "uart_clk",
.rate = 44236800,
@@ -157,6 +167,7 @@ static const struct acpi_device_id acpi_lpss_device_ids[] = {
{ "INT33C7", },
/* BayTrail LPSS devices */
+ { "80860F09", (unsigned long)&byt_pwm_dev_desc },
{ "80860F0A", (unsigned long)&byt_uart_dev_desc },
{ "80860F0E", (unsigned long)&byt_spi_dev_desc },
{ "80860F14", (unsigned long)&byt_sdio_dev_desc },
--
1.7.4.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM
2014-01-20 19:12 [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM Chew Chiau Ee
2014-01-20 11:21 ` Mika Westerberg
@ 2014-02-05 0:10 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2014-02-05 0:10 UTC (permalink / raw)
To: Chew Chiau Ee; +Cc: Len Brown, linux-acpi, linux-kernel, Mika Westerberg
On Tuesday, January 21, 2014 03:12:02 AM Chew Chiau Ee wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>
> Intel BayTrail LPSS consists of two PWM controllers which can
> be enumerated from ACPI namespace.
First, please say "Bay Trail" (or similar) instead of BYT in the subject.
Second, please say in the changelog what the patch will cause to happen.
For example, "This change will cause platform device objects to be
created for PWM controllers on Bay Trail which will allow the <driver
that's going to handle those things> driver to bind to them and handle
those devices."
Finally, the PWM maintainer has to see this.
Thanks!
> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> ---
> drivers/acpi/acpi_lpss.c | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
> index 6745fe1..8c2bae9 100644
> --- a/drivers/acpi/acpi_lpss.c
> +++ b/drivers/acpi/acpi_lpss.c
> @@ -102,6 +102,16 @@ static struct lpss_device_desc lpt_sdio_dev_desc = {
> .ltr_required = true,
> };
>
> +static struct lpss_shared_clock pwm_clock = {
> + .name = "pwm_clk",
> + .rate = 25000000,
> +};
> +
> +static struct lpss_device_desc byt_pwm_dev_desc = {
> + .clk_required = true,
> + .shared_clock = &pwm_clock,
> +};
> +
> static struct lpss_shared_clock uart_clock = {
> .name = "uart_clk",
> .rate = 44236800,
> @@ -157,6 +167,7 @@ static const struct acpi_device_id acpi_lpss_device_ids[] = {
> { "INT33C7", },
>
> /* BayTrail LPSS devices */
> + { "80860F09", (unsigned long)&byt_pwm_dev_desc },
> { "80860F0A", (unsigned long)&byt_uart_dev_desc },
> { "80860F0E", (unsigned long)&byt_spi_dev_desc },
> { "80860F14", (unsigned long)&byt_sdio_dev_desc },
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-04 23:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-20 19:12 [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM Chew Chiau Ee
2014-01-20 11:21 ` Mika Westerberg
2014-02-05 0:10 ` Rafael J. Wysocki
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).