Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
5e746fce
Commit
5e746fce
authored
Dec 16, 2004
by
stroese
Browse files
PMC405 board support added
parent
b39392a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cpu/ppc4xx/405gp_pci.c
View file @
5e746fce
...
...
@@ -95,7 +95,7 @@ void pci_405gp_init(struct pci_controller *hose)
unsigned
short
temp_short
;
unsigned
long
ptmpcila
[
2
]
=
{
CFG_PCI_PTM1PCI
,
CFG_PCI_PTM2PCI
};
#if defined(CONFIG_CPCI405)
#if defined(CONFIG_CPCI405)
|| defined(CONFIG_PMC405)
unsigned
long
ptmla
[
2
]
=
{
bd
->
bi_memstart
,
bd
->
bi_flashstart
};
unsigned
long
ptmms
[
2
]
=
{
~
(
bd
->
bi_memsize
-
1
)
|
1
,
~
(
bd
->
bi_flashsize
-
1
)
|
1
};
#else
...
...
@@ -112,6 +112,11 @@ void pci_405gp_init(struct pci_controller *hose)
unsigned
long
pmmma
[
3
]
=
{
0xC0000001
,
0
,
0
};
unsigned
long
pmmpcila
[
3
]
=
{
0x80000000
,
0
,
0
};
unsigned
long
pmmpciha
[
3
]
=
{
0x00000000
,
0
,
0
};
#endif
#ifdef CONFIG_PCI_PNP
#if (CONFIG_PCI_HOST == PCI_HOST_AUTO)
char
*
s
;
#endif
#endif
/*
...
...
@@ -255,7 +260,8 @@ void pci_405gp_init(struct pci_controller *hose)
#if (CONFIG_PCI_HOST != PCI_HOST_ADAPTER)
#if (CONFIG_PCI_HOST == PCI_HOST_AUTO)
if
(
mfdcr
(
strap
)
&
PSR_PCI_ARBIT_EN
)
if
((
mfdcr
(
strap
)
&
PSR_PCI_ARBIT_EN
)
||
(((
s
=
getenv
(
"pciscan"
))
!=
NULL
)
&&
(
strcmp
(
s
,
"yes"
)
==
0
)))
#endif
{
/*--------------------------------------------------------------------------+
...
...
@@ -284,7 +290,8 @@ void pci_405gp_init(struct pci_controller *hose)
* Scan the PCI bus and configure devices found.
*--------------------------------------------------------------------------*/
#if (CONFIG_PCI_HOST == PCI_HOST_AUTO)
if
(
mfdcr
(
strap
)
&
PSR_PCI_ARBIT_EN
)
if
((
mfdcr
(
strap
)
&
PSR_PCI_ARBIT_EN
)
||
(((
s
=
getenv
(
"pciscan"
))
!=
NULL
)
&&
(
strcmp
(
s
,
"yes"
)
==
0
)))
#endif
{
#ifdef CONFIG_PCI_SCAN_SHOW
...
...
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