Skip to content

Commit

Permalink
sparc64: Use generic CMOS driver.
Browse files Browse the repository at this point in the history
Based largely upon a patch by Krzysztof Helt <krzysztof.h1@poczta.fm>

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Aug 29, 2008
1 parent e8b75c4 commit da86783
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 260 deletions.
10 changes: 2 additions & 8 deletions arch/sparc/include/asm/mc146818rtc_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
#include <asm/io.h>

#ifndef RTC_PORT
#ifdef CONFIG_PCI
extern unsigned long ds1287_regs;
#else
#define ds1287_regs (0UL)
#endif
#define RTC_PORT(x) (ds1287_regs + (x))
extern unsigned long cmos_regs;
#define RTC_PORT(x) (cmos_regs + (x))
#define RTC_ALWAYS_BCD 0
#endif

Expand All @@ -29,6 +25,4 @@ outb_p((addr),RTC_PORT(0)); \
outb_p((val),RTC_PORT(1)); \
})

#define RTC_IRQ 8

#endif /* __ASM_SPARC64_MC146818RTC_H */
1 change: 1 addition & 0 deletions arch/sparc64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ config SPARC64
select ARCH_WANT_OPTIONAL_GPIOLIB
select RTC_CLASS
select RTC_DRV_M48T59
select RTC_DRV_CMOS

config GENERIC_TIME
bool
Expand Down
Loading

0 comments on commit da86783

Please sign in to comment.