1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2013-2016 OpenWrt.org
5 define KernelPackage
/rtc-sunxi
7 TITLE
:=Sunxi SoC built-in RTC support
8 DEPENDS
:=@
(TARGET_sunxi
&&RTC_SUPPORT
)
10 CONFIG_RTC_DRV_SUNXI \
12 FILES
:=$(LINUX_DIR
)/drivers
/rtc
/rtc-sunxi.ko
13 AUTOLOAD
:=$(call AutoLoad
,50,rtc-sunxi
)
16 define KernelPackage
/rtc-sunxi
/description
17 Support for the AllWinner sunXi SoC
's onboard RTC
20 $(eval $(call KernelPackage,rtc-sunxi))
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
27 CONFIG_MEDIA_SUPPORT=y \
28 CONFIG_MEDIA_RC_SUPPORT=y \
32 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
33 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
36 define KernelPackage/sunxi-ir/description
37 Support for the AllWinner sunXi SoC's onboard IR
40 $(eval
$(call KernelPackage
,sunxi-ir
))
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)
51 define KernelPackage
/ata-sunxi
/description
52 SATA support for the AllWinner sunXi SoC
's onboard AHCI SATA
55 $(eval $(call KernelPackage,ata-sunxi))
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)
66 $(eval $(call KernelPackage,sun4i-emac))
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)
77 define KernelPackage/sound-soc-sunxi/description
78 Kernel support for AllWinner built-in SoC audio
81 $(eval $(call KernelPackage,sound-soc-sunxi))
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)
92 define KernelPackage/sound-soc-sunxi-spdif/description
93 Kernel support for Allwinner A10 SPDIF Support
96 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))