mirror of
https://github.com/armbian/build.git
synced 2025-08-30 10:51:06 +02:00
* Bump imx6 edge to 5.12.y * Bump odroid xu4 edge to 5.12.y * Bump Jetson nano edge to 5.12.y * WIP: Bump sunxi to 5.12.y - create a copy of patches and make a new link - wireless patches needs adjutement to 5.12 - some patches are still failing * Adjust wireless patches to build on 5.12.y * Remove template wireless patch * Move Espressobin edge to 5.12.y * Bump mvebu to 5.12 - patch 92-mvebu-gpio-remove-hardcoded-timer-assignment.patch was disabled @heisath - adjusted wireless driver for 8723ds * Adjust sunxi / sunxi64 edge to compile * Fix kernel config for Jetson nano edge * bump meson64 to 5.12.y * bump rockchip edge to 5.12.y * Bump rockchip64 to 5.12.y * Bump rk322x edge to 5.12.y @paolosabatino * Cleanup im6, re-add 5.10.y patches since one is missing in 5.12.y * Update odroidxu4 edge links * rk322x: moved rk322x-edge to kernel 5.12, fix overlay compilation, retouched included kernel modules * Cleanup: remove deprecated config Co-authored-by: Paolo Sabatino <paolo.sabatino@gmail.com>
118 lines
3.6 KiB
Diff
118 lines
3.6 KiB
Diff
From 243388ca15983179fd341ba7e51e883ce3887c7c Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Tue, 19 Jan 2021 11:55:20 +0000
|
|
Subject: [PATCH 06/58] FROMGIT: media: rc: add keymap for minix-neo remote
|
|
|
|
Add a keymap and bindings for the simple IR (NEC) remote used with
|
|
Minix 'NEO' branded Android STB devices.
|
|
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
.../devicetree/bindings/media/rc.yaml | 1 +
|
|
drivers/media/rc/keymaps/Makefile | 1 +
|
|
drivers/media/rc/keymaps/rc-minix-neo.c | 55 +++++++++++++++++++
|
|
include/media/rc-map.h | 1 +
|
|
4 files changed, 58 insertions(+)
|
|
create mode 100644 drivers/media/rc/keymaps/rc-minix-neo.c
|
|
|
|
diff --git a/Documentation/devicetree/bindings/media/rc.yaml b/Documentation/devicetree/bindings/media/rc.yaml
|
|
index 946441b4e1a5..cbffdd6a470d 100644
|
|
--- a/Documentation/devicetree/bindings/media/rc.yaml
|
|
+++ b/Documentation/devicetree/bindings/media/rc.yaml
|
|
@@ -93,6 +93,7 @@ properties:
|
|
- rc-medion-x10
|
|
- rc-medion-x10-digitainer
|
|
- rc-medion-x10-or2x
|
|
+ - rc-minix-neo
|
|
- rc-msi-digivox-ii
|
|
- rc-msi-digivox-iii
|
|
- rc-msi-tvanywhere
|
|
diff --git a/drivers/media/rc/keymaps/Makefile b/drivers/media/rc/keymaps/Makefile
|
|
index b252a1d2ebd6..b7f53f44c5c8 100644
|
|
--- a/drivers/media/rc/keymaps/Makefile
|
|
+++ b/drivers/media/rc/keymaps/Makefile
|
|
@@ -70,6 +70,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \
|
|
rc-medion-x10.o \
|
|
rc-medion-x10-digitainer.o \
|
|
rc-medion-x10-or2x.o \
|
|
+ rc-minix-neo.o \
|
|
rc-msi-digivox-ii.o \
|
|
rc-msi-digivox-iii.o \
|
|
rc-msi-tvanywhere.o \
|
|
diff --git a/drivers/media/rc/keymaps/rc-minix-neo.c b/drivers/media/rc/keymaps/rc-minix-neo.c
|
|
new file mode 100644
|
|
index 000000000000..9165af548ff1
|
|
--- /dev/null
|
|
+++ b/drivers/media/rc/keymaps/rc-minix-neo.c
|
|
@@ -0,0 +1,55 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+
|
|
+//
|
|
+// Copyright (C) 2021 Christian Hewitt <christianshewitt@gmail.com>
|
|
+
|
|
+#include <media/rc-map.h>
|
|
+#include <linux/module.h>
|
|
+
|
|
+//
|
|
+// Keytable for the Minix NEO remote control
|
|
+//
|
|
+
|
|
+static struct rc_map_table minix_neo[] = {
|
|
+
|
|
+ { 0x118, KEY_POWER },
|
|
+
|
|
+ { 0x146, KEY_UP },
|
|
+ { 0x116, KEY_DOWN },
|
|
+ { 0x147, KEY_LEFT },
|
|
+ { 0x115, KEY_RIGHT },
|
|
+ { 0x155, KEY_ENTER },
|
|
+
|
|
+ { 0x110, KEY_VOLUMEDOWN },
|
|
+ { 0x140, KEY_BACK },
|
|
+ { 0x114, KEY_VOLUMEUP },
|
|
+
|
|
+ { 0x10d, KEY_HOME },
|
|
+ { 0x104, KEY_MENU },
|
|
+ { 0x112, KEY_CONFIG },
|
|
+
|
|
+};
|
|
+
|
|
+static struct rc_map_list minix_neo_map = {
|
|
+ .map = {
|
|
+ .scan = minix_neo,
|
|
+ .size = ARRAY_SIZE(minix_neo),
|
|
+ .rc_proto = RC_PROTO_NEC,
|
|
+ .name = RC_MAP_MINIX_NEO,
|
|
+ }
|
|
+};
|
|
+
|
|
+static int __init init_rc_map_minix_neo(void)
|
|
+{
|
|
+ return rc_map_register(&minix_neo_map);
|
|
+}
|
|
+
|
|
+static void __exit exit_rc_map_minix_neo(void)
|
|
+{
|
|
+ rc_map_unregister(&minix_neo_map);
|
|
+}
|
|
+
|
|
+module_init(init_rc_map_minix_neo)
|
|
+module_exit(exit_rc_map_minix_neo)
|
|
+
|
|
+MODULE_LICENSE("GPL");
|
|
+MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com");
|
|
diff --git a/include/media/rc-map.h b/include/media/rc-map.h
|
|
index 999b750bc6b8..a6fca9cc761f 100644
|
|
--- a/include/media/rc-map.h
|
|
+++ b/include/media/rc-map.h
|
|
@@ -273,6 +273,7 @@ struct rc_map *rc_map_get(const char *name);
|
|
#define RC_MAP_MEDION_X10 "rc-medion-x10"
|
|
#define RC_MAP_MEDION_X10_DIGITAINER "rc-medion-x10-digitainer"
|
|
#define RC_MAP_MEDION_X10_OR2X "rc-medion-x10-or2x"
|
|
+#define RC_MAP_MINIX_NEO "rc-minix-neo"
|
|
#define RC_MAP_MSI_DIGIVOX_II "rc-msi-digivox-ii"
|
|
#define RC_MAP_MSI_DIGIVOX_III "rc-msi-digivox-iii"
|
|
#define RC_MAP_MSI_TVANYWHERE "rc-msi-tvanywhere"
|
|
--
|
|
2.25.1
|
|
|