summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2012-07-26 14:27:31 +0800
committerJustin Waters <justin.waters@timesys.com>2012-09-12 11:05:53 -0400
commit2e3e13aab2b9c991328726fe5134a6de8cba5104 (patch)
treec820c88f98fcb2d6db4665807dc76ad9b1d1a822 /common
parent8709d37d0811e3e60ccdaf09c4fbfbb63b6d65dc (diff)
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')
-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 660ff5ce64..6987f88537 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);