fix pdc20xx compile for linux 2.6
[openwrt.git] / package / kernel / modules / w1.mk
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 W1_MENU:=W1 support
9 W1_MASTERS_DIR:=$(LINUX_DIR)/drivers/w1/masters
10 W1_SLAVES_DIR:=$(LINUX_DIR)/drivers/w1/slaves
11
12 define KernelPackage/w1
13 SUBMENU:=$(W1_MENU)
14 TITLE:=Dallas's 1-wire support
15 DEPENDS:=@LINUX_2_6
16 KCONFIG:=CONFIG_W1
17 FILES:=$(LINUX_DIR)/drivers/w1/wire.$(LINUX_KMOD_SUFFIX)
18 AUTOLOAD:=$(call AutoLoad,50,wire)
19 endef
20
21 define KernelPackage/w1/description
22 Kernel module for Dallas's 1-wire support
23 endef
24
25 $(eval $(call KernelPackage,w1))
26
27 define w1dep
28 SUBMENU:=$(W1_MENU)
29 DEPENDS:=kmod-w1 $(1)
30 endef
31
32
33 #
34 # 1-wire masters
35 #
36 define KernelPackage/w1-master-gpio
37 $(call w1dep,@GPIO_SUPPORT)
38 TITLE:=GPIO 1-wire bus master driver
39 KCONFIG:=CONFIG_W1_MASTER_GPIO
40 FILES:=$(W1_MASTERS_DIR)/w1-gpio.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call AutoLoad,60,w1-gpio)
42 endef
43
44 define KernelPackage/w1-master-gpio/description
45 Kernel module for the GPIO 1-wire bus master driver
46 endef
47
48 $(eval $(call KernelPackage,w1-master-gpio))
49
50
51 #
52 # 1-wire slaves
53 #
54 define KernelPackage/w1-slave-therm
55 $(call w1dep,)
56 TITLE:=Thermal family implementation
57 KCONFIG:=CONFIG_W1_SLAVE_THERM
58 FILES:=$(W1_SLAVES_DIR)/w1_therm.$(LINUX_KMOD_SUFFIX)
59 AUTOLOAD:=$(call AutoLoad,70,w1_therm)
60 endef
61
62 define KernelPackage/w1-slave-therm/description
63 Kernel module for 1-wire thermal sensors
64 endef
65
66 $(eval $(call KernelPackage,w1-slave-therm))
67
68
69 define KernelPackage/w1-slave-smem
70 $(call w1dep,)
71 TITLE:=Simple 64bit memory family implementation
72 KCONFIG:=CONFIG_W1_SLAVE_SMEM
73 FILES:=$(W1_SLAVES_DIR)/w1_smem.$(LINUX_KMOD_SUFFIX)
74 AUTOLOAD:=$(call AutoLoad,70,w1_smem)
75 endef
76
77 define KernelPackage/w1-slave-smem/description
78 Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
79 endef
80
81 $(eval $(call KernelPackage,w1-slave-smem))
82
83 define KernelPackage/w1-slave-ds2433
84 $(call w1dep,)
85 TITLE:=Simple 64bit memory family implementation
86 KCONFIG:= \
87 CONFIG_W1_SLAVE_DS2433 \
88 CONFIG_W1_SLAVE_DS2433_CRC=n
89 FILES:=$(W1_SLAVES_DIR)/w1_ds2433.$(LINUX_KMOD_SUFFIX)
90 AUTOLOAD:=$(call AutoLoad,70,w1_ds2433)
91 endef
92
93 define KernelPackage/w1-slave-ds2433/description
94 Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
95 endef
96
97 $(eval $(call KernelPackage,w1-slave-ds2433))
98
99
100 define KernelPackage/w1-slave-ds2760
101 $(call w1dep,)
102 TITLE:=Dallas 2760 battery monitor chip (HP iPAQ & others)
103 KCONFIG:= \
104 CONFIG_W1_SLAVE_DS2760 \
105 CONFIG_W1_SLAVE_DS2433_CRC=n
106 FILES:=$(W1_SLAVES_DIR)/w1_ds2760.$(LINUX_KMOD_SUFFIX)
107 AUTOLOAD:=$(call AutoLoad,70,w1_ds2760)
108 endef
109
110 define KernelPackage/w1-slave-ds2760/description
111 Kernel module for 1-wire DS2760 battery monitor chip support
112 endef
113
114 $(eval $(call KernelPackage,w1-slave-ds2760))
This page took 0.064701 seconds and 5 git commands to generate.