]> git.baikalelectronics.ru Git - uboot.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)
commitd4fbe3845c3c0383a034365034f2300d8431d68b
tree3693de41dfdc2aea49a28b2133621633a2fd23f5
parent8ae0542ae5f6ddfa6cf85962191d0c5f0bd18704
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