Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
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
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
e70ef33b
Commit
e70ef33b
authored
16 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-ppc4xx
parents
1b33a62b
59d1bda7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cpu/ppc4xx/4xx_pci.c
+3
-2
3 additions, 2 deletions
cpu/ppc4xx/4xx_pci.c
cpu/ppc4xx/4xx_pcie.c
+1
-1
1 addition, 1 deletion
cpu/ppc4xx/4xx_pcie.c
cpu/ppc4xx/fdt.c
+22
-2
22 additions, 2 deletions
cpu/ppc4xx/fdt.c
with
26 additions
and
5 deletions
cpu/ppc4xx/4xx_pci.c
+
3
−
2
View file @
e70ef33b
...
@@ -588,8 +588,9 @@ void pci_init_board(void)
...
@@ -588,8 +588,9 @@ void pci_init_board(void)
int
busno
;
int
busno
;
busno
=
pci_440_init
(
&
ppc440_hose
);
busno
=
pci_440_init
(
&
ppc440_hose
);
#if defined(CONFIG_440SPE) || \
#if (defined(CONFIG_440SPE) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT)
defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
!defined(CONFIG_PCI_DISABLE_PCIE)
pcie_setup_hoses
(
busno
+
1
);
pcie_setup_hoses
(
busno
+
1
);
#endif
#endif
}
}
...
...
This diff is collapsed.
Click to expand it.
cpu/ppc4xx/4xx_pcie.c
+
1
−
1
View file @
e70ef33b
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) || \
#if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
defined(CONFIG_PCI)
defined(CONFIG_PCI)
&& !defined(CONFIG_PCI_DISABLE_PCIE)
#include
<asm/4xx_pcie.h>
#include
<asm/4xx_pcie.h>
...
...
This diff is collapsed.
Click to expand it.
cpu/ppc4xx/fdt.c
+
22
−
2
View file @
e70ef33b
...
@@ -113,6 +113,7 @@ void fdt_pcie_setup(void *blob)
...
@@ -113,6 +113,7 @@ void fdt_pcie_setup(void *blob)
void
ft_cpu_setup
(
void
*
blob
,
bd_t
*
bd
)
void
ft_cpu_setup
(
void
*
blob
,
bd_t
*
bd
)
{
{
sys_info_t
sys_info
;
sys_info_t
sys_info
;
int
off
,
ndepth
=
0
;
get_sys_info
(
&
sys_info
);
get_sys_info
(
&
sys_info
);
...
@@ -133,9 +134,28 @@ void ft_cpu_setup(void *blob, bd_t *bd)
...
@@ -133,9 +134,28 @@ void ft_cpu_setup(void *blob, bd_t *bd)
fdt_fixup_memory
(
blob
,
(
u64
)
bd
->
bi_memstart
,
(
u64
)
bd
->
bi_memsize
);
fdt_fixup_memory
(
blob
,
(
u64
)
bd
->
bi_memstart
,
(
u64
)
bd
->
bi_memsize
);
/*
/*
* Setup all baudrates for the UARTs
* Fixup all UART clocks for CPU internal UARTs
* (only these UARTs are definitely clocked by gd->uart_clk)
*
* These UARTs are direct childs of /plb/opb. This code
* does not touch any UARTs that are connected to the ebc.
*/
*/
do_fixup_by_compat_u32
(
blob
,
"ns16550"
,
"clock-frequency"
,
gd
->
uart_clk
,
1
);
off
=
fdt_path_offset
(
blob
,
"/plb/opb"
);
while
((
off
=
fdt_next_node
(
blob
,
off
,
&
ndepth
))
>=
0
)
{
/*
* process all sub nodes and stop when we are back
* at the starting depth
*/
if
(
ndepth
<=
0
)
break
;
/* only update direct childs */
if
((
ndepth
==
1
)
&&
(
fdt_node_check_compatible
(
blob
,
off
,
"ns16550"
)
==
0
))
fdt_setprop
(
blob
,
off
,
"clock-frequency"
,
(
void
*
)
&
(
gd
->
uart_clk
),
4
);
}
/*
/*
* Fixup all ethernet nodes
* Fixup all ethernet nodes
...
...
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