2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 W1_MASTERS_DIR
:=$(LINUX_DIR
)/drivers
/w1
/masters
10 W1_SLAVES_DIR
:=$(LINUX_DIR
)/drivers
/w1
/slaves
12 define KernelPackage
/w1
14 TITLE
:=Dallas
's 1-wire support
16 FILES:=$(LINUX_DIR)/drivers/w1/wire.ko
17 AUTOLOAD:=$(call AutoLoad,50,wire)
20 define KernelPackage/w1/description
21 Kernel module for Dallas's
1-wire support
24 $(eval
$(call KernelPackage
,w1
))
36 define 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
)
45 define KernelPackage
/w1-master-gpio
/description
46 Kernel module for the GPIO
1-wire bus master driver
49 $(eval
$(call KernelPackage
,w1-master-gpio
))
51 define KernelPackage
/w1-master-ds2482
52 TITLE
:=DS2482
1-wire i2c bus master driver
53 KCONFIG
:=CONFIG_W1_MASTER_DS2482
54 FILES
:=$(W1_MASTERS_DIR
)/ds2482.ko
55 AUTOLOAD
:=$(call AutoLoad
,60,ds2482
)
56 $(call AddDepends
/w1
,+kmod-i2c-core
)
59 define KernelPackage
/w1-master-ds2482
/description
60 Kernel module for the DS2482 i2c
1-wire bus master driver
61 NOTE
: Init with
: echo ds2482
0x18 > /sys
/bus
/i2c
/devices
/i2c-0
/new_device
65 $(eval
$(call KernelPackage
,w1-master-ds2482
))
68 define KernelPackage
/w1-master-ds2490
69 TITLE
:=DS2490
1-wire usb bus master driver
70 DEPENDS
:=@USB_SUPPORT
+kmod-usb-core
71 KCONFIG
:=CONFIG_W1_MASTER_DS2490
72 FILES
:=$(W1_MASTERS_DIR
)/ds2490.ko
73 AUTOLOAD
:=$(call AutoLoad
,60,ds2490
)
77 define KernelPackage
/w1-master-ds2490
/description
78 Kernel module for the DS2490 usb
1-wire bus master driver
81 $(eval
$(call KernelPackage
,w1-master-ds2490
))
86 define KernelPackage
/w1-slave-therm
87 TITLE
:=Thermal family implementation
88 KCONFIG
:=CONFIG_W1_SLAVE_THERM
89 FILES
:=$(W1_SLAVES_DIR
)/w1_therm.ko
90 AUTOLOAD
:=$(call AutoLoad
,70,w1_therm
)
94 define KernelPackage
/w1-slave-therm
/description
95 Kernel module for
1-wire thermal sensors
98 $(eval
$(call KernelPackage
,w1-slave-therm
))
101 define KernelPackage
/w1-slave-smem
102 TITLE
:=Simple
64bit memory family implementation
103 KCONFIG
:=CONFIG_W1_SLAVE_SMEM
104 FILES
:=$(W1_SLAVES_DIR
)/w1_smem.ko
105 AUTOLOAD
:=$(call AutoLoad
,70,w1_smem
)
106 $(call AddDepends
/w1
)
109 define KernelPackage
/w1-slave-smem
/description
110 Kernel module for
1-wire simple
64bit memory rom
(ds2401
/ds2411
/ds1990
*)
113 $(eval
$(call KernelPackage
,w1-slave-smem
))
115 define KernelPackage
/w1-slave-ds2431
116 TITLE
:=DS2431
1kb EEPROM driver
117 KCONFIG
:= CONFIG_W1_SLAVE_DS2431
118 FILES
:=$(W1_SLAVES_DIR
)/w1_ds2431.ko
119 AUTOLOAD
:=$(call AutoLoad
,70,w1_ds2431
)
120 $(call AddDepends
/w1
)
123 define KernelPackage
/w1-slave-ds2431
/description
124 Kernel module for
1-wire
1kb EEPROM
(DS2431
)
127 $(eval
$(call KernelPackage
,w1-slave-ds2431
))
129 define KernelPackage
/w1-slave-ds2433
130 TITLE
:=Simple
64bit memory family implementation
132 CONFIG_W1_SLAVE_DS2433 \
133 CONFIG_W1_SLAVE_DS2433_CRC
=n
134 FILES
:=$(W1_SLAVES_DIR
)/w1_ds2433.ko
135 AUTOLOAD
:=$(call AutoLoad
,70,w1_ds2433
)
136 $(call AddDepends
/w1
)
139 define KernelPackage
/w1-slave-ds2433
/description
140 Kernel module for
1-wire simple
64bit memory rom
(ds2401
/ds2411
/ds1990
*)
143 $(eval
$(call KernelPackage
,w1-slave-ds2433
))
146 define KernelPackage
/w1-slave-ds2760
147 TITLE
:=Dallas
2760 battery monitor chip
(HP iPAQ
& others
)
149 CONFIG_W1_SLAVE_DS2760 \
150 CONFIG_W1_SLAVE_DS2433_CRC
=n
151 FILES
:=$(W1_SLAVES_DIR
)/w1_ds2760.ko
152 AUTOLOAD
:=$(call AutoLoad
,70,w1_ds2760
)
153 $(call AddDepends
/w1
)
156 define KernelPackage
/w1-slave-ds2760
/description
157 Kernel module for
1-wire DS2760 battery monitor chip support
160 $(eval
$(call KernelPackage
,w1-slave-ds2760
))