diff options
author | Heiko Schocher <hs@denx.de> | 2009-12-03 11:21:21 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-08 22:14:07 +0100 |
commit | 4b142febff71eabdb7ddbb125c7b583b24ddc434 (patch) | |
tree | dcddb5bcbf00a28467eb8bb096fe857b8f86a858 /common/cmd_fdt.c | |
parent | 00b6d927ba8900cdf218b90b277e1090e284bea6 (diff) | |
download | u-boot-imx-4b142febff71eabdb7ddbb125c7b583b24ddc434.zip u-boot-imx-4b142febff71eabdb7ddbb125c7b583b24ddc434.tar.gz u-boot-imx-4b142febff71eabdb7ddbb125c7b583b24ddc434.tar.bz2 |
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.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 919a0bf..5df79ae 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) { |