2008-04-29 15:53:04 +00:00
|
|
|
#
|
2010-04-24 11:42:17 +00:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2008-04-29 15:53:04 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
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))
|
|
|
|
|
2010-01-22 08:18:04 +00:00
|
|
|
|
2010-04-24 11:42:17 +00:00
|
|
|
define AddDepends/w1
|
2008-04-29 15:53:04 +00:00
|
|
|
SUBMENU:=$(W1_MENU)
|
2010-01-22 08:18:04 +00:00
|
|
|
DEPENDS+=kmod-w1 $(1)
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# 1-wire masters
|
|
|
|
#
|
|
|
|
define KernelPackage/w1-master-gpio
|
|
|
|
TITLE:=GPIO 1-wire bus master driver
|
2010-04-29 04:04:19 +00:00
|
|
|
DEPENDS:=@GPIO_SUPPORT
|
2008-04-29 15:53:04 +00:00
|
|
|
KCONFIG:=CONFIG_W1_MASTER_GPIO
|
|
|
|
FILES:=$(W1_MASTERS_DIR)/w1-gpio.$(LINUX_KMOD_SUFFIX)
|
2008-04-29 18:13:32 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,w1-gpio)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/w1)
|
2008-04-29 15:53:04 +00:00
|
|
|
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
|
|
|
|
#
|
|
|
|
define KernelPackage/w1-slave-therm
|
|
|
|
TITLE:=Thermal family implementation
|
|
|
|
KCONFIG:=CONFIG_W1_SLAVE_THERM
|
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_therm.$(LINUX_KMOD_SUFFIX)
|
2008-04-29 18:13:32 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,w1_therm)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/w1)
|
2008-04-29 15:53:04 +00:00
|
|
|
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
|
|
|
|
TITLE:=Simple 64bit memory family implementation
|
|
|
|
KCONFIG:=CONFIG_W1_SLAVE_SMEM
|
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_smem.$(LINUX_KMOD_SUFFIX)
|
2008-04-29 18:13:32 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,w1_smem)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/w1)
|
2008-04-29 15:53:04 +00:00
|
|
|
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))
|
|
|
|
|
2010-04-29 04:04:19 +00:00
|
|
|
|
2008-04-29 15:53:04 +00:00
|
|
|
define KernelPackage/w1-slave-ds2433
|
|
|
|
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)
|
2008-04-29 18:13:32 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,w1_ds2433)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/w1)
|
2008-04-29 15:53:04 +00:00
|
|
|
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
|
|
|
|
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)
|
2008-04-29 18:13:32 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,w1_ds2760)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/w1)
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/w1-slave-ds2760/description
|
|
|
|
Kernel module for 1-wire DS2760 battery monitor chip support
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-slave-ds2760))
|