]> git.sur5r.net Git - u-boot/commit
arm: imx: cx9020: remove usage of mx53_dram_size
authorPatrick Bruenn <p.bruenn@beckhoff.com>
Tue, 16 Jan 2018 06:59:01 +0000 (07:59 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
commita75a3ef3059bef48529d5bede93da671ea0376bb
tree1de77f798c991b261d47c261807d9f5fe2ea4fb1
parent886678fcf715d7007d1c6e6358eb0ea952c666d4
arm: imx: cx9020: remove usage of mx53_dram_size

Static variables are not available during board_init_f().
'static uint32_t mx53_dram_size[2];' was used in board specific
dram_init(), dram_init_banksize() and get_effective_memsize() to avoid
multiple calls to get_ram_size().

However multiple calls are better than undefined behavior...
This fixes:
https://lists.denx.de/pipermail/u-boot/2017-November/313214.html
https://lists.denx.de/pipermail/u-boot/2017-December/314480.html

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
board/beckhoff/mx53cx9020/mx53cx9020.c