[ifxmips] uboot only builds with gcc 3.4.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
28 define KernelPackage/w1/Depends
29 SUBMENU:=$(W1_MENU)
30 DEPENDS+=kmod-w1 $(1)
31 endef
32
33
34 #
35 # 1-wire masters
36 #
37 define KernelPackage/w1-master-gpio
38 $(call KernelPackage/w1/Depends,@GPIO_SUPPORT)
39 TITLE:=GPIO 1-wire bus master driver
40 KCONFIG:=CONFIG_W1_MASTER_GPIO
41 FILES:=$(W1_MASTERS_DIR)/w1-gpio.$(LINUX_KMOD_SUFFIX)
42 AUTOLOAD:=$(call AutoLoad,60,w1-gpio)
43 endef
44
45 define KernelPackage/w1-master-gpio/description
46 Kernel module for the GPIO 1-wire bus master driver
47 endef
48
49 $(eval $(call KernelPackage,w1-master-gpio))
50
51
52 #
53 # 1-wire slaves
54 #
55 define KernelPackage/w1-slave-therm
56 $(call KernelPackage/w1/Depends,)
57 TITLE:=Thermal family implementation
58 KCONFIG:=CONFIG_W1_SLAVE_THERM
59 FILES:=$(W1_SLAVES_DIR)/w1_therm.$(LINUX_KMOD_SUFFIX)
60 AUTOLOAD:=$(call AutoLoad,70,w1_therm)
61 endef
62
63 define KernelPackage/w1-slave-therm/description
64 Kernel module for 1-wire thermal sensors
65 endef
66
67 $(eval $(call KernelPackage,w1-slave-therm))
68
69
70 define KernelPackage/w1-slave-smem
71 $(call KernelPackage/w1/Depends,)
72 TITLE:=Simple 64bit memory family implementation
73 KCONFIG:=CONFIG_W1_SLAVE_SMEM
74 FILES:=$(W1_SLAVES_DIR)/w1_smem.$(LINUX_KMOD_SUFFIX)
75 AUTOLOAD:=$(call AutoLoad,70,w1_smem)
76 endef
77
78 define KernelPackage/w1-slave-smem/description
79 Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
80 endef
81
82 $(eval $(call KernelPackage,w1-slave-smem))
83
84 define KernelPackage/w1-slave-ds2433
85 $(call KernelPackage/w1/Depends,)
86 TITLE:=Simple 64bit memory family implementation
87 KCONFIG:= \
88 CONFIG_W1_SLAVE_DS2433 \
89 CONFIG_W1_SLAVE_DS2433_CRC=n
90 FILES:=$(W1_SLAVES_DIR)/w1_ds2433.$(LINUX_KMOD_SUFFIX)
91 AUTOLOAD:=$(call AutoLoad,70,w1_ds2433)
92 endef
93
94 define KernelPackage/w1-slave-ds2433/description
95 Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
96 endef
97
98 $(eval $(call KernelPackage,w1-slave-ds2433))
99
100
101 define KernelPackage/w1-slave-ds2760
102 $(call KernelPackage/w1/Depends,)
103 TITLE:=Dallas 2760 battery monitor chip (HP iPAQ & others)
104 KCONFIG:= \
105 CONFIG_W1_SLAVE_DS2760 \
106 CONFIG_W1_SLAVE_DS2433_CRC=n
107 FILES:=$(W1_SLAVES_DIR)/w1_ds2760.$(LINUX_KMOD_SUFFIX)
108 AUTOLOAD:=$(call AutoLoad,70,w1_ds2760)
109 endef
110
111 define KernelPackage/w1-slave-ds2760/description
112 Kernel module for 1-wire DS2760 battery monitor chip support
113 endef
114
115 $(eval $(call KernelPackage,w1-slave-ds2760))
This page took 0.046679 seconds and 5 git commands to generate.