Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2015 17:54:49 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r287040 - stable/10/sys/arm/ti/am335x
Message-ID:  <201508231754.t7NHsndJ033476@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sun Aug 23 17:54:48 2015
New Revision: 287040
URL: https://svnweb.freebsd.org/changeset/base/287040

Log:
  Always compile in PPS capture.  Use the same device name used in 11-current.
  
  This is a direct commit to 10-stable because the corresponding changes in 11
  are bound up with all the device-tree rework for beaglebone.  This somewhat
  aligns the features between the two branches, from a user's perspective.

Modified:
  stable/10/sys/arm/ti/am335x/am335x_dmtimer.c

Modified: stable/10/sys/arm/ti/am335x/am335x_dmtimer.c
==============================================================================
--- stable/10/sys/arm/ti/am335x/am335x_dmtimer.c	Sun Aug 23 17:53:44 2015	(r287039)
+++ stable/10/sys/arm/ti/am335x/am335x_dmtimer.c	Sun Aug 23 17:54:48 2015	(r287040)
@@ -44,8 +44,6 @@ __FBSDID("$FreeBSD$");
 #include <machine/cpu.h>
 #include <machine/intr.h>
 
-#include "opt_ntp.h"
-
 #include <dev/fdt/fdt_common.h>
 #include <dev/ofw/openfirm.h>
 #include <dev/ofw/ofw_bus.h>
@@ -198,7 +196,6 @@ am335x_dmtimer_et_write_4(struct am335x_
  * latched value from the timer.  The remaining work (done by pps_event()) is
  * scheduled to be done later in a non-interrupt context.
  */
-#ifdef PPS_SYNC
 
 #define	PPS_CDEV_NAME	"dmtpps"
 
@@ -405,7 +402,7 @@ am335x_dmtimer_pps_init(device_t dev, st
 	/* Create the PPS cdev.  */
 	unit = device_get_unit(dev);
 	sc->pps_cdev = make_dev(&am335x_dmtimer_pps_cdevsw, unit, 
-	    UID_ROOT, GID_WHEEL, 0600, PPS_CDEV_NAME "%d", unit);
+	    UID_ROOT, GID_WHEEL, 0600, PPS_CDEV_NAME);
 	sc->pps_cdev->si_drv1 = sc;
 
 	device_printf(dev, "Using DMTimer%d for PPS device /dev/%s%d\n", 
@@ -414,20 +411,6 @@ am335x_dmtimer_pps_init(device_t dev, st
 	return (timer_num);
 }
 
-#else /* PPS_SYNC */
-
-static int
-am335x_dmtimer_pps_init(device_t dev, struct am335x_dmtimer_softc *sc)
-{
-
-	/*
-	 * When PPS support is not compiled in, there's no need to use a timer
-	 * that has an associated capture-input pin, so use the default.
-	 */
-	return (DEFAULT_TC_TIMER);
-}
-
-#endif /* PPS_SYNC */
 /*
  * End of PPS driver code.
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508231754.t7NHsndJ033476>