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
a23cddde
Commit
a23cddde
authored
Jun 06, 2008
by
Sergei Poselenov
Committed by
Andrew Fleming-AFLEMING
Jun 11, 2008
Browse files
Socrates: Added FPGA base address update in FDT.
Signed-off-by:
Sergei Poselenov
<
sposelenov@emcraft.com
>
parent
fd51b0e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
board/socrates/socrates.c
View file @
a23cddde
...
...
@@ -224,5 +224,15 @@ ft_board_setup(void *blob, bd_t *bd)
if
(
rc
)
printf
(
"Unable to update property NOR mapping, err=%s
\n
"
,
fdt_strerror
(
rc
));
#if defined (CFG_FPGA_BASE)
memset
(
val
,
0
,
sizeof
(
val
));
val
[
0
]
=
CFG_FPGA_BASE
;
rc
=
fdt_find_and_setprop
(
blob
,
"/localbus/fpga"
,
"virtual-reg"
,
val
,
sizeof
(
val
),
1
);
if
(
rc
)
printf
(
"Unable to update property
\"
fpga
\"
, err=%s
\n
"
,
fdt_strerror
(
rc
));
#endif
}
#endif
/* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
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