User can press and release pwrkey for times to enter download mode,
set it disabled by default.
Change-Id: Id2fd9d12756bb1584a4d25b6df0c16a8a85d1e9a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- only power key can request irq thread;
- this makes key framework be able to manage all key interrupt event;
Change-Id: I9f99607ed7ff9bcd261d3918150e4a4489e0f472
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- use standard dm framework to implement all key drivers;
- all key node to be children and attach to key bus;
- dm key uclass takes over most work;
- reduce a lot of driver code size;
Change-Id: I9ea4515249d493eb4434890b90350f694c07404f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
We add recovery key node with property "u-boot,dm-pre-reloc"
in uboot dts in order to make sure recovery key works normally
even when kernel dtb is load failed. But There are too many
boards for a platform(eg. RK3399/RK3399PRO), which may cause
a mistake key match between boards via U-Boot dts key nodes,
so that we make kernel dtb key has higher priority.
Change-Id: I771d72860aa626e4a6a1638117cb1876fe5d1a44
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1. dm key framework takes over more generic jobs;
2. key drivers remove unused codes and match new framework;
3. only power key is registered as interrupt key;
Change-Id: Icdda86f588af721b685f801ed251581f2fd85793
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
linux-event-codes.h defines more key code than
input.h
Change-Id: Ib9c9946bb78420fdd6b1dbcdad48e46007cc4752
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>