aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2017-02-10 09:15:55 -0500
committerThierry Reding <thierry.reding@gmail.com>2017-02-10 09:15:55 -0500
commit776906ff0350de74441a2e2387a2a69f55f0f71c (patch)
treeac49357f16fdc4f5cd506002e61a2ed1dbc9067c
parent652f319667383f2b2c62dda7841265bedd89c5a3 (diff)
parentbf7696a12071afaca0139d7b8b9eadfc77252876 (diff)
Merge branch 'for-4.11/acpi' into for-next
-rw-r--r--drivers/acpi/acpi_lpss.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 8ea836c046f8..cd5d2b6c9ed1 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -20,6 +20,7 @@
20#include <linux/platform_data/clk-lpss.h> 20#include <linux/platform_data/clk-lpss.h>
21#include <linux/pm_domain.h> 21#include <linux/pm_domain.h>
22#include <linux/pm_runtime.h> 22#include <linux/pm_runtime.h>
23#include <linux/pwm.h>
23#include <linux/delay.h> 24#include <linux/delay.h>
24 25
25#include "internal.h" 26#include "internal.h"
@@ -154,6 +155,18 @@ static void byt_i2c_setup(struct lpss_private_data *pdata)
154 writel(0, pdata->mmio_base + LPSS_I2C_ENABLE); 155 writel(0, pdata->mmio_base + LPSS_I2C_ENABLE);
155} 156}
156 157
158/* BSW PWM used for backlight control by the i915 driver */
159static struct pwm_lookup bsw_pwm_lookup[] = {
160 PWM_LOOKUP_WITH_MODULE("80862288:00", 0, "0000:00:02.0",
161 "pwm_backlight", 0, PWM_POLARITY_NORMAL,
162 "pwm-lpss-platform"),
163};
164
165static void bsw_pwm_setup(struct lpss_private_data *pdata)
166{
167 pwm_add_table(bsw_pwm_lookup, ARRAY_SIZE(bsw_pwm_lookup));
168}
169
157static const struct lpss_device_desc lpt_dev_desc = { 170static const struct lpss_device_desc lpt_dev_desc = {
158 .flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_LTR, 171 .flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_LTR,
159 .prv_offset = 0x800, 172 .prv_offset = 0x800,
@@ -191,6 +204,7 @@ static const struct lpss_device_desc byt_pwm_dev_desc = {
191 204
192static const struct lpss_device_desc bsw_pwm_dev_desc = { 205static const struct lpss_device_desc bsw_pwm_dev_desc = {
193 .flags = LPSS_SAVE_CTX | LPSS_NO_D3_DELAY, 206 .flags = LPSS_SAVE_CTX | LPSS_NO_D3_DELAY,
207 .setup = bsw_pwm_setup,
194}; 208};
195 209
196static const struct lpss_device_desc byt_uart_dev_desc = { 210static const struct lpss_device_desc byt_uart_dev_desc = {