summaryrefslogtreecommitdiffstats
path: root/common/cmd_fdt.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-12-03 11:21:21 +0100
committerWolfgang Denk <wd@denx.de>2009-12-08 22:14:07 +0100
commit4b142febff71eabdb7ddbb125c7b583b24ddc434 (patch)
treedcddb5bcbf00a28467eb8bb096fe857b8f86a858 /common/cmd_fdt.c
parent00b6d927ba8900cdf218b90b277e1090e284bea6 (diff)
downloadtalos-obmc-uboot-4b142febff71eabdb7ddbb125c7b583b24ddc434.tar.gz
talos-obmc-uboot-4b142febff71eabdb7ddbb125c7b583b24ddc434.zip
common: delete CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL
There is more and more usage of printing 64bit values, so enable this feature generally, and delete the CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL defines. Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common/cmd_fdt.c')
-rw-r--r--common/cmd_fdt.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index 919a0bf6e7..5df79ae3e1 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -364,13 +364,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} else if (strncmp(argv[1], "me", 2) == 0) {
uint64_t addr, size;
int err;
-#ifdef CONFIG_SYS_64BIT_STRTOUL
- addr = simple_strtoull(argv[2], NULL, 16);
- size = simple_strtoull(argv[3], NULL, 16);
-#else
- addr = simple_strtoul(argv[2], NULL, 16);
- size = simple_strtoul(argv[3], NULL, 16);
-#endif
+ addr = simple_strtoull(argv[2], NULL, 16);
+ size = simple_strtoull(argv[3], NULL, 16);
err = fdt_fixup_memory(working_fdt, addr, size);
if (err < 0)
return err;
@@ -402,13 +397,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} else if (argv[2][0] == 'a') {
uint64_t addr, size;
int err;
-#ifdef CONFIG_SYS_64BIT_STRTOUL
addr = simple_strtoull(argv[3], NULL, 16);
size = simple_strtoull(argv[4], NULL, 16);
-#else
- addr = simple_strtoul(argv[3], NULL, 16);
- size = simple_strtoul(argv[4], NULL, 16);
-#endif
err = fdt_add_mem_rsv(working_fdt, addr, size);
if (err < 0) {
OpenPOWER on IntegriCloud