]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: ddr: socfpga: fix gen5 ddr driver to not use bss
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 11 Jul 2019 19:18:12 +0000 (21:18 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 21 Jul 2019 10:45:01 +0000 (12:45 +0200)
commit285b3cb939a8f70d5233fd12e0b9f840eac53812
tree43544060c6cc8fe57fc2958ebc4acb9c15964c40
parentb94655a4b7c8ced797c7d759a62eb2b5ba3ddb94
dm: ddr: socfpga: fix gen5 ddr driver to not use bss

This driver uses bss from SPL board_init_f(). Change it to move all the
data from bss to a common struct allocated on the stack (64 byte).

In addition to saving 28 bytes of bss, the code even gets 264 bytes
smaller.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
drivers/ddr/altera/sequencer.c
drivers/ddr/altera/sequencer.h