mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-26 20:37:16 +00:00
Socrates: Added FPGA base address update in FDT.
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
This commit is contained in:
parent
fd51b0e0e6
commit
a23cddde1a
1 changed files with 10 additions and 0 deletions
|
@ -224,5 +224,15 @@ ft_board_setup(void *blob, bd_t *bd)
|
||||||
if (rc)
|
if (rc)
|
||||||
printf("Unable to update property NOR mapping, err=%s\n",
|
printf("Unable to update property NOR mapping, err=%s\n",
|
||||||
fdt_strerror(rc));
|
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) */
|
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
|
||||||
|
|
Loading…
Add table
Reference in a new issue