diff options
author | Mike Frysinger | 2008-02-04 19:26:55 -0500 |
---|---|---|
committer | Mike Frysinger | 2008-02-04 19:26:55 -0500 |
commit | d4d7730853e5d675f76ec666807da3028c91d592 (patch) | |
tree | db6cb9767a162b2b6a9d69a309956bbd75a0d6d8 /drivers | |
parent | 6cfcce67671a3425229d66203386fa3cbd0cc3bd (diff) |
punt Blackfin VDSP headers and import sanitized/auto-generated ones
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/bf5xx_rtc.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/rtc/bf5xx_rtc.c b/drivers/rtc/bf5xx_rtc.c index 8856bb9b5f8..a0f532df272 100644 --- a/drivers/rtc/bf5xx_rtc.c +++ b/drivers/rtc/bf5xx_rtc.c @@ -52,7 +52,21 @@ #if defined(CONFIG_RTC_BFIN) && defined(CONFIG_CMD_DATE) #include <asm/blackfin.h> -#include <asm/arch/bf5xx_rtc.h> +#include <asm/mach-common/bits/rtc.h> + +#define MIN_TO_SECS(_x_) (60 * _x_) +#define HRS_TO_SECS(_x_) (60 * 60 * _x_) +#define DAYS_TO_SECS(_x_) (24 * 60 * 60 * _x_) + +#define NUM_SECS_IN_DAY (24 * 3600) +#define NUM_SECS_IN_HOUR (3600) +#define NUM_SECS_IN_MIN (60) + +/* Shift values for RTC_STAT register */ +#define DAY_BITS_OFF 17 +#define HOUR_BITS_OFF 12 +#define MIN_BITS_OFF 6 +#define SEC_BITS_OFF 0 void rtc_reset(void) { |