99f4db760446964bce5265c8d7cd0a942b8bbec0
[openwrt/openwrt.git] / target / linux / sunxi / modules.mk
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2013-2016 OpenWrt.org
4
5 define KernelPackage/rtc-sunxi
6 SUBMENU:=$(OTHER_MENU)
7 TITLE:=Sunxi SoC built-in RTC support
8 DEPENDS:=@TARGET_sunxi
9 $(call AddDepends/rtc)
10 KCONFIG:= \
11 CONFIG_RTC_DRV_SUNXI \
12 CONFIG_RTC_CLASS=y
13 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-sunxi.ko
14 AUTOLOAD:=$(call AutoLoad,50,rtc-sunxi)
15 endef
16
17 define KernelPackage/rtc-sunxi/description
18 Support for the AllWinner sunXi SoC's onboard RTC
19 endef
20
21 $(eval $(call KernelPackage,rtc-sunxi))
22
23 define KernelPackage/sunxi-ir
24 SUBMENU:=$(OTHER_MENU)
25 TITLE:=Sunxi SoC built-in IR support (A20)
26 DEPENDS:=@TARGET_sunxi +kmod-input-core
27 $(call AddDepends/rtc)
28 KCONFIG:= \
29 CONFIG_MEDIA_SUPPORT=y \
30 CONFIG_MEDIA_RC_SUPPORT=y \
31 CONFIG_RC_DEVICES=y \
32 CONFIG_IR_SUNXI
33 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
34 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
35 endef
36
37 define KernelPackage/sunxi-ir/description
38 Support for the AllWinner sunXi SoC's onboard IR (A20)
39 endef
40
41 $(eval $(call KernelPackage,sunxi-ir))
42
43 define KernelPackage/ata-sunxi
44 TITLE:=AllWinner sunXi AHCI SATA support
45 SUBMENU:=$(BLOCK_MENU)
46 DEPENDS:=@TARGET_sunxi +kmod-ata-ahci-platform +kmod-scsi-core
47 KCONFIG:=CONFIG_AHCI_SUNXI
48 FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
49 AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
50 endef
51
52 define KernelPackage/ata-sunxi/description
53 SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
54 endef
55
56 $(eval $(call KernelPackage,ata-sunxi))
57
58 define KernelPackage/sun4i-emac
59 SUBMENU:=$(NETWORK_DEVICES_MENU)
60 TITLE:=AllWinner EMAC Ethernet support
61 DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
62 KCONFIG:=CONFIG_SUN4I_EMAC
63 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
64 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
65 endef
66
67 $(eval $(call KernelPackage,sun4i-emac))
68
69 define KernelPackage/sound-soc-sunxi
70 TITLE:=AllWinner built-in SoC sound support
71 KCONFIG:=CONFIG_SND_SUN4I_CODEC
72 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
73 AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
74 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
75 $(call AddDepends/sound)
76 endef
77
78 define KernelPackage/sound-soc-sunxi/description
79 Kernel support for AllWinner built-in SoC audio
80 endef
81
82 $(eval $(call KernelPackage,sound-soc-sunxi))
83
84 define KernelPackage/sound-soc-sunxi-spdif
85 TITLE:=Allwinner A10 SPDIF Support
86 KCONFIG:=CONFIG_SND_SUN4I_SPDIF
87 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
88 AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
89 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
90 $(call AddDepends/sound)
91 endef
92
93 define KernelPackage/sound-soc-sunxi-spdif/description
94 Kernel support for Allwinner A10 SPDIF Support
95 endef
96
97 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))