at91: AT91SAM9G20-EK fixes
[openwrt/svn-archive/archive.git] / target / linux / at91 / modules.mk
1 #
2 # Copyright (C) 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
8 define KernelPackage/mmc-at91
9 SUBMENU:=$(OTHER_MENU)
10 TITLE:=MMC/SD Card Support on AT91
11 DEPENDS:=@TARGET_at91 +kmod-mmc
12 KCONFIG:=CONFIG_MMC_AT91
13 FILES:=$(LINUX_DIR)/drivers/mmc/host/at91_mci.ko
14 AUTOLOAD:=$(call AutoLoad,90,at91_mci,1)
15 endef
16
17 define KernelPackage/mmc-at91/description
18 Kernel support for MMC/SD cards on the AT91 target
19 endef
20
21 $(eval $(call KernelPackage,mmc-at91))
22
23 define KernelPackage/pwm-atmel
24 SUBMENU:=$(OTHER_MENU)
25 TITLE:=PWM on atmel SoC
26 DEPENDS:=@TARGET_at91
27 KCONFIG:=CONFIG_ATMEL_PWM
28 FILES:=$(LINUX_DIR)/drivers/misc/atmel_pwm.ko
29 AUTOLOAD:=$(call AutoLoad,51,atmel_pwm)
30 endef
31
32 define KernelPackage/pwm-atmel/description
33 Kernel module to use the PWM channel on ATMEL SoC
34 endef
35
36 $(eval $(call KernelPackage,pwm-atmel))
37
38 define KernelPackage/at91-adc
39 SUBMENU:=$(OTHER_MENU)
40 TITLE:=ADC on atmel SoC
41 DEPENDS:=@TARGET_at91 +kmod-iio-core
42 KCONFIG:=CONFIG_AT91_ADC
43 FILES:=$(LINUX_DIR)/drivers/iio/adc/at91_adc.ko
44 AUTOLOAD:=$(call AutoLoad,40,at91_adc)
45 endef
46
47 define KernelPackage/at91-adc/description
48 Kernel module to use the ADC channels of SoC
49 endef
50
51 $(eval $(call KernelPackage,at91-adc))
52
53
54 I2C_AT91_MODULES:=\
55 CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91
56
57 define KernelPackage/at91-i2c
58 $(call i2c_defaults,$(I2C_AT91_MODULES),55)
59 TITLE:=I2C (TWI) master driver for Atmel AT91
60 DEPENDS:=@TARGET_at91 +kmod-i2c-core
61 endef
62
63 define KernelPackage/at91-i2c/description
64 Kernel module to use the I2C (TWI) master driver for Atmel AT91
65 endef
66
67 $(eval $(call KernelPackage,at91-i2c))
68