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