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
e65732c6
Commit
e65732c6
authored
Jun 17, 2004
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC SBC82xx: Move RTC to 0xd0000000 to make room for PCI I/O stuff.
parent
dc0a8b03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
arch/ppc/platforms/sbc82xx.c
arch/ppc/platforms/sbc82xx.c
+5
-3
arch/ppc/platforms/sbc82xx.h
arch/ppc/platforms/sbc82xx.h
+1
-1
No files found.
arch/ppc/platforms/sbc82xx.c
View file @
e65732c6
...
...
@@ -57,6 +57,7 @@ sbc82xx_setup_arch(void)
callback_setup_arch
();
}
#ifdef CONFIG_GEN_RTC
TODC_ALLOC
();
/*
...
...
@@ -64,16 +65,17 @@ TODC_ALLOC();
* directly use ioremap() at that time.
* late_time_init() is call after paging init.
*/
#ifdef CONFIG_GEN_RTC
static
void
sbc82xx_time_init
(
void
)
{
volatile
memctl_cpm2_t
*
mc
=
&
cpm2_immr
->
im_memctl
;
TODC_INIT
(
TODC_TYPE_MK48T59
,
0
,
0
,
SBC82xx_TODC_NVRAM_ADDR
,
0
);
/* Set up CS11 for RTC chip */
mc
->
memc_br11
=
0
;
mc
->
memc_or11
=
0xffff0836
;
mc
->
memc_br11
=
0x80000801
;
mc
->
memc_br11
=
SBC82xx_TODC_NVRAM_ADDR
|
0x0801
;
TODC_INIT
(
TODC_TYPE_MK48T59
,
0
,
0
,
SBC82xx_TODC_NVRAM_ADDR
,
0
);
todc_info
->
nvram_data
=
(
unsigned
int
)
ioremap
(
todc_info
->
nvram_data
,
0x2000
);
...
...
arch/ppc/platforms/sbc82xx.h
View file @
e65732c6
...
...
@@ -11,7 +11,7 @@
#define CPM_MAP_ADDR 0xf0000000
#define SBC82xx_TODC_NVRAM_ADDR 0x
8
0000000
#define SBC82xx_TODC_NVRAM_ADDR 0x
d
0000000
#define SBC82xx_MACADDR_NVRAM_FCC1 0x220000c9
/* JP6B */
#define SBC82xx_MACADDR_NVRAM_SCC1 0x220000cf
/* JP6A */
...
...
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