summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorBenjamin Fair <benjaminfair@google.com>2018-07-10 15:04:04 -0700
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-07-19 01:29:06 +0000
commita2978e92f2a27e065b217516c7369f961cf7fb71 (patch)
tree63e94db51fe3c047fcde1a522d935efafa2e7134 /meta-phosphor
parent5d04f1a6579a25d6c87f346b4fc785a4a92a16d2 (diff)
downloadtalos-openbmc-a2978e92f2a27e065b217516c7369f961cf7fb71.tar.gz
talos-openbmc-a2978e92f2a27e065b217516c7369f961cf7fb71.zip
meta-phosphor: nuvoton-layer: add gpio-keys kernel feature
The phosphor-base.inc distro file enables the phosphor-gpio-keys KERNEL_FEATURE. Add support for this feature to the linux-nuvoton recipe via a bbappend in meta-phosphor's nuvoton layer. Tested: Built and ran on NPCM750 EVB Change-Id: Id957c6209ebb841fce2cdad1cc0790e0d58da60c Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.cfg7
-rw-r--r--meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.scc2
-rw-r--r--meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton_%.bbappend4
3 files changed, 13 insertions, 0 deletions
diff --git a/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.cfg b/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.cfg
new file mode 100644
index 000000000..f5c01bed7
--- /dev/null
+++ b/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.cfg
@@ -0,0 +1,7 @@
+CONFIG_INPUT_KEYBOARD=y
+# CONFIG_INPUT_LEDS is not set
+# CONFIG_INPUT_MOUSDEV is not set
+CONFIG_INPUT_EVDEV=y
+# CONFIG_KEYBOARD_ATKBD is not set
+CONFIG_KEYBOARD_GPIO=y
+# CONFIG_INPUT_MOUSE is not set
diff --git a/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.scc b/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.scc
new file mode 100644
index 000000000..78961af7a
--- /dev/null
+++ b/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton/phosphor-gpio-keys.scc
@@ -0,0 +1,2 @@
+define KFEATURE_DESCRIPTION "Enable gpio-keys"
+kconf non-hardware phosphor-gpio-keys.cfg
diff --git a/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton_%.bbappend b/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton_%.bbappend
new file mode 100644
index 000000000..71e208cd4
--- /dev/null
+++ b/meta-phosphor/nuvoton-layer/recipes-kernel/linux/linux-nuvoton_%.bbappend
@@ -0,0 +1,4 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://phosphor-gpio-keys.scc"
+SRC_URI += "file://phosphor-gpio-keys.cfg"
OpenPOWER on IntegriCloud