Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jack Humbert
reform-boundary-uboot
Commits
1320112c
Commit
1320112c
authored
10 years ago
by
Tom Rini
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-fdt
parents
9ec84f10
c71a0164
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
common/bootm.c
+1
-1
1 addition, 1 deletion
common/bootm.c
common/cmd_fdt.c
+5
-5
5 additions, 5 deletions
common/cmd_fdt.c
common/image-fdt.c
+1
-1
1 addition, 1 deletion
common/image-fdt.c
include/fdt_support.h
+1
-1
1 addition, 1 deletion
include/fdt_support.h
with
8 additions
and
8 deletions
common/bootm.c
+
1
−
1
View file @
1320112c
...
@@ -233,7 +233,7 @@ static int bootm_find_fdt(int flag, int argc, char * const argv[])
...
@@ -233,7 +233,7 @@ static int bootm_find_fdt(int flag, int argc, char * const argv[])
return
1
;
return
1
;
}
}
set_working_fdt_addr
(
images
.
ft_addr
);
set_working_fdt_addr
(
(
ulong
)
images
.
ft_addr
);
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
common/cmd_fdt.c
+
5
−
5
View file @
1320112c
...
@@ -38,13 +38,13 @@ static int is_printable_string(const void *data, int len);
...
@@ -38,13 +38,13 @@ static int is_printable_string(const void *data, int len);
*/
*/
struct
fdt_header
*
working_fdt
;
struct
fdt_header
*
working_fdt
;
void
set_working_fdt_addr
(
void
*
addr
)
void
set_working_fdt_addr
(
ulong
addr
)
{
{
void
*
buf
;
void
*
buf
;
buf
=
map_sysmem
(
(
ulong
)
addr
,
0
);
buf
=
map_sysmem
(
addr
,
0
);
working_fdt
=
buf
;
working_fdt
=
buf
;
setenv_
addr
(
"fdtaddr"
,
addr
);
setenv_
ulong
(
"fdtaddr"
,
addr
);
}
}
/*
/*
...
@@ -111,7 +111,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
...
@@ -111,7 +111,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if
(
!
blob
||
!
fdt_valid
(
&
blob
))
if
(
!
blob
||
!
fdt_valid
(
&
blob
))
return
1
;
return
1
;
printf
(
"The address of the fdt is %#08lx
\n
"
,
printf
(
"The address of the fdt is %#08lx
\n
"
,
control
?
(
ulong
)
blob
:
control
?
(
ulong
)
map_to_sysmem
(
blob
)
:
getenv_hex
(
"fdtaddr"
,
0
));
getenv_hex
(
"fdtaddr"
,
0
));
return
0
;
return
0
;
}
}
...
@@ -123,7 +123,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
...
@@ -123,7 +123,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if
(
control
)
if
(
control
)
gd
->
fdt_blob
=
blob
;
gd
->
fdt_blob
=
blob
;
else
else
set_working_fdt_addr
(
(
void
*
)
blob
);
set_working_fdt_addr
(
addr
);
if
(
argc
>=
2
)
{
if
(
argc
>=
2
)
{
int
len
;
int
len
;
...
...
This diff is collapsed.
Click to expand it.
common/image-fdt.c
+
1
−
1
View file @
1320112c
...
@@ -190,7 +190,7 @@ int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size)
...
@@ -190,7 +190,7 @@ int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size)
*
of_flat_tree
=
of_start
;
*
of_flat_tree
=
of_start
;
*
of_size
=
of_len
;
*
of_size
=
of_len
;
set_working_fdt_addr
(
*
of_flat_tree
);
set_working_fdt_addr
(
(
ulong
)
*
of_flat_tree
);
return
0
;
return
0
;
error:
error:
...
...
This diff is collapsed.
Click to expand it.
include/fdt_support.h
+
1
−
1
View file @
1320112c
...
@@ -100,7 +100,7 @@ void ft_pci_setup(void *blob, bd_t *bd);
...
@@ -100,7 +100,7 @@ void ft_pci_setup(void *blob, bd_t *bd);
*/
*/
int
ft_system_setup
(
void
*
blob
,
bd_t
*
bd
);
int
ft_system_setup
(
void
*
blob
,
bd_t
*
bd
);
void
set_working_fdt_addr
(
void
*
addr
);
void
set_working_fdt_addr
(
ulong
addr
);
int
fdt_shrink_to_minimum
(
void
*
blob
);
int
fdt_shrink_to_minimum
(
void
*
blob
);
int
fdt_increase_size
(
void
*
fdt
,
int
add_len
);
int
fdt_increase_size
(
void
*
fdt
,
int
add_len
);
...
...
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