提交 dea9c730 编写于 作者: M Marcin Niestroj 提交者: Lee Jones

mfd: tps65217: Add power button as subdevice

Add tps65217 power buttor subdevice with assigned IRQ resources.
Signed-off-by: NMarcin Niestroj <m.niestroj@grinn-global.com>
Acked-by: NTony Lindgren <tony@atomide.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 6556bdac
...@@ -38,6 +38,10 @@ static struct resource charger_resources[] = { ...@@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"), DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
}; };
static struct resource pb_resources[] = {
DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
};
struct tps65217_irq { struct tps65217_irq {
int mask; int mask;
int interrupt; int interrupt;
...@@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = { ...@@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
.resources = charger_resources, .resources = charger_resources,
.of_compatible = "ti,tps65217-charger", .of_compatible = "ti,tps65217-charger",
}, },
{
.name = "tps65217-pwrbutton",
.num_resources = ARRAY_SIZE(pb_resources),
.resources = pb_resources,
.of_compatible = "ti,tps65217-pwrbutton",
},
}; };
static irqreturn_t tps65217_irq_thread(int irq, void *data) static irqreturn_t tps65217_irq_thread(int irq, void *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册