1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2013-2016 OpenWrt.org
5 define KernelPackage
/mfd-ac100
7 TITLE
:=X-Powers AC100 MFD support
11 FILES
:=$(LINUX_DIR
)/drivers
/mfd
/ac100.ko
12 AUTOLOAD
:=$(call AutoLoad
,50,ac100
)
15 define KernelPackage
/mfd-ac100
/description
16 Support for the X-Powers AC100 RTC
/audio chip
19 $(eval
$(call KernelPackage
,mfd-ac100
))
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
)
27 CONFIG_RTC_DRV_AC100 \
29 FILES
:=$(LINUX_DIR
)/drivers
/rtc
/rtc-ac100.ko
30 AUTOLOAD
:=$(call AutoLoad
,50,rtc-ac100
)
33 define KernelPackage
/rtc-ac100
/description
34 Support for the X-Powers AC100 RTC
37 $(eval
$(call KernelPackage
,rtc-ac100
))
39 define KernelPackage
/rtc-sunxi
40 SUBMENU
:=$(OTHER_MENU
)
41 TITLE
:=Sunxi SoC built-in RTC support
42 DEPENDS
:=@
(TARGET_sunxi
&&RTC_SUPPORT
)
44 CONFIG_RTC_DRV_SUNXI \
46 FILES
:=$(LINUX_DIR
)/drivers
/rtc
/rtc-sunxi.ko
47 AUTOLOAD
:=$(call AutoLoad
,50,rtc-sunxi
)
50 define KernelPackage
/rtc-sunxi
/description
51 Support for the AllWinner sunXi SoC
's onboard RTC
54 $(eval $(call KernelPackage,rtc-sunxi))
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
61 CONFIG_MEDIA_SUPPORT=y \
62 CONFIG_MEDIA_RC_SUPPORT=y \
66 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
67 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
70 define KernelPackage/sunxi-ir/description
71 Support for the AllWinner sunXi SoC's onboard IR
74 $(eval
$(call KernelPackage
,sunxi-ir
))
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)
85 define KernelPackage
/ata-sunxi
/description
86 SATA support for the AllWinner sunXi SoC
's onboard AHCI SATA
89 $(eval $(call KernelPackage,ata-sunxi))
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)
100 $(eval $(call KernelPackage,sun4i-emac))
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)
111 define KernelPackage/sound-soc-sunxi/description
112 Kernel support for AllWinner built-in SoC audio
115 $(eval $(call KernelPackage,sound-soc-sunxi))
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)
126 define KernelPackage/sound-soc-sunxi-spdif/description
127 Kernel support for Allwinner A10 SPDIF Support
130 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))