sunxi: add modules for AC100 MFD and RTC
[openwrt/staging/nbd.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/mfd-ac100
6 SUBMENU:=$(OTHER_MENU)
7 TITLE:=X-Powers AC100 MFD support
8 DEPENDS:=@TARGET_sunxi
9 KCONFIG:= \
10 CONFIG_MFD_AC100
11 FILES:=$(LINUX_DIR)/drivers/mfd/ac100.ko
12 AUTOLOAD:=$(call AutoLoad,50,ac100)
13 endef
14
15 define KernelPackage/mfd-ac100/description
16 Support for the X-Powers AC100 RTC/audio chip
17 endef
18
19 $(eval $(call KernelPackage,mfd-ac100))
20
21 define KernelPackage/rtc-ac100
22 SUBMENU:=$(OTHER_MENU)
23 TITLE:=X-Powers AC100 RTC support
24 DEPENDS:=@TARGET_sunxi +kmod-mfd-ac100
25 $(call AddDepends/rtc)
26 KCONFIG:= \
27 CONFIG_RTC_DRV_AC100 \
28 CONFIG_RTC_CLASS=y
29 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ac100.ko
30 AUTOLOAD:=$(call AutoLoad,50,rtc-ac100)
31 endef
32
33 define KernelPackage/rtc-ac100/description
34 Support for the X-Powers AC100 RTC
35 endef
36
37 $(eval $(call KernelPackage,rtc-ac100))
38
39 define KernelPackage/rtc-sunxi
40 SUBMENU:=$(OTHER_MENU)
41 TITLE:=Sunxi SoC built-in RTC support
42 DEPENDS:=@(TARGET_sunxi&&RTC_SUPPORT)
43 KCONFIG:= \
44 CONFIG_RTC_DRV_SUNXI \
45 CONFIG_RTC_CLASS=y
46 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-sunxi.ko
47 AUTOLOAD:=$(call AutoLoad,50,rtc-sunxi)
48 endef
49
50 define KernelPackage/rtc-sunxi/description
51 Support for the AllWinner sunXi SoC's onboard RTC
52 endef
53
54 $(eval $(call KernelPackage,rtc-sunxi))
55
56 define KernelPackage/sunxi-ir
57 SUBMENU:=$(OTHER_MENU)
58 TITLE:=Sunxi SoC built-in IR support
59 DEPENDS:=@(TARGET_sunxi&&RTC_SUPPORT) +kmod-input-core
60 KCONFIG:= \
61 CONFIG_MEDIA_SUPPORT=y \
62 CONFIG_MEDIA_RC_SUPPORT=y \
63 CONFIG_RC_DEVICES=y \
64 CONFIG_RC_CORE=y \
65 CONFIG_IR_SUNXI
66 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
67 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
68 endef
69
70 define KernelPackage/sunxi-ir/description
71 Support for the AllWinner sunXi SoC's onboard IR
72 endef
73
74 $(eval $(call KernelPackage,sunxi-ir))
75
76 define KernelPackage/ata-sunxi
77 TITLE:=AllWinner sunXi AHCI SATA support
78 SUBMENU:=$(BLOCK_MENU)
79 DEPENDS:=@TARGET_sunxi +kmod-ata-ahci-platform +kmod-scsi-core
80 KCONFIG:=CONFIG_AHCI_SUNXI
81 FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
82 AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
83 endef
84
85 define KernelPackage/ata-sunxi/description
86 SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
87 endef
88
89 $(eval $(call KernelPackage,ata-sunxi))
90
91 define KernelPackage/sun4i-emac
92 SUBMENU:=$(NETWORK_DEVICES_MENU)
93 TITLE:=AllWinner EMAC Ethernet support
94 DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
95 KCONFIG:=CONFIG_SUN4I_EMAC
96 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
97 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
98 endef
99
100 $(eval $(call KernelPackage,sun4i-emac))
101
102 define KernelPackage/sound-soc-sunxi
103 TITLE:=AllWinner built-in SoC sound support
104 KCONFIG:=CONFIG_SND_SUN4I_CODEC
105 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
106 AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
107 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
108 $(call AddDepends/sound)
109 endef
110
111 define KernelPackage/sound-soc-sunxi/description
112 Kernel support for AllWinner built-in SoC audio
113 endef
114
115 $(eval $(call KernelPackage,sound-soc-sunxi))
116
117 define KernelPackage/sound-soc-sunxi-spdif
118 TITLE:=Allwinner A10 SPDIF Support
119 KCONFIG:=CONFIG_SND_SUN4I_SPDIF
120 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
121 AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
122 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
123 $(call AddDepends/sound)
124 endef
125
126 define KernelPackage/sound-soc-sunxi-spdif/description
127 Kernel support for Allwinner A10 SPDIF Support
128 endef
129
130 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))