summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJoseph Chen <chenjh@rock-chips.com>2017-08-20 21:28:42 -0400
committerLee Jones <lee.jones@linaro.org>2017-08-21 03:54:56 -0400
commitf7c22398f5e95c995a34d4f196d53cfc32562aed (patch)
treece0f885221e7805e8f6c62e40e1dfbf6056e48c8 /drivers/mfd
parent8d249b67c785d48c5aa526b47495f7c88a62f73e (diff)
mfd: rk808: Add RK805 power key support
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/rk808.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index c803d2d5dfb7..216fbf6adec9 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -94,6 +94,19 @@ static struct resource rtc_resources[] = {
94 } 94 }
95}; 95};
96 96
97static struct resource rk805_key_resources[] = {
98 {
99 .start = RK805_IRQ_PWRON_FALL,
100 .end = RK805_IRQ_PWRON_FALL,
101 .flags = IORESOURCE_IRQ,
102 },
103 {
104 .start = RK805_IRQ_PWRON_RISE,
105 .end = RK805_IRQ_PWRON_RISE,
106 .flags = IORESOURCE_IRQ,
107 }
108};
109
97static const struct mfd_cell rk805s[] = { 110static const struct mfd_cell rk805s[] = {
98 { .name = "rk808-clkout", }, 111 { .name = "rk808-clkout", },
99 { .name = "rk808-regulator", }, 112 { .name = "rk808-regulator", },
@@ -103,6 +116,10 @@ static const struct mfd_cell rk805s[] = {
103 .num_resources = ARRAY_SIZE(rtc_resources), 116 .num_resources = ARRAY_SIZE(rtc_resources),
104 .resources = &rtc_resources[0], 117 .resources = &rtc_resources[0],
105 }, 118 },
119 { .name = "rk805-pwrkey",
120 .num_resources = ARRAY_SIZE(rk805_key_resources),
121 .resources = &rk805_key_resources[0],
122 },
106}; 123};
107 124
108static const struct mfd_cell rk808s[] = { 125static const struct mfd_cell rk808s[] = {