sunxi: various fixes - DT: update USB vbus from 3.3v to 5v - emac: add missing free_i...
[openwrt/openwrt.git] / target / linux / sunxi / modules.mk
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 define KernelPackage/rtc-sunxi
8 SUBMENU:=$(OTHER_MENU)
9 TITLE:=Sunxi SoC built-in RTC support
10 DEPENDS:=@TARGET_sunxi
11 $(call AddDepends/rtc)
12 KCONFIG:= \
13 CONFIG_RTC_CLASS=y \
14 CONFIG_RTC_DRV_SUNXI=m
15 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-sunxi.ko
16 AUTOLOAD:=$(call AutoLoad,50,rtc-sunxi)
17 endef
18
19 define KernelPackage/rtc-sunxi/description
20 Support for the AllWinner sunXi SoC's onboard RTC
21 endef
22
23 $(eval $(call KernelPackage,rtc-sunxi))
24
25 define KernelPackage/eeprom-sunxi
26 SUBMENU:=$(OTHER_MENU)
27 TITLE:=AllWinner Security ID fuse support
28 DEPENDS:=@TARGET_sunxi
29 KCONFIG:= \
30 CONFIG_EEPROM_SUNXI_SID
31 FILES:=$(LINUX_DIR)/drivers/misc/eeprom/sunxi_sid.ko
32 AUTOLOAD:=$(call AutoLoad,50,sunxi_sid)
33 endef
34
35 define KernelPackage/eeprom-sunxi/description
36 Support for the AllWinner Security ID fuse support
37 endef
38
39 $(eval $(call KernelPackage,eeprom-sunxi))
40
41 define KernelPackage/ata-sunxi
42 TITLE:=AllWinner sunXi AHCI SATA support
43 SUBMENU:=$(BLOCK_MENU)
44 DEPENDS:=@TARGET_sunxi +kmod-scsi-core
45 KCONFIG:=\
46 CONFIG_AHCI_SUNXI \
47 CONFIG_SATA_AHCI_PLATFORM
48 FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
49 AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
50 endef
51
52 define KernelPackage/ata-sunxi/description
53 SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
54 endef
55
56 $(eval $(call KernelPackage,ata-sunxi))
57
58 define KernelPackage/sun4i-emac
59 SUBMENU:=$(NETWORK_DEVICES_MENU)
60 TITLE:=AllWinner EMAC Ethernet support
61 DEPENDS:=@TARGET_sunxi
62 KCONFIG:=CONFIG_SUN4I_EMAC
63 FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
64 AUTOLOAD:=$(call AutoProbe,sun4i-emac)
65 endef
66
67 $(eval $(call KernelPackage,sun4i-emac))
68
69
70 define KernelPackage/wdt-sunxi
71 SUBMENU:=$(OTHER_MENU)
72 TITLE:=AllWinner sunXi Watchdog timer
73 KCONFIG:=CONFIG_SUNXI_WATCHDOG
74 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sunxi_wdt.ko
75 AUTOLOAD:=$(call AutoLoad,51,sunxi_wdt)
76 endef
77
78 define KernelPackage/wdt-sunxi/description
79 Kernel module for AllWinner sunXi watchdog timer.
80 endef
81
82 $(eval $(call KernelPackage,wdt-sunxi))
83