Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e22596b7
Commit
e22596b7
authored
Jul 25, 2003
by
Geert Uytterhoeven
Committed by
Jens Axboe
Jul 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] M68k RTC updates
M68k: Use genrtc on all m68k platforms
parent
bc12135d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
56 deletions
+2
-56
arch/m68k/Kconfig
arch/m68k/Kconfig
+0
-29
arch/m68k/atari/time.c
arch/m68k/atari/time.c
+1
-1
include/asm-m68k/mc146818rtc.h
include/asm-m68k/mc146818rtc.h
+1
-26
No files found.
arch/m68k/Kconfig
View file @
e22596b7
...
...
@@ -1126,37 +1126,8 @@ config SOFT_WATCHDOG
<file:Documentation/modules.txt>. The module will be called
softdog.
config RTC
bool "Enhanced Real Time Clock Support"
depends on ATARI
---help---
If you say Y here and create a character special file /dev/rtc with
major number 10 and minor number 135 using mknod ("man mknod"), you
will get access to the real time clock (or hardware clock) built
into your computer.
Every PC has such a clock built in. It can be used to generate
signals from as low as 1Hz up to 8192Hz, and can also be used
as a 24 hour alarm. It reports status information via the file
/proc/driver/rtc and its behaviour is set by various ioctls on
/dev/rtc.
If you run Linux on a multiprocessor machine and said Y to
"Symmetric Multi Processing" above, you should say Y here to read
and set the RTC in an SMP compatible fashion.
If you think you have a use for such a device (such as periodic data
sampling), then say Y here, and read <file:Documentation/rtc.txt>
for details.
This driver is also available as a module ( = code which can be
inserted in and removed from the running kernel whenever you want).
The module is called rtc. If you want to compile it as a module,
say M here and read <file:Documentation/modules.txt>.
config GEN_RTC
tristate "Generic /dev/rtc emulation" if !SUN3
depends on !ATARI
default y if SUN3
---help---
If you say Y here and create a character special file /dev/rtc with
...
...
arch/m68k/atari/time.c
View file @
e22596b7
...
...
@@ -17,7 +17,7 @@
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <asm/
rtc
.h>
#include <asm/
atariints
.h>
void
__init
atari_sched_init
(
irqreturn_t
(
*
timer_routine
)(
int
,
void
*
,
struct
pt_regs
*
))
...
...
include/asm-m68k/mc146818rtc.h
View file @
e22596b7
...
...
@@ -4,37 +4,12 @@
#ifndef _ASM_MC146818RTC_H
#define _ASM_MC146818RTC_H
#include <linux/config.h>
#include <asm/atarihw.h>
#ifdef CONFIG_ATARI
/* RTC in Atari machines */
#include <asm/atarihw.h>
#include <asm/atariints.h>
#include <asm/io.h>
#define RTC_HAS_IRQ (ATARIHW_PRESENT(TT_MFP))
#define RTC_IRQ IRQ_TT_MFP_RTC
#define RTC_IRQ_FLAGS IRQ_TYPE_FAST
#define RTC_PORT(x) (TT_RTC_BAS + 2*(x))
#define RTC_ALWAYS_BCD 0
/* TOS uses binary mode, Linux should be able
* to deal with both modes */
#define RTC_CHECK_DRIVER_INIT() (MACH_IS_ATARI && ATARIHW_PRESENT(TT_CLK))
#define RTC_MACH_INIT() \
do { \
epoch = atari_rtc_year_offset + 1900; \
if (RTC_HAS_IRQ) \
/* select RTC int on H->L edge */
\
tt_mfp.active_edge &= ~0x40; \
} while(0)
#define RTC_MACH_EXIT()
/* On Atari, the year was stored with base 1970 in old TOS versions (before
* 3.06). Later, Atari recognized that this broke leap year recognition, and
* changed the base to 1968. Medusa and Hades always use the new version. */
#define RTC_CENTURY_SWITCH -1
/* no century switch */
#define RTC_MINYEAR epoch
#define RTC_PORT(x) (TT_RTC_BAS + 2*(x))
#define CMOS_READ(addr) ({ \
atari_outb_p((addr),RTC_PORT(0)); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment