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
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/w1/wire.ko
|
2020-01-05 13:35:15 +00:00
|
|
|
DEPENDS:=+kmod-hwmon-core
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/w1/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for Dallas's 1-wire support
|
2008-04-29 15:53:04 +00:00
|
|
|
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
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(W1_MASTERS_DIR)/w1-gpio.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,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
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for the GPIO 1-wire bus master driver
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-master-gpio))
|
|
|
|
|
2011-08-16 20:33:55 +00:00
|
|
|
define KernelPackage/w1-master-ds2482
|
|
|
|
TITLE:=DS2482 1-wire i2c bus master driver
|
|
|
|
KCONFIG:=CONFIG_W1_MASTER_DS2482
|
|
|
|
FILES:=$(W1_MASTERS_DIR)/ds2482.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,ds2482)
|
2011-08-16 20:33:55 +00:00
|
|
|
$(call AddDepends/w1,+kmod-i2c-core)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/w1-master-ds2482/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for the DS2482 i2c 1-wire bus master driver
|
|
|
|
NOTE: Init with: echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-0/new_device
|
|
|
|
or use owfs
|
2011-08-16 20:33:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-master-ds2482))
|
|
|
|
|
|
|
|
|
2011-02-02 18:17:04 +00:00
|
|
|
define KernelPackage/w1-master-ds2490
|
|
|
|
TITLE:=DS2490 1-wire usb bus master driver
|
|
|
|
DEPENDS:=@USB_SUPPORT +kmod-usb-core
|
|
|
|
KCONFIG:=CONFIG_W1_MASTER_DS2490
|
|
|
|
FILES:=$(W1_MASTERS_DIR)/ds2490.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,ds2490)
|
2011-02-02 18:17:04 +00:00
|
|
|
$(call AddDepends/w1)
|
|
|
|
endef
|
2013-02-20 09:41:48 +00:00
|
|
|
|
2011-02-02 18:17:04 +00:00
|
|
|
define KernelPackage/w1-master-ds2490/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for the DS2490 usb 1-wire bus master driver
|
2011-02-02 18:17:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-master-ds2490))
|
2008-04-29 15:53:04 +00:00
|
|
|
|
2013-10-29 02:52:17 +00:00
|
|
|
|
|
|
|
define KernelPackage/w1-master-mxc
|
|
|
|
TITLE:=Freescale MXC 1-wire busmaster
|
2021-03-28 15:07:02 +00:00
|
|
|
DEPENDS:=@TARGET_imx
|
2013-10-29 02:52:17 +00:00
|
|
|
KCONFIG:=CONFIG_W1_MASTER_MXC
|
|
|
|
FILES:=$(W1_MASTERS_DIR)/mxc_w1.ko
|
|
|
|
AUTOLOAD:=$(call AutoProbe,mxc_w1)
|
|
|
|
$(call AddDepends/w1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/w1-master-mxc/description
|
|
|
|
Kernel module for 1-wire Freescale MXC 1-wire busmaster
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-master-mxc))
|
|
|
|
|
|
|
|
|
2008-04-29 15:53:04 +00:00
|
|
|
#
|
|
|
|
# 1-wire slaves
|
|
|
|
#
|
|
|
|
define KernelPackage/w1-slave-therm
|
|
|
|
TITLE:=Thermal family implementation
|
|
|
|
KCONFIG:=CONFIG_W1_SLAVE_THERM
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_therm.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,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
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for 1-wire thermal sensors
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-slave-therm))
|
|
|
|
|
|
|
|
|
|
|
|
define KernelPackage/w1-slave-smem
|
|
|
|
TITLE:=Simple 64bit memory family implementation
|
|
|
|
KCONFIG:=CONFIG_W1_SLAVE_SMEM
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_smem.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,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
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-slave-smem))
|
|
|
|
|
2012-03-18 19:49:19 +00:00
|
|
|
define KernelPackage/w1-slave-ds2431
|
|
|
|
TITLE:=DS2431 1kb EEPROM driver
|
|
|
|
KCONFIG:= CONFIG_W1_SLAVE_DS2431
|
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_ds2431.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,w1_ds2431)
|
2012-03-18 19:49:19 +00:00
|
|
|
$(call AddDepends/w1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/w1-slave-ds2431/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for 1-wire 1kb EEPROM (DS2431)
|
2012-03-18 19:49:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-slave-ds2431))
|
2010-04-29 04:04:19 +00:00
|
|
|
|
2008-04-29 15:53:04 +00:00
|
|
|
define KernelPackage/w1-slave-ds2433
|
2012-03-18 19:49:21 +00:00
|
|
|
TITLE:=DS2433 4kb EEPROM driver
|
2008-04-29 15:53:04 +00:00
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_W1_SLAVE_DS2433 \
|
|
|
|
CONFIG_W1_SLAVE_DS2433_CRC=n
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_ds2433.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,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
|
2013-07-26 01:09:50 +00:00
|
|
|
Kernel module for 1-wire 4kb EEPROM (DS2433)
|
2008-04-29 15:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-slave-ds2433))
|
|
|
|
|
|
|
|
|
2015-01-17 13:58:09 +00:00
|
|
|
define KernelPackage/w1-slave-ds2413
|
|
|
|
TITLE:=DS2413 2 Ch. Addressable Switch
|
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_W1_SLAVE_DS2413
|
|
|
|
FILES:=$(W1_SLAVES_DIR)/w1_ds2413.ko
|
|
|
|
AUTOLOAD:=$(call AutoProbe,w1_ds2413)
|
|
|
|
$(call AddDepends/w1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/w1-slave-ds2413/description
|
|
|
|
Kernel module for 1-wire DS2413 Dual Channel Addressable Switch support
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,w1-slave-ds2413))
|