aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/modules
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-01-27 21:18:52 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-01-27 21:18:52 +0000
commitfd67078b59360969254161fed522821cd25f885a (patch)
tree4e41ac726ba3369bac87acde555d020ad68d546b /package/kernel/modules
parent2da6033a24e06c8f826e1a1ddbd0a58cdaf76939 (diff)
downloadmaster-187ad058-fd67078b59360969254161fed522821cd25f885a.tar.gz
master-187ad058-fd67078b59360969254161fed522821cd25f885a.tar.bz2
master-187ad058-fd67078b59360969254161fed522821cd25f885a.zip
kernel: add packages for pps and ptp, they are needed by tg3 in kernel 3.8
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35336 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/modules')
-rw-r--r--package/kernel/modules/netdevices.mk2
-rw-r--r--package/kernel/modules/other.mk34
2 files changed, 35 insertions, 1 deletions
diff --git a/package/kernel/modules/netdevices.mk b/package/kernel/modules/netdevices.mk
index 83d7c5f56e..f427df6f05 100644
--- a/package/kernel/modules/netdevices.mk
+++ b/package/kernel/modules/netdevices.mk
@@ -473,7 +473,7 @@ $(eval $(call KernelPackage,pcnet32))
define KernelPackage/tg3
TITLE:=Broadcom Tigon3 Gigabit Ethernet
KCONFIG:=CONFIG_TIGON3
- DEPENDS:=+!TARGET_brcm47xx:kmod-libphy +!LINUX_3_3:kmod-hwmon-core
+ DEPENDS:=+!TARGET_brcm47xx:kmod-libphy +!LINUX_3_3:kmod-hwmon-core +LINUX_3_8:kmod-ptp
SUBMENU:=$(NETWORK_DEVICES_MENU)
FILES:=$(LINUX_DIR)/drivers/net/ethernet/broadcom/tg3.ko
AUTOLOAD:=$(call AutoLoad,50,tg3)
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index a96b6997dd..f63d6705d9 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -602,3 +602,37 @@ define KernelPacakge/mvsdio/description
endef
$(eval $(call KernelPackage,mvsdio))
+
+
+define KernelPackage/pps
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=PPS support
+ KCONFIG:=CONFIG_PPS
+ FILES:=$(LINUX_DIR)/drivers/pps/pps_core.ko
+ AUTOLOAD:=$(call AutoLoad,20,pps_core)
+endef
+
+define KernelPacakge/pps/description
+ PPS (Pulse Per Second) is a special pulse provided by some GPS
+ antennae. Userland can use it to get a high-precision time
+ reference.
+endef
+
+$(eval $(call KernelPackage,pps))
+
+
+define KernelPackage/ptp
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=PTP clock support
+ DEPENDS:=+kmod-pps
+ KCONFIG:=CONFIG_PTP_1588_CLOCK
+ FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko
+ AUTOLOAD:=$(call AutoLoad,25,ptp)
+endef
+
+define KernelPacakge/ptp/description
+ The IEEE 1588 standard defines a method to precisely
+ synchronize distributed clocks over Ethernet networks.
+endef
+
+$(eval $(call KernelPackage,ptp))