Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 06:28:01 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250436 - head/sys/contrib/octeon-sdk
Message-ID:  <201305100628.r4A6S1nt037007@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri May 10 06:28:01 2013
New Revision: 250436
URL: http://svnweb.freebsd.org/changeset/base/250436

Log:
  Make the read/write routines default to the newer DS1337 part, but keep
  the supported bits board specific.

Modified:
  head/sys/contrib/octeon-sdk/cvmx-rtc.h

Modified: head/sys/contrib/octeon-sdk/cvmx-rtc.h
==============================================================================
--- head/sys/contrib/octeon-sdk/cvmx-rtc.h	Fri May 10 05:34:08 2013	(r250435)
+++ head/sys/contrib/octeon-sdk/cvmx-rtc.h	Fri May 10 06:28:01 2013	(r250436)
@@ -126,18 +126,9 @@ static inline uint32_t cvmx_rtc_read(voi
         return cvmx_rtc_ds1374_read();
         break;
 
-    case CVMX_BOARD_TYPE_EBH3000:
-    case CVMX_BOARD_TYPE_CN3010_EVB_HS5:
-    case CVMX_BOARD_TYPE_EBH5200:
-#if defined(OCTEON_VENDOR_GEFES)
-    case CVMX_BOARD_TYPE_CUST_W63XX:
-#endif
+    default:
 	return cvmx_rtc_ds1337_read();
 	break;
-
-    default:
-        return 0;
-        break;
     }
 }
 
@@ -156,18 +147,9 @@ static inline uint32_t cvmx_rtc_write(ui
         return cvmx_rtc_ds1374_write(time);
         break;
 
-    case CVMX_BOARD_TYPE_EBH3000:
-    case CVMX_BOARD_TYPE_CN3010_EVB_HS5:
-    case CVMX_BOARD_TYPE_EBH5200:
-#if defined(OCTEON_VENDOR_GEFES)
-    case CVMX_BOARD_TYPE_CUST_W63XX:
-#endif
+    default:
 	return cvmx_rtc_ds1337_write(time);
 	break;
-
-    default:
-        return 0;
-        break;
     }
 }
 



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