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
5d49b2c3
Commit
5d49b2c3
authored
Jan 06, 2003
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Fix some 'prep' machines which are not true PRePs,
and can safely poll for interrupts on the i8259.
parent
0f5b9805
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
arch/ppc/platforms/prep_setup.c
arch/ppc/platforms/prep_setup.c
+14
-1
No files found.
arch/ppc/platforms/prep_setup.c
View file @
5d49b2c3
...
...
@@ -57,6 +57,7 @@
#include <asm/mpc10x.h>
#include <asm/i8259.h>
#include <asm/open_pic.h>
#include <asm/pci-bridge.h>
unsigned
char
ucSystemType
;
unsigned
char
ucBoardRev
;
...
...
@@ -991,12 +992,24 @@ static void __init
prep_init_IRQ
(
void
)
{
int
i
;
unsigned
int
pci_viddid
,
pci_did
;
if
(
OpenPIC_Addr
!=
NULL
)
openpic_init
(
NUM_8259_INTERRUPTS
);
for
(
i
=
0
;
i
<
NUM_8259_INTERRUPTS
;
i
++
)
irq_desc
[
i
].
handler
=
&
i8259_pic
;
i8259_init
(
MPC10X_MAPA_PCI_INTACK_ADDR
);
/* If we have a Raven PCI bridge or a Hawk PCI bridge / Memory
* controller, we poll (as they have a different int-ack address). */
early_read_config_dword
(
0
,
0
,
0
,
PCI_VENDOR_ID
,
&
pci_viddid
);
pci_did
=
(
pci_viddid
&
0xffff0000
)
>>
16
;
if
(((
pci_viddid
&
0xffff
)
==
PCI_VENDOR_ID_MOTOROLA
)
&&
((
pci_did
==
PCI_DEVICE_ID_MOTOROLA_RAVEN
)
||
(
pci_did
==
PCI_DEVICE_ID_MOTOROLA_HAWK
)))
i8259_init
(
0
);
else
/* PCI interrupt ack address given in section 6.1.8 of the
* PReP specification. */
i8259_init
(
MPC10X_MAPA_PCI_INTACK_ADDR
);
}
#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
...
...
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