mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
0043ac5502
commit
97a3bf268d
1 changed files with 2 additions and 2 deletions
|
@ -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 addr = simple_strtoul(argv[2], NULL, 16);
|
||||||
ulong cnt = simple_strtoul(argv[4], NULL, 16);
|
ulong cnt = simple_strtoul(argv[4], NULL, 16);
|
||||||
ulong n;
|
ulong n;
|
||||||
#ifdef CFG_64BIT_STRTOUL
|
#ifdef CFG_64BIT_LBA
|
||||||
lbaint_t blk = simple_strtoull(argv[3], NULL, 16);
|
lbaint_t blk = simple_strtoull(argv[3], NULL, 16);
|
||||||
|
|
||||||
printf ("\nIDE read: device %d block # %qd, count %ld ... ",
|
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 addr = simple_strtoul(argv[2], NULL, 16);
|
||||||
ulong cnt = simple_strtoul(argv[4], NULL, 16);
|
ulong cnt = simple_strtoul(argv[4], NULL, 16);
|
||||||
ulong n;
|
ulong n;
|
||||||
#ifdef CFG_64BIT_STRTOUL
|
#ifdef CFG_64BIT_LBA
|
||||||
lbaint_t blk = simple_strtoull(argv[3], NULL, 16);
|
lbaint_t blk = simple_strtoull(argv[3], NULL, 16);
|
||||||
|
|
||||||
printf ("\nIDE write: device %d block # %qd, count %ld ... ",
|
printf ("\nIDE write: device %d block # %qd, count %ld ... ",
|
||||||
|
|
Loading…
Add table
Reference in a new issue