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
50612ca2
Commit
50612ca2
authored
Oct 19, 2002
by
Cort Dougan
Committed by
Tom Rini
Oct 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Fixes for Force PowerCore boards.
parent
52120ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
24 deletions
+12
-24
arch/ppc/platforms/pcore_setup.c
arch/ppc/platforms/pcore_setup.c
+12
-24
No files found.
arch/ppc/platforms/pcore_setup.c
View file @
50612ca2
...
...
@@ -168,13 +168,7 @@ pcore_init_IRQ(void)
for
(
i
=
0
;
i
<
16
;
i
++
)
irq_desc
[
i
].
handler
=
&
i8259_pic
;
i8259_init
(
NULL
);
}
static
int
pcore_get_irq
(
struct
pt_regs
*
regs
)
{
return
i8259_poll
();
i8259_init
(
0
);
}
/*
...
...
@@ -184,22 +178,16 @@ static __inline__ void
pcore_set_bat
(
void
)
{
unsigned
long
bat3u
,
bat3l
;
static
int
mapping_set
=
0
;
if
(
!
mapping_set
)
{
__asm__
__volatile__
(
" lis %0,0xf000
\n
\
ori %1,%0,0x002a
\n
\
ori %0,%0,0x1ffe
\n
\
mtspr 0x21e,%0
\n
\
mtspr 0x21f,%1
\n
\
isync
\n
\
sync "
:
"=r"
(
bat3u
),
"=r"
(
bat3l
));
mapping_set
=
1
;
}
return
;
__asm__
__volatile__
(
" lis %0,0xf000
\n
\
ori %1,%0,0x002a
\n
\
ori %0,%0,0x1ffe
\n
\
mtspr 0x21e,%0
\n
\
mtspr 0x21f,%1
\n
\
isync
\n
\
sync "
:
"=r"
(
bat3u
),
"=r"
(
bat3l
));
}
static
unsigned
long
__init
...
...
@@ -233,7 +221,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
ppc_md
.
setup_arch
=
pcore_setup_arch
;
ppc_md
.
show_cpuinfo
=
pcore_show_cpuinfo
;
ppc_md
.
init_IRQ
=
pcore_init_IRQ
;
ppc_md
.
get_irq
=
pcore_get
_irq
;
ppc_md
.
get_irq
=
i8259
_irq
;
ppc_md
.
find_end_of_memory
=
pcore_find_end_of_memory
;
ppc_md
.
setup_io_mappings
=
pcore_map_io
;
...
...
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