Commit 1915b6c0 authored by Mike Frysinger's avatar Mike Frysinger

Blackfin: scrub unused RTC masks

The RTC driver code doesn't need these, and the other parts had these
punted, so keep the global namespace clean.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 60883e28
......@@ -790,32 +790,6 @@
#define TRO_P 0x0F
/* *************** REAL TIME CLOCK MASKS **************************/
/* RTC_STAT and RTC_ALARM Masks */
#define RTC_SEC 0x0000003F /* Real-Time Clock Seconds */
#define RTC_MIN 0x00000FC0 /* Real-Time Clock Minutes */
#define RTC_HR 0x0001F000 /* Real-Time Clock Hours */
#define RTC_DAY 0xFFFE0000 /* Real-Time Clock Days */
/* RTC_ALARM Macro z=day y=hr x=min w=sec */
#define SET_ALARM(z,y,x,w) ((((z)&0x7FFF)<<0x11)|(((y)&0x1F)<<0xC)|(((x)&0x3F)<<0x6)|((w)&0x3F))
/* RTC_ICTL and RTC_ISTAT Masks */
#define STOPWATCH 0x0001 /* Stopwatch Interrupt Enable */
#define ALARM 0x0002 /* Alarm Interrupt Enable */
#define SECOND 0x0004 /* Seconds (1 Hz) Interrupt Enable */
#define MINUTE 0x0008 /* Minutes Interrupt Enable */
#define HOUR 0x0010 /* Hours Interrupt Enable */
#define DAY 0x0020 /* 24 Hours (Days) Interrupt Enable */
#define DAY_ALARM 0x0040 /* Day Alarm (Day, Hour, Minute, Second) Interrupt Enable */
#define WRITE_PENDING 0x4000 /* Write Pending Status */
#define WRITE_COMPLETE 0x8000 /* Write Complete Interrupt Enable */
/* RTC_FAST / RTC_PREN Mask */
#define PREN 0x0001 /* Enable Prescaler, RTC Runs @1 Hz */
/* ************** UART CONTROLLER MASKS *************************/
/* UARTx_LCR Masks */
#define WLS(x) (((x)-5) & 0x03) /* Word Length Select */
......
......@@ -791,32 +791,6 @@
#define TRO_P 0x0F
/* *************** REAL TIME CLOCK MASKS **************************/
/* RTC_STAT and RTC_ALARM Masks */
#define RTC_SEC 0x0000003F /* Real-Time Clock Seconds */
#define RTC_MIN 0x00000FC0 /* Real-Time Clock Minutes */
#define RTC_HR 0x0001F000 /* Real-Time Clock Hours */
#define RTC_DAY 0xFFFE0000 /* Real-Time Clock Days */
/* RTC_ALARM Macro z=day y=hr x=min w=sec */
#define SET_ALARM(z,y,x,w) ((((z)&0x7FFF)<<0x11)|(((y)&0x1F)<<0xC)|(((x)&0x3F)<<0x6)|((w)&0x3F))
/* RTC_ICTL and RTC_ISTAT Masks */
#define STOPWATCH 0x0001 /* Stopwatch Interrupt Enable */
#define ALARM 0x0002 /* Alarm Interrupt Enable */
#define SECOND 0x0004 /* Seconds (1 Hz) Interrupt Enable */
#define MINUTE 0x0008 /* Minutes Interrupt Enable */
#define HOUR 0x0010 /* Hours Interrupt Enable */
#define DAY 0x0020 /* 24 Hours (Days) Interrupt Enable */
#define DAY_ALARM 0x0040 /* Day Alarm (Day, Hour, Minute, Second) Interrupt Enable */
#define WRITE_PENDING 0x4000 /* Write Pending Status */
#define WRITE_COMPLETE 0x8000 /* Write Complete Interrupt Enable */
/* RTC_FAST / RTC_PREN Mask */
#define PREN 0x0001 /* Enable Prescaler, RTC Runs @1 Hz */
/* ************** UART CONTROLLER MASKS *************************/
/* UARTx_LCR Masks */
#define WLS(x) (((x)-5) & 0x03) /* Word Length Select */
......
......@@ -1644,56 +1644,6 @@
#define TRO_P 0x0F
/* *************** REAL TIME CLOCK MASKS **************************/
/* RTC_STAT and RTC_ALARM register */
#define RTSEC 0x0000003F /* Real-Time Clock Seconds */
#define RTMIN 0x00000FC0 /* Real-Time Clock Minutes */
#define RTHR 0x0001F000 /* Real-Time Clock Hours */
#define RTDAY 0xFFFE0000 /* Real-Time Clock Days */
/* RTC_ICTL register */
#define SWIE 0x0001 /* Stopwatch Interrupt Enable */
#define AIE 0x0002 /* Alarm Interrupt Enable */
#define SIE 0x0004 /* Seconds (1 Hz) Interrupt Enable */
#define MIE 0x0008 /* Minutes Interrupt Enable */
#define HIE 0x0010 /* Hours Interrupt Enable */
#define DIE 0x0020 /* 24 Hours (Days) Interrupt Enable */
#define DAIE 0x0040 /* Day Alarm (Day, Hour, Minute, Second) Interrupt Enable */
#define WCIE 0x8000 /* Write Complete Interrupt Enable */
/* RTC_ISTAT register */
#define SWEF 0x0001 /* Stopwatch Event Flag */
#define AEF 0x0002 /* Alarm Event Flag */
#define SEF 0x0004 /* Seconds (1 Hz) Event Flag */
#define MEF 0x0008 /* Minutes Event Flag */
#define HEF 0x0010 /* Hours Event Flag */
#define DEF 0x0020 /* 24 Hours (Days) Event Flag */
#define DAEF 0x0040 /* Day Alarm (Day, Hour, Minute, Second) Event Flag */
#define WPS 0x4000 /* Write Pending Status (RO) */
#define WCOM 0x8000 /* Write Complete */
/* RTC_FAST Mask (RTC_PREN Mask) */
#define ENABLE_PRESCALE 0x00000001 /* Enable prescaler so RTC runs at 1 Hz */
#define PREN 0x00000001
/* ** Must be set after power-up for proper operation of RTC */
/* Deprecated RTC_STAT and RTC_ALARM Masks */
#define RTC_SEC RTSEC /* Real-Time Clock Seconds */
#define RTC_MIN RTMIN /* Real-Time Clock Minutes */
#define RTC_HR RTHR /* Real-Time Clock Hours */
#define RTC_DAY RTDAY /* Real-Time Clock Days */
/* Deprecated RTC_ICTL/RTC_ISTAT Masks */
#define STOPWATCH SWIE /* Stopwatch Interrupt Enable */
#define ALARM AIE /* Alarm Interrupt Enable */
#define SECOND SIE /* Seconds (1 Hz) Interrupt Enable */
#define MINUTE MIE /* Minutes Interrupt Enable */
#define HOUR HIE /* Hours Interrupt Enable */
#define DAY DIE /* 24 Hours (Days) Interrupt Enable */
#define DAY_ALARM DAIE /* Day Alarm (Day, Hour, Minute, Second) Interrupt Enable */
#define WRITE_COMPLETE WCIE /* Write Complete Interrupt Enable */
/* ***************************** UART CONTROLLER MASKS ********************** */
/* UARTx_LCR Register */
#ifdef _MISRA_RULES
......
......@@ -2149,51 +2149,6 @@
#define DPRESCALE 0xf /* Load Counter Register */
/* Bit masks for RTC_STAT */
#define SECONDS 0x3f /* Seconds */
#define MINUTES 0xfc0 /* Minutes */
#define HOURS 0x1f000 /* Hours */
#define DAY_COUNTER 0xfffe0000 /* Day Counter */
/* Bit masks for RTC_ICTL */
#define STOPWATCH_INTERRUPT_ENABLE 0x1 /* Stopwatch Interrupt Enable */
#define ALARM_INTERRUPT_ENABLE 0x2 /* Alarm Interrupt Enable */
#define SECONDS_INTERRUPT_ENABLE 0x4 /* Seconds Interrupt Enable */
#define MINUTES_INTERRUPT_ENABLE 0x8 /* Minutes Interrupt Enable */
#define HOURS_INTERRUPT_ENABLE 0x10 /* Hours Interrupt Enable */
#define TWENTY_FOUR_HOURS_INTERRUPT_ENABLE 0x20 /* 24 Hours Interrupt Enable */
#define DAY_ALARM_INTERRUPT_ENABLE 0x40 /* Day Alarm Interrupt Enable */
#define WRITE_COMPLETE_INTERRUPT_ENABLE 0x8000 /* Write Complete Interrupt Enable */
/* Bit masks for RTC_ISTAT */
#define STOPWATCH_EVENT_FLAG 0x1 /* Stopwatch Event Flag */
#define ALARM_EVENT_FLAG 0x2 /* Alarm Event Flag */
#define SECONDS_EVENT_FLAG 0x4 /* Seconds Event Flag */
#define MINUTES_EVENT_FLAG 0x8 /* Minutes Event Flag */
#define HOURS_EVENT_FLAG 0x10 /* Hours Event Flag */
#define TWENTY_FOUR_HOURS_EVENT_FLAG 0x20 /* 24 Hours Event Flag */
#define DAY_ALARM_EVENT_FLAG 0x40 /* Day Alarm Event Flag */
#define WRITE_PENDING__STATUS 0x4000 /* Write Pending Status */
#define WRITE_COMPLETE 0x8000 /* Write Complete */
/* Bit masks for RTC_SWCNT */
#define STOPWATCH_COUNT 0xffff /* Stopwatch Count */
/* Bit masks for RTC_ALARM */
#define SECONDS 0x3f /* Seconds */
#define MINUTES 0xfc0 /* Minutes */
#define HOURS 0x1f000 /* Hours */
#define DAY 0xfffe0000 /* Day */
/* Bit masks for RTC_PREN */
#define PREN 0x1 /* Prescaler Enable */
/* Bit masks for OTP_CONTROL */
#define FUSE_FADDR 0x1ff /* OTP/Fuse Address */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment