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
Kirill Smelkov
linux
Commits
0bbb88f0
Commit
0bbb88f0
authored
Nov 02, 2002
by
Geert Uytterhoeven
Committed by
Linus Torvalds
Nov 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Q40/Q60 RTC update
Prepend Q40/Q60 specific RTC definitions with Q40_
parent
d44458f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
21 deletions
+18
-21
arch/m68k/q40/q40ints.c
arch/m68k/q40/q40ints.c
+5
-4
include/asm-m68k/q40_master.h
include/asm-m68k/q40_master.h
+13
-17
No files found.
arch/m68k/q40/q40ints.c
View file @
0bbb88f0
...
...
@@ -204,8 +204,9 @@ void q40_process_int (int level, struct pt_regs *fp)
* this stuff doesn't really belong here..
*/
int
ql_ticks
=
0
;
/* 200Hz ticks since last jiffie */
static
int
sound_ticks
=
0
;
int
ql_ticks
;
/* 200Hz ticks since last jiffie */
static
int
sound_ticks
;
short
q40rtc_oldsecs
;
#define SVOL 45
...
...
@@ -242,9 +243,9 @@ static void q40_timer_int (int irq, void * dev, struct pt_regs * regs)
*
DAC_RIGHT
=
sval
;
}
#if defined(CONFIG_Q40RTC) || defined(CONFIG_GEN_RTC)
if
(
gen_rtc_irq_ctrl
&&
(
q40rtc_oldsecs
!=
RTC_SECS
))
if
(
gen_rtc_irq_ctrl
&&
(
q40rtc_oldsecs
!=
Q40_
RTC_SECS
))
{
q40rtc_oldsecs
=
RTC_SECS
;
q40rtc_oldsecs
=
Q40_
RTC_SECS
;
gen_rtc_irq_flags
=
RTC_UIE
;
gen_rtc_interrupt
(
0
);
}
...
...
include/asm-m68k/q40_master.h
View file @
0bbb88f0
...
...
@@ -10,7 +10,6 @@
#define q40_master_addr 0xff000000
#define q40_rtc_addr 0xff021ffc
#define IIRQ_REG 0x0
/* internal IRQ reg */
#define EIRQ_REG 0x4
/* external ... */
...
...
@@ -43,28 +42,25 @@
#define master_inb(_reg_) in_8((unsigned char *)q40_master_addr+_reg_)
#define master_outb(_b_,_reg_) out_8((unsigned char *)q40_master_addr+_reg_,_b_)
/* define some Q40 specific ints */
#include "q40ints.h"
/* RTC defines */
#define Q40_RTC_BASE (q40_rtc_addr)
#define RTC_YEAR (*(unsigned char *)(Q40_RTC_BASE+0))
#define RTC_MNTH (*(unsigned char *)(Q40_RTC_BASE-4))
#define RTC_DATE (*(unsigned char *)(Q40_RTC_BASE-8))
#define RTC_DOW (*(unsigned char *)(Q40_RTC_BASE-12))
#define RTC_HOUR (*(unsigned char *)(Q40_RTC_BASE-16))
#define RTC_MINS (*(unsigned char *)(Q40_RTC_BASE-20))
#define RTC_SECS (*(unsigned char *)(Q40_RTC_BASE-24))
#define RTC_CTRL (*(unsigned char *)(Q40_RTC_BASE-28))
#define Q40_RTC_BASE (0xff021ffc)
#define Q40_RTC_YEAR (*(volatile unsigned char *)(Q40_RTC_BASE+0))
#define Q40_RTC_MNTH (*(volatile unsigned char *)(Q40_RTC_BASE-4))
#define Q40_RTC_DATE (*(volatile unsigned char *)(Q40_RTC_BASE-8))
#define Q40_RTC_DOW (*(volatile unsigned char *)(Q40_RTC_BASE-12))
#define Q40_RTC_HOUR (*(volatile unsigned char *)(Q40_RTC_BASE-16))
#define Q40_RTC_MINS (*(volatile unsigned char *)(Q40_RTC_BASE-20))
#define Q40_RTC_SECS (*(volatile unsigned char *)(Q40_RTC_BASE-24))
#define Q40_RTC_CTRL (*(volatile unsigned char *)(Q40_RTC_BASE-28))
/* some control bits */
#define RTC_READ 64
/* prepare for reading */
#define RTC_WRITE 128
#define
Q40_
RTC_READ 64
/* prepare for reading */
#define
Q40_
RTC_WRITE 128
/* define some Q40 specific ints */
#include "q40ints.h"
/* misc defs */
#define DAC_LEFT ((unsigned char *)0xff008000)
...
...
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