diff options
author | imp <imp@FreeBSD.org> | 2013-05-10 06:28:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2013-05-10 06:28:01 +0000 |
commit | 7b9333cf715d9b9e83c0781ce8d086f60ae8a8d1 (patch) | |
tree | d481a4d702ca938e44fdaae0cbb788327f44c884 /sys/contrib/octeon-sdk | |
parent | 777410321b66dc760d34150a04a17ee3aac67f17 (diff) | |
download | FreeBSD-src-7b9333cf715d9b9e83c0781ce8d086f60ae8a8d1.zip FreeBSD-src-7b9333cf715d9b9e83c0781ce8d086f60ae8a8d1.tar.gz |
Make the read/write routines default to the newer DS1337 part, but keep
the supported bits board specific.
Diffstat (limited to 'sys/contrib/octeon-sdk')
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-rtc.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-rtc.h b/sys/contrib/octeon-sdk/cvmx-rtc.h index 7a8a52e..6986d00 100644 --- a/sys/contrib/octeon-sdk/cvmx-rtc.h +++ b/sys/contrib/octeon-sdk/cvmx-rtc.h @@ -126,18 +126,9 @@ static inline uint32_t cvmx_rtc_read(void) 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(uint32_t time) 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; } } |