summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2008-07-18 10:43:24 +0200
committerWolfgang Denk <wd@denx.de>2008-07-20 22:59:32 +0200
commit97a3bf268d096e0e97e54048448c35114edcf557 (patch)
tree32e887466e01d4d8fb449db8479eb14919e503f3
parent0043ac55024963295fc79b39af85b6dc3b261e17 (diff)
downloadu-boot-imx-97a3bf268d096e0e97e54048448c35114edcf557.zip
u-boot-imx-97a3bf268d096e0e97e54048448c35114edcf557.tar.gz
u-boot-imx-97a3bf268d096e0e97e54048448c35114edcf557.tar.bz2
ide: Use CFG_64BIT_LBA instead of CFG_64BIT_STRTOUL
This is needed for boards that define CFG_64BIT_STRTOUL but don't define CFG_64BIT_LBA. Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--common/cmd_ide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 97a873d..56db433 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -298,7 +298,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
ulong addr = simple_strtoul(argv[2], NULL, 16);
ulong cnt = simple_strtoul(argv[4], NULL, 16);
ulong n;
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CFG_64BIT_LBA
lbaint_t blk = simple_strtoull(argv[3], NULL, 16);
printf ("\nIDE read: device %d block # %qd, count %ld ... ",
@@ -327,7 +327,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
ulong addr = simple_strtoul(argv[2], NULL, 16);
ulong cnt = simple_strtoul(argv[4], NULL, 16);
ulong n;
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CFG_64BIT_LBA
lbaint_t blk = simple_strtoull(argv[3], NULL, 16);
printf ("\nIDE write: device %d block # %qd, count %ld ... ",