[media] rc: meson-ir: switch config to NEC decoding on shutdown
authorAlex Deryskyba <alex@codesnake.com>
Tue, 25 Apr 2017 07:41:09 +0000 (04:41 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 11:56:32 +0000 (08:56 -0300)
commit2aa1bd1c1ca82f57f3e6967d34c8c985dcc22f48
tree1cb6a89758ec6e071f75c146a734de669660345e
parent48b0a69126dcc8659c2301eb41729445f444e36b
[media] rc: meson-ir: switch config to NEC decoding on shutdown

On the Amlogic SoCs, the bootloader firmware can handle the IR hardware
in order to Wake up or Power back the system when in suspend on
shutdown mode.

This patch switches the hardware configuration in a state usable by the
firmware to permit powering the system back.

Some vendor bootloader firmware were modified to switch to this
configuration but it may not be the case for all available products.

This patch was originally posted at [1].

[1] https://github.com/LibreELEC/linux-amlogic/pull/27

Signed-off-by: Alex Deryskyba <alex@codesnake.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/meson-ir.c