Commit b84cea0b authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Fix asm/rtc.h so drivers/char/genrtc.c compiles.

parent e22059fe
...@@ -35,15 +35,14 @@ ...@@ -35,15 +35,14 @@
#define RTC_AIE 0x20 /* alarm interrupt enable */ #define RTC_AIE 0x20 /* alarm interrupt enable */
#define RTC_UIE 0x10 /* update-finished interrupt enable */ #define RTC_UIE 0x10 /* update-finished interrupt enable */
extern void gen_rtc_interrupt(unsigned long);
/* some dummy definitions */ /* some dummy definitions */
#define RTC_BATT_BAD 0x100 /* battery bad */
#define RTC_SQWE 0x08 /* enable square-wave output */ #define RTC_SQWE 0x08 /* enable square-wave output */
#define RTC_DM_BINARY 0x04 /* all time/date values are BCD if clear */ #define RTC_DM_BINARY 0x04 /* all time/date values are BCD if clear */
#define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */ #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
#define RTC_DST_EN 0x01 /* auto switch DST - works f. USA only */ #define RTC_DST_EN 0x01 /* auto switch DST - works f. USA only */
static inline void get_rtc_time(struct rtc_time *time) static inline unsigned int get_rtc_time(struct rtc_time *time)
{ {
if (ppc_md.get_rtc_time) { if (ppc_md.get_rtc_time) {
unsigned long nowtime; unsigned long nowtime;
...@@ -55,6 +54,7 @@ static inline void get_rtc_time(struct rtc_time *time) ...@@ -55,6 +54,7 @@ static inline void get_rtc_time(struct rtc_time *time)
time->tm_year -= 1900; time->tm_year -= 1900;
time->tm_mon -= 1; /* Make sure userland has a 0-based month */ time->tm_mon -= 1; /* Make sure userland has a 0-based month */
} }
return RTC_24H;
} }
/* Set the current date and time in the real time clock. */ /* Set the current date and time in the real time clock. */
......
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