diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-04-29 15:53:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-04-29 15:53:04 +0000 |
commit | 9a3fa80e0d55fdc03a717c4010ed47f619232869 (patch) | |
tree | 2ee9e1e967aa40027938c3da4a48bd82bd8f71e8 /package | |
parent | 9ede01f217e5610bd5377f41c18cb924ca2fef2e (diff) | |
download | mtk-20170518-9a3fa80e0d55fdc03a717c4010ed47f619232869.zip mtk-20170518-9a3fa80e0d55fdc03a717c4010ed47f619232869.tar.gz mtk-20170518-9a3fa80e0d55fdc03a717c4010ed47f619232869.tar.bz2 |
add Dallas's 1-wire related packages
SVN-Revision: 10977
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/modules/w1.mk | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/package/kernel/modules/w1.mk b/package/kernel/modules/w1.mk new file mode 100644 index 0000000..0e75742 --- /dev/null +++ b/package/kernel/modules/w1.mk @@ -0,0 +1,116 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +W1_MENU:=W1 support +W1_MASTERS_DIR:=$(LINUX_DIR)/drivers/w1/masters +W1_SLAVES_DIR:=$(LINUX_DIR)/drivers/w1/slaves + +define KernelPackage/w1 + SUBMENU:=$(W1_MENU) + TITLE:=Dallas's 1-wire support + DEPENDS:=@LINUX_2_6 + KCONFIG:=CONFIG_W1 + FILES:=$(LINUX_DIR)/drivers/w1/wire.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,50,wire) +endef + +define KernelPackage/w1/description + Kernel module for Dallas's 1-wire support +endef + +$(eval $(call KernelPackage,w1)) + +define w1dep + SUBMENU:=$(W1_MENU) + DEPENDS:=kmod-w1 $(1) +endef + + +# +# 1-wire masters +# +define KernelPackage/w1-master-gpio + $(call w1dep,@GPIO_SUPPORT) + TITLE:=GPIO 1-wire bus master driver + KCONFIG:=CONFIG_W1_MASTER_GPIO + FILES:=$(W1_MASTERS_DIR)/w1-gpio.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,51,w1-gpio) +endef + +define KernelPackage/w1-master-gpio/description + Kernel module for the GPIO 1-wire bus master driver +endef + +$(eval $(call KernelPackage,w1-master-gpio)) + + +# +# 1-wire slaves +# +ifeq (1,1) +define KernelPackage/w1-slave-therm + $(call w1dep,) + TITLE:=Thermal family implementation + KCONFIG:=CONFIG_W1_SLAVE_THERM + FILES:=$(W1_SLAVES_DIR)/w1_therm.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,52,w1_therm) +endef + +define KernelPackage/w1-slave-therm/description + Kernel module for 1-wire thermal sensors +endef + +$(eval $(call KernelPackage,w1-slave-therm)) + + +define KernelPackage/w1-slave-smem + $(call w1dep,) + TITLE:=Simple 64bit memory family implementation + KCONFIG:=CONFIG_W1_SLAVE_SMEM + FILES:=$(W1_SLAVES_DIR)/w1_smem.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,52,w1_smem) +endef + +define KernelPackage/w1-slave-smem/description + Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*) +endef + +$(eval $(call KernelPackage,w1-slave-smem)) + +define KernelPackage/w1-slave-ds2433 + $(call w1dep,) + TITLE:=Simple 64bit memory family implementation + KCONFIG:= \ + CONFIG_W1_SLAVE_DS2433 \ + CONFIG_W1_SLAVE_DS2433_CRC=n + FILES:=$(W1_SLAVES_DIR)/w1_ds2433.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,52,w1_ds2433) +endef + +define KernelPackage/w1-slave-ds2433/description + Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*) +endef + +$(eval $(call KernelPackage,w1-slave-ds2433)) + + +define KernelPackage/w1-slave-ds2760 + $(call w1dep,) + TITLE:=Dallas 2760 battery monitor chip (HP iPAQ & others) + KCONFIG:= \ + CONFIG_W1_SLAVE_DS2760 \ + CONFIG_W1_SLAVE_DS2433_CRC=n + FILES:=$(W1_SLAVES_DIR)/w1_ds2760.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,52,w1_ds2760) +endef + +define KernelPackage/w1-slave-ds2760/description + Kernel module for 1-wire DS2760 battery monitor chip support +endef + +$(eval $(call KernelPackage,w1-slave-ds2760)) +endif
\ No newline at end of file |