Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1660837

[PATCH v6 11/12] mfd: rk808: Add RK805 power key support

From Jianhong Chen <chenjh@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH v6 11/12] mfd: rk808: Add RK805 power key support
Date 2017-06-08 09:40 +0200
Message-ID <tQ0cV-1hd-3@gated-at.bofh.it> (permalink)
References <tPZTA-1ak-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: chenjh <chenjh@rock-chips.com>

Signed-off-by: chenjh <chenjh@rock-chips.com>
---
 drivers/mfd/rk808.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index f7cdcf5..d1e8d35 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -94,6 +94,19 @@ static bool rk808_is_volatile_reg(struct device *dev, unsigned int reg)
 	}
 };
 
+static struct resource rk805_key_resources[] = {
+	{
+		.start  = RK805_IRQ_PWRON_FALL,
+		.end    = RK805_IRQ_PWRON_FALL,
+		.flags  = IORESOURCE_IRQ,
+	},
+	{
+		.start  = RK805_IRQ_PWRON_RISE,
+		.end    = RK805_IRQ_PWRON_RISE,
+		.flags  = IORESOURCE_IRQ,
+	}
+};
+
 static const struct mfd_cell rk805s[] = {
 	{ .name = "rk808-clkout", },
 	{ .name = "rk808-regulator", },
@@ -103,6 +116,10 @@ static bool rk808_is_volatile_reg(struct device *dev, unsigned int reg)
 		.num_resources = ARRAY_SIZE(rtc_resources),
 		.resources = &rtc_resources[0],
 	},
+	{	.name = "rk805-pwrkey",
+		.num_resources = ARRAY_SIZE(rk805_key_resources),
+		.resources = &rk805_key_resources[0],
+	},
 };
 
 static const struct mfd_cell rk808s[] = {
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 00/12] rk808: Add RK805 support Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:20 +0200
  [PATCH v6 01/12] mfd: rk808: fix up the chip id get failed Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:20 +0200
  [PATCH v6 03/12] regulator: rk808: Add regulator driver for RK805 Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:20 +0200
    Re: [PATCH v6 03/12] regulator: rk808: Add regulator driver for RK805 Mark Brown <broonie@kernel.org> - 2017-06-08 13:20 +0200
  [PATCH v6 04/12] mfd: rk808: Add RK805 support Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:20 +0200
  [PATCH v6 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808 Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:30 +0200
  [PATCH v6 11/12] mfd: rk808: Add RK805 power key support Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
  [PATCH v6 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808 Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
  [PATCH v6 12/12] gpio: dt-bindings: add bindings for Rockchip RK805 PMIC Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
    Re: [PATCH v6 12/12] gpio: dt-bindings: add bindings for Rockchip  RK805 PMIC Linus Walleij <linus.walleij@linaro.org> - 2017-06-09 13:40 +0200
    Re: [PATCH v6 12/12] gpio: dt-bindings: add bindings for Rockchip  RK805 PMIC Rob Herring <robh@kernel.org> - 2017-06-12 18:00 +0200
  [PATCH v6 10/12] mfd: rk808: Add RK805 gpio support Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
  [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
    Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC Linus Walleij <linus.walleij@linaro.org> - 2017-06-09 13:40 +0200
      Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC Heiko Stuebner <heiko@sntech.de> - 2017-06-09 14:20 +0200
        Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC Jianhong Chen <chenjh@rock-chips.com> - 2017-06-14 14:10 +0200
  [PATCH v6 09/12] Input: Add power key driver for Rockchip RK805 PMIC Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
  [PATCH v6 07/12] mfd: dt-bindings: Add RK805 device tree bindings document Jianhong Chen <chenjh@rock-chips.com> - 2017-06-08 09:40 +0200
    Re: [PATCH v6 07/12] mfd: dt-bindings: Add RK805 device tree  bindings document Rob Herring <robh@kernel.org> - 2017-06-08 21:30 +0200

csiph-web