Thanks for replay.
I already added this line. It is not working.
In my solution power is defined as:
and is used in struct:
static struct gpio_keys_button loco_buttons[] = {
GPIO_BUTTON(MX53_nONKEY, KEY_POWER, 1, "power", 0),
GPIO_BUTTON(USER_UI1, KEY_BACK, 1, "back", 0),
GPIO_BUTTON(USER_UI2, KEY_MENU, 1, "menu", 0),
};
In function mxc_board_init(void) i have:
| loco_add_device_buttons(); |
pm_power_off = mc34708_power_off;
But long power press is not working.
I'm software developer, i don't have schematic.
If you have suggestions what should be checked in hardware, please, tell me.