Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
527b5a51
Commit
527b5a51
authored
19 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
Fix MPC85xx PCI support (pci_register_hose() before pci config access)
Patch by Stefan Roese, 07 Nov 2005
parent
182e1069
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
cpu/mpc85xx/pci.c
+10
-10
10 additions, 10 deletions
cpu/mpc85xx/pci.c
with
13 additions
and
10 deletions
CHANGELOG
+
3
−
0
View file @
527b5a51
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.4:
Changes for U-Boot 1.1.4:
======================================================================
======================================================================
* Fix MPC85xx PCI support (pci_register_hose() before pci config access)
Patch by Stefan Roese, 07 Nov 2005
* Correct PPC Timebase register definitions (SPRN_TBRL...)
* Correct PPC Timebase register definitions (SPRN_TBRL...)
Patch by Stefan Roese, 07 Nov 2005
Patch by Stefan Roese, 07 Nov 2005
...
...
This diff is collapsed.
Click to expand it.
cpu/mpc85xx/pci.c
+
10
−
10
View file @
527b5a51
...
@@ -61,16 +61,6 @@ pci_mpc85xx_init(struct pci_controller *hose)
...
@@ -61,16 +61,6 @@ pci_mpc85xx_init(struct pci_controller *hose)
(
CFG_IMMR
+
0x8000
),
(
CFG_IMMR
+
0x8000
),
(
CFG_IMMR
+
0x8004
));
(
CFG_IMMR
+
0x8004
));
pci_read_config_word
(
PCI_BDF
(
0
,
0
,
0
),
PCI_COMMAND
,
&
reg16
);
reg16
|=
PCI_COMMAND_SERR
|
PCI_COMMAND_MASTER
|
PCI_COMMAND_MEMORY
;
pci_write_config_word
(
PCI_BDF
(
0
,
0
,
0
),
PCI_COMMAND
,
reg16
);
/*
* Clear non-reserved bits in status register.
*/
pci_write_config_word
(
PCI_BDF
(
0
,
0
,
0
),
PCI_STATUS
,
0xffff
);
pci_write_config_byte
(
PCI_BDF
(
0
,
0
,
0
),
PCI_LATENCY_TIMER
,
0x80
);
pcix
->
potar1
=
(
CFG_PCI1_MEM_BASE
>>
12
)
&
0x000fffff
;
pcix
->
potar1
=
(
CFG_PCI1_MEM_BASE
>>
12
)
&
0x000fffff
;
pcix
->
potear1
=
0x00000000
;
pcix
->
potear1
=
0x00000000
;
pcix
->
powbar1
=
(
CFG_PCI1_MEM_BASE
>>
12
)
&
0x000fffff
;
pcix
->
powbar1
=
(
CFG_PCI1_MEM_BASE
>>
12
)
&
0x000fffff
;
...
@@ -93,6 +83,16 @@ pci_mpc85xx_init(struct pci_controller *hose)
...
@@ -93,6 +83,16 @@ pci_mpc85xx_init(struct pci_controller *hose)
*/
*/
pci_register_hose
(
hose
);
pci_register_hose
(
hose
);
pci_read_config_word
(
PCI_BDF
(
0
,
0
,
0
),
PCI_COMMAND
,
&
reg16
);
reg16
|=
PCI_COMMAND_SERR
|
PCI_COMMAND_MASTER
|
PCI_COMMAND_MEMORY
;
pci_write_config_word
(
PCI_BDF
(
0
,
0
,
0
),
PCI_COMMAND
,
reg16
);
/*
* Clear non-reserved bits in status register.
*/
pci_write_config_word
(
PCI_BDF
(
0
,
0
,
0
),
PCI_STATUS
,
0xffff
);
pci_write_config_byte
(
PCI_BDF
(
0
,
0
,
0
),
PCI_LATENCY_TIMER
,
0x80
);
#if defined(CONFIG_MPC8555CDS) || defined(CONFIG_MPC8541CDS)
#if defined(CONFIG_MPC8555CDS) || defined(CONFIG_MPC8541CDS)
/*
/*
* This is a SW workaround for an apparent HW problem
* This is a SW workaround for an apparent HW problem
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment