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 (A20)
25 DEPENDS:=@(TARGET_sunxi&&RTC_SUPPORT) +kmod-input-core
27 CONFIG_MEDIA_SUPPORT=y \
28 CONFIG_MEDIA_RC_SUPPORT=y \
31 FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
32 AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
35 define KernelPackage/sunxi-ir/description
36 Support for the AllWinner sunXi SoC's onboard IR
(A20
)
39 $(eval
$(call KernelPackage
,sunxi-ir
))
41 define KernelPackage
/ata-sunxi
42 TITLE
:=AllWinner sunXi AHCI SATA support
43 SUBMENU
:=$(BLOCK_MENU
)
44 DEPENDS
:=@TARGET_sunxi
+kmod-ata-ahci-platform
+kmod-scsi-core
45 KCONFIG
:=CONFIG_AHCI_SUNXI
46 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ahci_sunxi.ko
47 AUTOLOAD
:=$(call AutoLoad
,41,ahci_sunxi
,1)
50 define KernelPackage
/ata-sunxi
/description
51 SATA support for the AllWinner sunXi SoC
's onboard AHCI SATA
54 $(eval $(call KernelPackage,ata-sunxi))
56 define KernelPackage/sun4i-emac
57 SUBMENU:=$(NETWORK_DEVICES_MENU)
58 TITLE:=AllWinner EMAC Ethernet support
59 DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
60 KCONFIG:=CONFIG_SUN4I_EMAC
61 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
62 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
65 $(eval $(call KernelPackage,sun4i-emac))
67 define KernelPackage/sound-soc-sunxi
68 TITLE:=AllWinner built-in SoC sound support
69 KCONFIG:=CONFIG_SND_SUN4I_CODEC
70 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
71 AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
72 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
73 $(call AddDepends/sound)
76 define KernelPackage/sound-soc-sunxi/description
77 Kernel support for AllWinner built-in SoC audio
80 $(eval $(call KernelPackage,sound-soc-sunxi))
82 define KernelPackage/sound-soc-sunxi-spdif
83 TITLE:=Allwinner A10 SPDIF Support
84 KCONFIG:=CONFIG_SND_SUN4I_SPDIF
85 FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
86 AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
87 DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
88 $(call AddDepends/sound)
91 define KernelPackage/sound-soc-sunxi-spdif/description
92 Kernel support for Allwinner A10 SPDIF Support
95 $(eval $(call KernelPackage,sound-soc-sunxi-spdif))