sunxi: add sunxi-ir module
[openwrt/openwrt.git] / target / linux / sunxi / modules.mk
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 define KernelPackage/rtc-sunxi
8 SUBMENU:=$(OTHER_MENU)
9 TITLE:=Sunxi SoC built-in RTC support
10 DEPENDS:=@TARGET_sunxi
11 $(call AddDepends/rtc)
12 KCONFIG:= \
13 CONFIG_RTC_CLASS=y \
14 CONFIG_RTC_DRV_SUNXI=m
15 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-sunxi.ko
16 AUTOLOAD:=$(call AutoLoad,50,rtc-sunxi)
17 endef
18
19 define KernelPackage/rtc-sunxi/description
20 Support for the AllWinner sunXi SoC's onboard RTC
21 endef
22
23 $(eval $(call KernelPackage,rtc-sunxi))
24
25 define KernelPackage/sunxi-ir
26 SUBMENU:=$(OTHER_MENU)
27 TITLE:=Sunxi SoC built-in IR support (A20)
28 DEPENDS:=@TARGET_sunxi +kmod-input-core
29 $(call AddDepends/rtc)
30 KCONFIG:= \
31 CONFIG_MEDIA_SUPPORT=y \
32 CONFIG_MEDIA_RC_SUPPORT=y \
33 CONFIG_RC_DEVICES=y \
34 CONFIG_IR_SUNXI
35 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
36 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
37 endef
38
39 define KernelPackage/sunxi-ir/description
40 Support for the AllWinner sunXi SoC's onboard IR (A20)
41 endef
42
43 $(eval $(call KernelPackage,sunxi-ir))
44
45 define KernelPackage/eeprom-sunxi
46 SUBMENU:=$(OTHER_MENU)
47 TITLE:=AllWinner Security ID fuse support
48 DEPENDS:=@TARGET_sunxi
49 KCONFIG:= \
50 CONFIG_EEPROM_SUNXI_SID
51 FILES:=$(LINUX_DIR)/drivers/misc/eeprom/sunxi_sid.ko
52 AUTOLOAD:=$(call AutoLoad,50,sunxi_sid)
53 endef
54
55 define KernelPackage/eeprom-sunxi/description
56 Support for the AllWinner Security ID fuse support
57 endef
58
59 $(eval $(call KernelPackage,eeprom-sunxi))
60
61 define KernelPackage/ata-sunxi
62 TITLE:=AllWinner sunXi AHCI SATA support
63 SUBMENU:=$(BLOCK_MENU)
64 DEPENDS:=@TARGET_sunxi +kmod-scsi-core
65 KCONFIG:=\
66 CONFIG_AHCI_SUNXI \
67 CONFIG_SATA_AHCI_PLATFORM
68 FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
69 AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
70 endef
71
72 define KernelPackage/ata-sunxi/description
73 SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
74 endef
75
76 $(eval $(call KernelPackage,ata-sunxi))
77
78 define KernelPackage/sun4i-emac
79 SUBMENU:=$(NETWORK_DEVICES_MENU)
80 TITLE:=AllWinner EMAC Ethernet support
81 DEPENDS:=@TARGET_sunxi
82 KCONFIG:=CONFIG_SUN4I_EMAC
83 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
84 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
85 endef
86
87 $(eval $(call KernelPackage,sun4i-emac))
88
89
90 define KernelPackage/wdt-sunxi
91 SUBMENU:=$(OTHER_MENU)
92 TITLE:=AllWinner sunXi Watchdog timer
93 DEPENDS:=@TARGET_sunxi
94 KCONFIG:=CONFIG_SUNXI_WATCHDOG
95 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sunxi_wdt.ko
96 AUTOLOAD:=$(call AutoLoad,51,sunxi_wdt)
97 endef
98
99 define KernelPackage/wdt-sunxi/description
100 Kernel module for AllWinner sunXi watchdog timer.
101 endef
102
103 $(eval $(call KernelPackage,wdt-sunxi))
104