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
11 CONFIG_RTC_DRV_SUNXI \
13 FILES
:=$(LINUX_DIR
)/drivers
/rtc
/rtc-sunxi.ko
14 AUTOLOAD
:=$(call AutoLoad
,50,rtc-sunxi
)
17 define KernelPackage
/rtc-sunxi
/description
18 Support for the AllWinner sunXi SoC
's onboard RTC
21 $(eval $(call KernelPackage,rtc-sunxi))
23 define KernelPackage/sunxi-ir
24 SUBMENU:=$(OTHER_MENU)
25 TITLE:=Sunxi SoC built-in IR support (A20)
26 DEPENDS:=@TARGET_sunxi +kmod-input-core
27 $(call AddDepends/rtc)
29 CONFIG_MEDIA_SUPPORT=y \
30 CONFIG_MEDIA_RC_SUPPORT=y \
33 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
34 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
37 define KernelPackage/sunxi-ir/description
38 Support for the AllWinner sunXi SoC's onboard IR
(A20
)
41 $(eval
$(call KernelPackage
,sunxi-ir
))
43 define KernelPackage
/ata-sunxi
44 TITLE
:=AllWinner sunXi AHCI SATA support
45 SUBMENU
:=$(BLOCK_MENU
)
46 DEPENDS
:=@TARGET_sunxi
+kmod-ata-ahci-platform
+kmod-scsi-core
47 KCONFIG
:=CONFIG_AHCI_SUNXI
48 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ahci_sunxi.ko
49 AUTOLOAD
:=$(call AutoLoad
,41,ahci_sunxi
,1)
52 define KernelPackage
/ata-sunxi
/description
53 SATA support for the AllWinner sunXi SoC
's onboard AHCI SATA
56 $(eval $(call KernelPackage,ata-sunxi))
58 define KernelPackage/sun4i-emac
59 SUBMENU:=$(NETWORK_DEVICES_MENU)
60 TITLE:=AllWinner EMAC Ethernet support
61 DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
62 KCONFIG:=CONFIG_SUN4I_EMAC
63 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
64 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
67 $(eval $(call KernelPackage,sun4i-emac))
69 define KernelPackage/sound-soc-sunxi
70 TITLE:=AllWinner built-in SoC sound support
71 KCONFIG:=CONFIG_SND_SUN4I_CODEC
72 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
73 AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
74 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
75 $(call AddDepends/sound)
78 define KernelPackage/sound-soc-sunxi/description
79 Kernel support for AllWinner built-in SoC audio
82 $(eval $(call KernelPackage,sound-soc-sunxi))
84 define KernelPackage/sound-soc-sunxi-spdif
85 TITLE:=Allwinner A10 SPDIF Support
86 KCONFIG:=CONFIG_SND_SUN4I_SPDIF
87 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
88 AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
89 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
90 $(call AddDepends/sound)
93 define KernelPackage/sound-soc-sunxi-spdif/description
94 Kernel support for Allwinner A10 SPDIF Support
97 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))