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
a7e1a5d8
Commit
a7e1a5d8
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] M68k genrtc updates
Genrtc updates: - Add genrtc wrappers - Export mach_hwclk for modular genrtc
parent
78435629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
arch/m68k/kernel/m68k_ksyms.c
arch/m68k/kernel/m68k_ksyms.c
+1
-0
include/asm-m68k/rtc.h
include/asm-m68k/rtc.h
+30
-0
No files found.
arch/m68k/kernel/m68k_ksyms.c
View file @
a7e1a5d8
...
...
@@ -49,6 +49,7 @@ EXPORT_SYMBOL(iounmap);
EXPORT_SYMBOL
(
kernel_set_cachemode
);
#endif
/* !CONFIG_SUN3 */
EXPORT_SYMBOL
(
m68k_debug_device
);
EXPORT_SYMBOL
(
mach_hwclk
);
EXPORT_SYMBOL
(
dump_fpu
);
EXPORT_SYMBOL
(
dump_thread
);
EXPORT_SYMBOL
(
strnlen
);
...
...
include/asm-m68k/rtc.h
View file @
a7e1a5d8
...
...
@@ -33,6 +33,36 @@ extern void gen_rtc_interrupt(unsigned long);
#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 */
static
inline
void
get_rtc_time
(
struct
rtc_time
*
time
)
{
/*
* Only the values that we read from the RTC are set. We leave
* tm_wday, tm_yday and tm_isdst untouched. Even though the
* RTC has RTC_DAY_OF_WEEK, we ignore it, as it is only updated
* by the RTC when initially set to a non-zero value.
*/
mach_hwclk
(
0
,
time
);
}
static
inline
int
set_rtc_time
(
struct
rtc_time
*
time
)
{
return
mach_hwclk
(
1
,
time
);
}
static
inline
int
get_rtc_pll
(
struct
rtc_pll_info
*
pll
)
{
if
(
mach_get_rtc_pll
)
return
mach_get_rtc_pll
(
pll
);
else
return
-
EINVAL
;
}
static
inline
int
set_rtc_pll
(
struct
rtc_pll_info
*
pll
)
{
if
(
mach_set_rtc_pll
)
return
mach_set_rtc_pll
(
pll
);
else
return
-
EINVAL
;
}
#endif
/* __KERNEL__ */
...
...
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