sunxi: clean up modules definitions
[openwrt/openwrt.git] / target / linux / sunxi / modules.mk
1 #
2 # Copyright (C) 2013-2016 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/ata-sunxi
46 TITLE:=AllWinner sunXi AHCI SATA support
47 SUBMENU:=$(BLOCK_MENU)
48 DEPENDS:=@TARGET_sunxi +kmod-ata-ahci-platform +kmod-scsi-core
49 KCONFIG:=CONFIG_AHCI_SUNXI
50 FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
51 AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
52 endef
53
54 define KernelPackage/ata-sunxi/description
55 SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
56 endef
57
58 $(eval $(call KernelPackage,ata-sunxi))
59
60 define KernelPackage/sun4i-emac
61 SUBMENU:=$(NETWORK_DEVICES_MENU)
62 TITLE:=AllWinner EMAC Ethernet support
63 DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
64 KCONFIG:=CONFIG_SUN4I_EMAC
65 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
66 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
67 endef
68
69 $(eval $(call KernelPackage,sun4i-emac))
70
71
72 define KernelPackage/sound-soc-sunxi
73 TITLE:=AllWinner built-in SoC sound support
74 KCONFIG:=CONFIG_SND_SUN4I_CODEC
75 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
76 AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
77 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
78 $(call AddDepends/sound)
79 endef
80
81 define KernelPackage/sound-soc-sunxi/description
82 Kernel support for AllWinner built-in SoC audio
83 endef
84
85 $(eval $(call KernelPackage,sound-soc-sunxi))