8bbafe98a7b13be352de302e646d4d009d1c55b5
[openwrt/staging/pepe2k.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
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_RC_CORE=y \
31 CONFIG_IR_SUNXI
32 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
33 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
34 endef
35
36 define KernelPackage/sunxi-ir/description
37 Support for the AllWinner sunXi SoC's onboard IR
38 endef
39
40 $(eval $(call KernelPackage,sunxi-ir))
41
42 define KernelPackage/ata-sunxi
43 TITLE:=AllWinner sunXi AHCI SATA support
44 SUBMENU:=$(BLOCK_MENU)
45 DEPENDS:=@TARGET_sunxi +kmod-ata-ahci-platform +kmod-scsi-core
46 KCONFIG:=CONFIG_AHCI_SUNXI
47 FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
48 AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
49 endef
50
51 define KernelPackage/ata-sunxi/description
52 SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
53 endef
54
55 $(eval $(call KernelPackage,ata-sunxi))
56
57 define KernelPackage/sun4i-emac
58 SUBMENU:=$(NETWORK_DEVICES_MENU)
59 TITLE:=AllWinner EMAC Ethernet support
60 DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
61 KCONFIG:=CONFIG_SUN4I_EMAC
62 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
63 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
64 endef
65
66 $(eval $(call KernelPackage,sun4i-emac))
67
68 define KernelPackage/sound-soc-sunxi
69 TITLE:=AllWinner built-in SoC sound support
70 KCONFIG:=CONFIG_SND_SUN4I_CODEC
71 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
72 AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
73 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
74 $(call AddDepends/sound)
75 endef
76
77 define KernelPackage/sound-soc-sunxi/description
78 Kernel support for AllWinner built-in SoC audio
79 endef
80
81 $(eval $(call KernelPackage,sound-soc-sunxi))
82
83 define KernelPackage/sound-soc-sunxi-spdif
84 TITLE:=Allwinner A10 SPDIF Support
85 KCONFIG:=CONFIG_SND_SUN4I_SPDIF
86 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
87 AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
88 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
89 $(call AddDepends/sound)
90 endef
91
92 define KernelPackage/sound-soc-sunxi-spdif/description
93 Kernel support for Allwinner A10 SPDIF Support
94 endef
95
96 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))