aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/gpio-nxp-74hc153/Makefile
diff options
context:
space:
mode:
authorMauri Sandberg <sandberg@mailfence.com>2020-05-21 09:59:52 +0300
committerPetr Štetiar <ynezz@true.cz>2021-03-22 09:23:10 +0100
commit6a6f9e73dd65f9201bee911d2fae8595f86c093b (patch)
tree1046767af96efc7e32909a17be96b7d3809e5a70 /package/kernel/gpio-nxp-74hc153/Makefile
parenta49fd9db0a2bfad8ea9a09f32fadbd3cc7e46205 (diff)
downloadupstream-6a6f9e73dd65f9201bee911d2fae8595f86c093b.tar.gz
upstream-6a6f9e73dd65f9201bee911d2fae8595f86c093b.tar.bz2
upstream-6a6f9e73dd65f9201bee911d2fae8595f86c093b.zip
packages: kernel: add gpio-nxp-74hc153
NXP 74HC153 is a GPIO expander. Its original source cide sits in ar71xx architecture tree. It has been slightly modified to get GPIO pin configuration from the device tree rather than a MACH file. Changes to the source file: - Remove struct nxp_74hc153_config - in nxp_74hc153_probe(), fetch GPIO configuration from device tree - allow GPIO framework decide the base number by passing -1 to it - remove support for kernel versions below 4.5.0 - add OF device compatibility string Create a package for inclusion in image. References: https://lore.kernel.org/linux-gpio/545111184.50061.1615922388276@ichabod.co-bxl/ Signed-off-by: Mauri Sandberg <sandberg@mailfence.com> [added link to driver usptreaming work in progress] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/kernel/gpio-nxp-74hc153/Makefile')
-rw-r--r--package/kernel/gpio-nxp-74hc153/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/kernel/gpio-nxp-74hc153/Makefile b/package/kernel/gpio-nxp-74hc153/Makefile
new file mode 100644
index 0000000000..e275a9a856
--- /dev/null
+++ b/package/kernel/gpio-nxp-74hc153/Makefile
@@ -0,0 +1,35 @@
+#
+# Copyright (C) 2020 Mauri Sandberg <sandberg@mailfence.com>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=gpio-nxp-74hc153
+PKG_RELEASE:=1
+PKG_LICENSE:=GPL-2.0
+
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/gpio-nxp-74hc153
+ SUBMENU:=Other modules
+ TITLE:= NXP 74HC153 GPIO expander
+ FILES:=$(PKG_BUILD_DIR)/gpio-nxp-74hc153.ko
+ AUTOLOAD:=$(call AutoLoad,30,gpio-nxp-74hc153,1)
+ KCONFIG:=
+ DEPENDS:= @GPIO_SUPPORT @TARGET_ath79
+endef
+
+define KernelPackage/gpio-nxp-74hc153/description
+ Platform driver for NXP 74HC153 Dual 4-input Multiplexer.
+ This provides a GPIO interface supporting input mode only.
+endef
+
+define Build/Compile
+ $(KERNEL_MAKE) M=$(PKG_BUILD_DIR) modules
+endef
+
+$(eval $(call KernelPackage,gpio-nxp-74hc153))