Hi,
When we using below code,we are able to get only power off popup (working). If i want to reboot/restart popup what are the changes i need to do
#define POWER_OFF IMX_GPIO_NR(2, 4)
static struct gpio_keys_button buttons[] = {
{
.gpio = POWER_OFF,
.code = KEY_POWER,
.desc = "Power Off Button",
.type = EV_KEY,
.active_low = 0,
.wakeup = 1,
}
};
static struct gpio_keys_platform_data button_data = {
.buttons = buttons,
.nbuttons = ARRAY_SIZE(buttons),
};
static struct platform_device button_device = {
.name = "gpio-keys",
.id = -1,
.num_resources = 0,
.dev = {
.platform_data = &button_data,
}
};