mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
avr32: Change bi_baudrate and global data baudrate to int
These don't need to be longs, so change them. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
ecd4551f14
commit
15dc95d48a
3 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@
|
|||
typedef struct global_data {
|
||||
bd_t *bd;
|
||||
unsigned long flags;
|
||||
unsigned long baudrate;
|
||||
unsigned int baudrate;
|
||||
unsigned long stack_end; /* highest stack address */
|
||||
unsigned long have_console; /* serial_init() was called */
|
||||
#ifdef CONFIG_PRE_CONSOLE_BUFFER
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#define __ASM_U_BOOT_H__ 1
|
||||
|
||||
typedef struct bd_info {
|
||||
unsigned long bi_baudrate;
|
||||
unsigned int bi_baudrate;
|
||||
unsigned char bi_phy_id[4];
|
||||
unsigned long bi_board_number;
|
||||
void *bi_boot_params;
|
||||
|
|
|
@ -344,7 +344,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
|
||||
print_eth(0);
|
||||
printf("ip_addr = %s\n", getenv("ipaddr"));
|
||||
printf("baudrate = %lu bps\n", bd->bi_baudrate);
|
||||
printf("baudrate = %u bps\n", bd->bi_baudrate);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue