diff options
| author | Alexey Brodkin <Alexey.Brodkin@synopsys.com> | 2014-02-04 12:56:16 +0400 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2014-02-07 08:14:33 -0500 | 
| commit | bc5d5428805c804cab67a0cc000bbf64e26acf71 (patch) | |
| tree | 09dc4419e3896424a15b0d07873890c3f8551bf2 /common/cmd_bdinfo.c | |
| parent | 2272382879d93d37e7964554cea5b0583c94c247 (diff) | |
| download | olio-uboot-2014.01-bc5d5428805c804cab67a0cc000bbf64e26acf71.tar.xz olio-uboot-2014.01-bc5d5428805c804cab67a0cc000bbf64e26acf71.zip | |
arc: bdinfo, image and arc-specific init functions declarations support
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Francois Bedard <fbedard@synopsys.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common/cmd_bdinfo.c')
| -rw-r--r-- | common/cmd_bdinfo.c | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 713de1464..15119a775 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -517,6 +517,24 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  	return 0;  } +#elif defined(CONFIG_ARC700) + +int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +{ +	bd_t *bd = gd->bd; + +	print_num("mem start",		bd->bi_memstart); +	print_lnum("mem size",		bd->bi_memsize); + +#if defined(CONFIG_CMD_NET) +	print_eth(0); +	printf("ip_addr     = %s\n", getenv("ipaddr")); +#endif +	printf("baudrate    = %d bps\n", bd->bi_baudrate); + +	return 0; +} +  #else   #error "a case for this architecture does not exist!"  #endif |