]> git.dujemihanovic.xyz Git - u-boot.git/commit
board/km/common: fix pnvramaddr and varaddr
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Tue, 19 Jan 2021 10:41:00 +0000 (10:41 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:17 +0000 (14:01 +0530)
commite081d9441e070f781e6a5bd693ce9a6a5a21aba7
tree5d801fd07a894f6d8556c2d1b49aa977f50a5f96
parentd141f4b298de23019405c68ccfb2a0de059e5565
board/km/common: fix pnvramaddr and varaddr

Take into account SDRAM_BASE address when calculating pnvramaddr and
varaddr offsets.
Up to now Keymile designs had SDRAM_BASE equal to zero and the offsets
where calculated correctly, this fix is for the upcoming designs that
have SDRAM_BASE different then zero.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/keymile/common/common.c