Commit 5e84e5a7d445dd4fdcafa88675a99293587e4337

Authored by Simon Glass
Committed by Tom Rini
1 parent e46e31a83a

blackfin: Change global data baudrate to int

This doesn't need to be a long, so change it.

Also adjust bi_baudrate to be unsigned.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@ti.com>

Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff

arch/blackfin/include/asm/global_data.h
... ... @@ -41,7 +41,7 @@
41 41 bd_t *bd;
42 42 unsigned long flags;
43 43 unsigned long board_type;
44   - unsigned long baudrate;
  44 + unsigned int baudrate;
45 45 unsigned long have_console; /* serial_init() was called */
46 46 #ifdef CONFIG_PRE_CONSOLE_BUFFER
47 47 unsigned long precon_buf_idx; /* Pre-Console buffer index */
arch/blackfin/include/asm/u-boot.h
... ... @@ -29,7 +29,7 @@
29 29 #define _U_BOOT_H_ 1
30 30  
31 31 typedef struct bd_info {
32   - int bi_baudrate; /* serial console baudrate */
  32 + unsigned int bi_baudrate; /* serial console baudrate */
33 33 unsigned long bi_boot_params; /* where this board expects params */
34 34 unsigned long bi_memstart; /* start of DRAM memory */
35 35 phys_size_t bi_memsize; /* size of DRAM memory in bytes */
arch/blackfin/lib/board.c
... ... @@ -78,7 +78,7 @@
78 78 printf(" gd: %p\n", gd);
79 79 printf(" |-flags: %lx\n", gd->flags);
80 80 printf(" |-board_type: %lx\n", gd->board_type);
81   - printf(" |-baudrate: %lu\n", gd->baudrate);
  81 + printf(" |-baudrate: %u\n", gd->baudrate);
82 82 printf(" |-have_console: %lx\n", gd->have_console);
83 83 printf(" |-ram_size: %lx\n", gd->ram_size);
84 84 printf(" |-env_addr: %lx\n", gd->env_addr);
... ... @@ -304,7 +304,7 @@
304 304  
305 305 print_eth(0);
306 306 printf("ip_addr = %s\n", getenv("ipaddr"));
307   - printf("baudrate = %d bps\n", bd->bi_baudrate);
  307 + printf("baudrate = %u bps\n", bd->bi_baudrate);
308 308  
309 309 return 0;
310 310 }