]> git.dujemihanovic.xyz Git - u-boot.git/commit
keymile: common: update to set_env_hex(), fix "pram" radix
authorNiel Fourie <lusus@denx.de>
Thu, 21 Jan 2021 12:19:19 +0000 (13:19 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:17 +0000 (14:01 +0530)
commitdf86d324c79e890141386b7e27adc1cb949e8d41
tree3693de41dfdc2aea49a28b2133621633a2fd23f5
parentc1a215b455c436532392edf9bde0ff853718b9a1
keymile: common: update to set_env_hex(), fix "pram" radix

Replace instances of sprintf()/set_env() for setting hexadecimal
values with set_env_hex().

In set_km_env() the "pram" variable was set to an hexadecimal
value, while initr_mem() expects an unsigned decimal, so use
set_env_ulong() instead.

Signed-off-by: Niel Fourie <lusus@denx.de>
Cc: Holger Brunck <holger.brunck@hitachi-powergrids.com>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
board/keymile/common/common.c