summaryrefslogtreecommitdiff
path: root/common/cmd_fastboot.c
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2012-07-26 14:27:31 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2012-07-26 14:27:31 +0800
commitd52f815a0dca515559d8239109fbc07a2dd99929 (patch)
treec820c88f98fcb2d6db4665807dc76ad9b1d1a822 /common/cmd_fastboot.c
parent2dbfc63a4a0206d31e419d9e595828e6408dce48 (diff)
downloadu-boot-imx-d52f815a0dca515559d8239109fbc07a2dd99929.zip
u-boot-imx-d52f815a0dca515559d8239109fbc07a2dd99929.tar.gz
u-boot-imx-d52f815a0dca515559d8239109fbc07a2dd99929.tar.bz2
ENGR00217401 common: fix build warning
Fix the build warning in uboot build. Fix bug of incorrect dereference to periph2 clock pre divider. Fix incorrect type of maxpackage size assign, even it's not used at all in fastboot. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'common/cmd_fastboot.c')
-rw-r--r--common/cmd_fastboot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index 660ff5c..6987f88 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -76,6 +76,7 @@ extern int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
#endif
extern env_t *env_ptr;
#endif
+extern int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
/* Use do_setenv and do_saveenv to permenantly save data */
int do_saveenv(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
int do_setenv(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
@@ -1151,7 +1152,7 @@ static int rx_handler (const unsigned char *buffer, unsigned int buffer_size)
sata_write[4] = length;
sprintf(source, "0x%x",
- interface.transfer_buffer);
+ (unsigned int)interface.transfer_buffer);
/* block offset */
sprintf(dest, "0x%x", ptn->start);
/* block count */
@@ -1181,7 +1182,7 @@ static int rx_handler (const unsigned char *buffer, unsigned int buffer_size)
mmc_ops:
printf("writing to partition '%s'\n", ptn->name);
char *mmc_write[5] = {"mmc", "write",
- NULL, NULL, NULL, NULL};
+ NULL, NULL, NULL};
char *mmc_dev[4] = {"mmc", "dev", NULL, NULL};
mmc_dev[2] = slot_no;
@@ -1192,7 +1193,7 @@ mmc_ops:
sprintf(slot_no, "%d",
fastboot_devinfo.dev_id);
- sprintf(source, "0x%x", interface.transfer_buffer);
+ sprintf(source, "0x%x", (unsigned int)interface.transfer_buffer);
/* partition no */
sprintf(part_no, "%d",
ptn->partition_id);