]> git.baikalelectronics.ru Git - uboot.git/commit
xilinx: Setup bootm variables
authorMichal Simek <michal.simek@xilinx.com>
Thu, 9 Jul 2020 13:57:56 +0000 (15:57 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 20 Aug 2020 07:46:55 +0000 (09:46 +0200)
commitb49cc3386bad128853fb32ef107ef4a5fed10675
tree6eda9dc2212c4700b5336a20d0165763161b7286
parent3bd9f072f7fac9381f69ee6a43e4b159067c826c
xilinx: Setup bootm variables

On system with PL DDR which is placed before PS DDR in DT
env_get_bootm_size() and env_get_bootm_low() without specifying bootm_low
and bootm_size variables are taking by default gd->bd->bi_dram[0].start and
gd->bd->bi_dram[0].size. As you see 0 means bank 0 which doesn't need to be
PS ddr and even can be memory above 39bit VA which is what U-Boot supports
now.
That's why setup bootm variables based on ram_base/ram_size setting to make
sure that boot images are placed to the same location as U-Boot is placed.
This location should be by default location where OS can boot from.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/board.c