aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorun Fu <borun.fu@linux.intel.com>2015-10-14 04:16:26 -0400
committerLee Jones <lee.jones@linaro.org>2015-10-30 13:20:39 -0400
commite56e5ad67d15f775537f1259527f1ad5796da012 (patch)
tree21368e9e2f1109567c3a443e0931e406bae48d07
parent8c1065801cedec9272c29c39e95cdf7904373422 (diff)
mfd: axp20x: Add a cell for the power button part of the, axp288 PMICs
This patch adds the mfd cell info for axp288 power key device. Signed-off-by: Borun Fu <borun.fu@linux.intel.com> Signed-off-by: Fei Yang <fei.yang@intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/axp20x.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 3f576b76c322..9842199e2e6c 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -161,6 +161,21 @@ static struct resource axp22x_pek_resources[] = {
161 }, 161 },
162}; 162};
163 163
164static struct resource axp288_power_button_resources[] = {
165 {
166 .name = "PEK_DBR",
167 .start = AXP288_IRQ_POKN,
168 .end = AXP288_IRQ_POKN,
169 .flags = IORESOURCE_IRQ,
170 },
171 {
172 .name = "PEK_DBF",
173 .start = AXP288_IRQ_POKP,
174 .end = AXP288_IRQ_POKP,
175 .flags = IORESOURCE_IRQ,
176 },
177};
178
164static struct resource axp288_fuel_gauge_resources[] = { 179static struct resource axp288_fuel_gauge_resources[] = {
165 { 180 {
166 .start = AXP288_IRQ_QWBTU, 181 .start = AXP288_IRQ_QWBTU,
@@ -572,6 +587,11 @@ static struct mfd_cell axp288_cells[] = {
572 .resources = axp288_fuel_gauge_resources, 587 .resources = axp288_fuel_gauge_resources,
573 }, 588 },
574 { 589 {
590 .name = "axp20x-pek",
591 .num_resources = ARRAY_SIZE(axp288_power_button_resources),
592 .resources = axp288_power_button_resources,
593 },
594 {
575 .name = "axp288_pmic_acpi", 595 .name = "axp288_pmic_acpi",
576 }, 596 },
577}; 597};