diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-10 17:14:32 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-10 17:14:32 +0400 |
commit | 8f79e4c2da54cea11bb576870059fc1ba8847ccb (patch) | |
tree | f0239cabab579b2e9ed45fca40d33c3041363792 /common/cmd_fpga.c | |
parent | eece159cddc1f64a744c82c4b9582ced45b5c45c (diff) | |
download | u-boot-8f79e4c2da54cea11bb576870059fc1ba8847ccb.tar.xz |
Add configuration for IFM AEV FIFO board.
Minor coding style cleanup.
Diffstat (limited to 'common/cmd_fpga.c')
-rw-r--r-- | common/cmd_fpga.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_fpga.c b/common/cmd_fpga.c index 0c0643ccc3..c4b7392949 100644 --- a/common/cmd_fpga.c +++ b/common/cmd_fpga.c @@ -137,9 +137,9 @@ int fpga_loadbitstream(unsigned long dev, char* fpgadata, size_t size) __FUNCTION__); return FPGA_FAIL; } - swapsize = ((unsigned int) *dataptr <<24) + - ((unsigned int) *(dataptr+1) <<16) + - ((unsigned int) *(dataptr+2) <<8 ) + + swapsize = ((unsigned int) *dataptr <<24) + + ((unsigned int) *(dataptr+1) <<16) + + ((unsigned int) *(dataptr+2) <<8 ) + ((unsigned int) *(dataptr+3) ) ; dataptr+=4; printf(" bytes in bitstream = %d\n", swapsize); @@ -217,7 +217,7 @@ int do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) PRINTF ("%s: device = %d\n", __FUNCTION__, dev); /* FIXME - this is a really weak test */ if ((argc == 3) && (dev > fpga_count ())) { /* must be buffer ptr */ - PRINTF ("%s: Assuming buffer pointer in arg 3\n", + PRINTF ("%s: Assuming buffer pointer in arg 3\n", __FUNCTION__); fpga_data = (void *) dev; PRINTF ("%s: fpga_data = 0x%x\n", |