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>
This commit is contained in:
parent
8d249b67c7
commit
f7c22398f5
1 changed files with 17 additions and 0 deletions
|
@ -94,6 +94,19 @@ static struct resource rtc_resources[] = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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[] = {
|
static const struct mfd_cell rk805s[] = {
|
||||||
{ .name = "rk808-clkout", },
|
{ .name = "rk808-clkout", },
|
||||||
{ .name = "rk808-regulator", },
|
{ .name = "rk808-regulator", },
|
||||||
|
@ -103,6 +116,10 @@ static const struct mfd_cell rk805s[] = {
|
||||||
.num_resources = ARRAY_SIZE(rtc_resources),
|
.num_resources = ARRAY_SIZE(rtc_resources),
|
||||||
.resources = &rtc_resources[0],
|
.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[] = {
|
static const struct mfd_cell rk808s[] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue