kernel: add kmod-mcp23s08 package
authorJonas Gorski <jogo@openwrt.org>
Tue, 23 Apr 2013 09:21:55 +0000 (09:21 +0000)
committerJonas Gorski <jogo@openwrt.org>
Tue, 23 Apr 2013 09:21:55 +0000 (09:21 +0000)
Package up the Microchip MCP23S08 I/O expander driver. Needed on the
CalAmp LMU5000 board.

Signed-off-by: Adam Porter <porter.adam@gmail.com>
[jogo@openwrt.org: fix subject]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36393

package/kernel/modules/other.mk

index d1c21572d53ed17408de301b65d7a131b028758b..f282014a30637a05e694654185152b403e76bc49 100644 (file)
@@ -132,6 +132,22 @@ endef
 $(eval $(call KernelPackage,gpio-dev))
 
 
+define KernelPackage/gpio-mcp23s08
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Microchip MCP23xxx I/O expander
+  DEPENDS:=@GPIO_SUPPORT
+  KCONFIG:=CONFIG_GPIO_MCP23S08
+  FILES:=$(LINUX_DIR)/drivers/gpio/gpio-mcp23s08.ko
+  AUTOLOAD:=$(call AutoLoad,40,gpio-mcp23s08)
+endef
+
+define KernelPackage/gpio-mcp23s08/description
+  Kernel module for Microchip MCP23xxx SPI/I2C I/O expander
+endef
+
+$(eval $(call KernelPackage,gpio-mcp23s08))
+
+
 define KernelPackage/gpio-nxp-74hc164
   SUBMENU:=$(OTHER_MENU)
   TITLE:=NXP 74HC164 GPIO expander support