Add getenv_hex() to return an environment variable as hex
authorSimon Glass <sjg@chromium.org>
Sat, 20 Apr 2013 08:42:43 +0000 (08:42 +0000)
committerTom Rini <trini@ti.com>
Wed, 1 May 2013 15:17:21 +0000 (11:17 -0400)
commit76b8f79c299ee8029c64c14a65cb0615bad77319
tree083278d0544b8f486c3224fcff4703ebaafd40c5
parentd14da91307d8378ea9a99044165e83b79dec67a1
Add getenv_hex() to return an environment variable as hex

This conversion is required in a number of places in U-Boot. Add a
standard function to provide this feature, so we avoid all the different
variations in the way it is coded.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_nvedit.c
include/common.h