source: trunk/package/kernel/modules/w1.mk @ 25311

Last change on this file since 25311 was 25311, checked in by acinonyx, 6 years ago

[package] kernel/modules: Add w1-master-ds2490 module (#8779)

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
1#
2# Copyright (C) 2008-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8W1_MENU:=W1 support
9W1_MASTERS_DIR:=$(LINUX_DIR)/drivers/w1/masters
10W1_SLAVES_DIR:=$(LINUX_DIR)/drivers/w1/slaves
11
12define KernelPackage/w1
13  SUBMENU:=$(W1_MENU)
14  TITLE:=Dallas's 1-wire support
15  KCONFIG:=CONFIG_W1
16  FILES:=$(LINUX_DIR)/drivers/w1/wire.ko
17  AUTOLOAD:=$(call AutoLoad,50,wire)
18endef
19
20define KernelPackage/w1/description
21  Kernel module for Dallas's 1-wire support
22endef
23
24$(eval $(call KernelPackage,w1))
25
26
27define AddDepends/w1
28  SUBMENU:=$(W1_MENU)
29  DEPENDS+=kmod-w1 $(1)
30endef
31
32
33#
34# 1-wire masters
35#
36define KernelPackage/w1-master-gpio
37  TITLE:=GPIO 1-wire bus master driver
38  DEPENDS:=@GPIO_SUPPORT
39  KCONFIG:=CONFIG_W1_MASTER_GPIO
40  FILES:=$(W1_MASTERS_DIR)/w1-gpio.ko
41  AUTOLOAD:=$(call AutoLoad,60,w1-gpio)
42  $(call AddDepends/w1)
43endef
44
45define KernelPackage/w1-master-gpio/description
46  Kernel module for the GPIO 1-wire bus master driver
47endef
48
49$(eval $(call KernelPackage,w1-master-gpio))
50
51define KernelPackage/w1-master-ds2490
52  TITLE:=DS2490 1-wire usb bus master driver
53  DEPENDS:=@USB_SUPPORT +kmod-usb-core
54  KCONFIG:=CONFIG_W1_MASTER_DS2490
55  FILES:=$(W1_MASTERS_DIR)/ds2490.ko
56  AUTOLOAD:=$(call AutoLoad,60,ds2490)
57  $(call AddDepends/w1)
58endef
59 
60define KernelPackage/w1-master-ds2490/description
61  Kernel module for the DS2490 usb 1-wire bus master driver
62endef
63
64$(eval $(call KernelPackage,w1-master-ds2490))
65
66#
67# 1-wire slaves
68#
69define KernelPackage/w1-slave-therm
70  TITLE:=Thermal family implementation
71  KCONFIG:=CONFIG_W1_SLAVE_THERM
72  FILES:=$(W1_SLAVES_DIR)/w1_therm.ko
73  AUTOLOAD:=$(call AutoLoad,70,w1_therm)
74  $(call AddDepends/w1)
75endef
76
77define KernelPackage/w1-slave-therm/description
78  Kernel module for 1-wire thermal sensors
79endef
80
81$(eval $(call KernelPackage,w1-slave-therm))
82
83
84define KernelPackage/w1-slave-smem
85  TITLE:=Simple 64bit memory family implementation
86  KCONFIG:=CONFIG_W1_SLAVE_SMEM
87  FILES:=$(W1_SLAVES_DIR)/w1_smem.ko
88  AUTOLOAD:=$(call AutoLoad,70,w1_smem)
89  $(call AddDepends/w1)
90endef
91
92define KernelPackage/w1-slave-smem/description
93  Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
94endef
95
96$(eval $(call KernelPackage,w1-slave-smem))
97
98
99define KernelPackage/w1-slave-ds2433
100  TITLE:=Simple 64bit memory family implementation
101  KCONFIG:= \
102        CONFIG_W1_SLAVE_DS2433 \
103        CONFIG_W1_SLAVE_DS2433_CRC=n
104  FILES:=$(W1_SLAVES_DIR)/w1_ds2433.ko
105  AUTOLOAD:=$(call AutoLoad,70,w1_ds2433)
106  $(call AddDepends/w1)
107endef
108
109define KernelPackage/w1-slave-ds2433/description
110  Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
111endef
112
113$(eval $(call KernelPackage,w1-slave-ds2433))
114
115
116define KernelPackage/w1-slave-ds2760
117  TITLE:=Dallas 2760 battery monitor chip (HP iPAQ & others)
118  KCONFIG:= \
119        CONFIG_W1_SLAVE_DS2760 \
120        CONFIG_W1_SLAVE_DS2433_CRC=n
121  FILES:=$(W1_SLAVES_DIR)/w1_ds2760.ko
122  AUTOLOAD:=$(call AutoLoad,70,w1_ds2760)
123  $(call AddDepends/w1)
124endef
125
126define KernelPackage/w1-slave-ds2760/description
127  Kernel module for 1-wire DS2760 battery monitor chip support
128endef
129
130$(eval $(call KernelPackage,w1-slave-ds2760))
Note: See TracBrowser for help on using the repository browser.