wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2003 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | /* |
| 25 | * Boot support |
| 26 | */ |
| 27 | #include <common.h> |
| 28 | #include <command.h> |
Mike Frysinger | 1a8d658 | 2011-12-04 17:45:22 +0000 | [diff] [blame] | 29 | #include <linux/compiler.h> |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 30 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 31 | DECLARE_GLOBAL_DATA_PTR; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 32 | |
Mike Frysinger | 1a8d658 | 2011-12-04 17:45:22 +0000 | [diff] [blame] | 33 | __maybe_unused |
| 34 | static void print_num(const char *name, ulong value) |
| 35 | { |
| 36 | printf("%-12s= 0x%08lX\n", name, value); |
| 37 | } |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 38 | |
Simon Glass | 1a0f81d | 2011-12-06 13:37:17 +0000 | [diff] [blame] | 39 | __maybe_unused |
Mike Frysinger | 1a8d658 | 2011-12-04 17:45:22 +0000 | [diff] [blame] | 40 | static void print_eth(int idx) |
| 41 | { |
| 42 | char name[10], *val; |
| 43 | if (idx) |
| 44 | sprintf(name, "eth%iaddr", idx); |
| 45 | else |
| 46 | strcpy(name, "ethaddr"); |
| 47 | val = getenv(name); |
| 48 | if (!val) |
| 49 | val = "(not set)"; |
| 50 | printf("%-12s= %s\n", name, val); |
| 51 | } |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 52 | |
Mike Frysinger | 1a8d658 | 2011-12-04 17:45:22 +0000 | [diff] [blame] | 53 | __maybe_unused |
| 54 | static void print_lnum(const char *name, u64 value) |
| 55 | { |
| 56 | printf("%-12s= 0x%.8llX\n", name, value); |
| 57 | } |
| 58 | |
| 59 | __maybe_unused |
| 60 | static void print_mhz(const char *name, unsigned long hz) |
| 61 | { |
| 62 | char buf[32]; |
| 63 | |
| 64 | printf("%-12s= %6s MHz\n", name, strmhz(buf, hz)); |
| 65 | } |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 66 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 67 | #if defined(CONFIG_PPC) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 68 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 69 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 70 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 71 | bd_t *bd = gd->bd; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 72 | |
| 73 | #ifdef DEBUG |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 74 | print_num("bd address", (ulong)bd); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 75 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 76 | print_num("memstart", bd->bi_memstart); |
| 77 | print_lnum("memsize", bd->bi_memsize); |
| 78 | print_num("flashstart", bd->bi_flashstart); |
| 79 | print_num("flashsize", bd->bi_flashsize); |
| 80 | print_num("flashoffset", bd->bi_flashoffset); |
| 81 | print_num("sramstart", bd->bi_sramstart); |
| 82 | print_num("sramsize", bd->bi_sramsize); |
| 83 | #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || \ |
| 84 | defined(CONFIG_8260) || defined(CONFIG_E500) |
| 85 | print_num("immr_base", bd->bi_immr_base); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 86 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 87 | print_num("bootflags", bd->bi_bootflags); |
| 88 | #if defined(CONFIG_405CR) || defined(CONFIG_405EP) || \ |
| 89 | defined(CONFIG_405GP) || \ |
| 90 | defined(CONFIG_440EP) || defined(CONFIG_440EPX) || \ |
| 91 | defined(CONFIG_440GR) || defined(CONFIG_440GRX) || \ |
| 92 | defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \ |
| 93 | defined(CONFIG_XILINX_405) |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 94 | print_mhz("procfreq", bd->bi_procfreq); |
| 95 | print_mhz("plb_busfreq", bd->bi_plb_busfreq); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 96 | #if defined(CONFIG_405EP) || defined(CONFIG_405GP) || \ |
| 97 | defined(CONFIG_440EP) || defined(CONFIG_440EPX) || \ |
| 98 | defined(CONFIG_440GR) || defined(CONFIG_440GRX) || \ |
| 99 | defined(CONFIG_440SPE) || defined(CONFIG_XILINX_405) |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 100 | print_mhz("pci_busfreq", bd->bi_pci_busfreq); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 101 | #endif |
Michal Simek | 594c7b5 | 2008-06-24 09:54:09 +0200 | [diff] [blame] | 102 | #else /* ! CONFIG_405GP, CONFIG_405CR, CONFIG_405EP, CONFIG_XILINX_405, CONFIG_440EP CONFIG_440GR */ |
Jon Loeliger | f5ad378 | 2005-07-23 10:37:35 -0500 | [diff] [blame] | 103 | #if defined(CONFIG_CPM2) |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 104 | print_mhz("vco", bd->bi_vco); |
| 105 | print_mhz("sccfreq", bd->bi_sccfreq); |
| 106 | print_mhz("brgfreq", bd->bi_brgfreq); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 107 | #endif |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 108 | print_mhz("intfreq", bd->bi_intfreq); |
Jon Loeliger | f5ad378 | 2005-07-23 10:37:35 -0500 | [diff] [blame] | 109 | #if defined(CONFIG_CPM2) |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 110 | print_mhz("cpmfreq", bd->bi_cpmfreq); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 111 | #endif |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 112 | print_mhz("busfreq", bd->bi_busfreq); |
Michal Simek | 594c7b5 | 2008-06-24 09:54:09 +0200 | [diff] [blame] | 113 | #endif /* CONFIG_405GP, CONFIG_405CR, CONFIG_405EP, CONFIG_XILINX_405, CONFIG_440EP CONFIG_440GR */ |
wdenk | 337f565 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 114 | #if defined(CONFIG_MPC8220) |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 115 | print_mhz("inpfreq", bd->bi_inpfreq); |
| 116 | print_mhz("flbfreq", bd->bi_flbfreq); |
| 117 | print_mhz("pcifreq", bd->bi_pcifreq); |
| 118 | print_mhz("vcofreq", bd->bi_vcofreq); |
| 119 | print_mhz("pevfreq", bd->bi_pevfreq); |
wdenk | 337f565 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 120 | #endif |
wdenk | 0aeb853 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 121 | |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 122 | print_eth(0); |
wdenk | 54070ab | 2004-12-31 09:32:47 +0000 | [diff] [blame] | 123 | #if defined(CONFIG_HAS_ETH1) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 124 | print_eth(1); |
wdenk | 0aeb853 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 125 | #endif |
wdenk | 54070ab | 2004-12-31 09:32:47 +0000 | [diff] [blame] | 126 | #if defined(CONFIG_HAS_ETH2) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 127 | print_eth(2); |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 128 | #endif |
wdenk | 54070ab | 2004-12-31 09:32:47 +0000 | [diff] [blame] | 129 | #if defined(CONFIG_HAS_ETH3) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 130 | print_eth(3); |
wdenk | 0aeb853 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 131 | #endif |
richardretanubun | e5167f1 | 2008-09-29 18:28:23 -0400 | [diff] [blame] | 132 | #if defined(CONFIG_HAS_ETH4) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 133 | print_eth(4); |
richardretanubun | e5167f1 | 2008-09-29 18:28:23 -0400 | [diff] [blame] | 134 | #endif |
richardretanubun | e5167f1 | 2008-09-29 18:28:23 -0400 | [diff] [blame] | 135 | #if defined(CONFIG_HAS_ETH5) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 136 | print_eth(5); |
richardretanubun | e5167f1 | 2008-09-29 18:28:23 -0400 | [diff] [blame] | 137 | #endif |
| 138 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 139 | #ifdef CONFIG_HERMES |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 140 | print_mhz("ethspeed", bd->bi_ethspeed); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 141 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 142 | printf("IP addr = %pI4\n", &bd->bi_ip_addr); |
| 143 | printf("baudrate = %6ld bps\n", bd->bi_baudrate); |
| 144 | print_num("relocaddr", gd->relocaddr); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 145 | return 0; |
| 146 | } |
| 147 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 148 | #elif defined(CONFIG_NIOS2) |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 149 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 150 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 151 | { |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 152 | bd_t *bd = gd->bd; |
| 153 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 154 | print_num("mem start", (ulong)bd->bi_memstart); |
| 155 | print_lnum("mem size", (u64)bd->bi_memsize); |
| 156 | print_num("flash start", (ulong)bd->bi_flashstart); |
| 157 | print_num("flash size", (ulong)bd->bi_flashsize); |
| 158 | print_num("flash offset", (ulong)bd->bi_flashoffset); |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 159 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 160 | #if defined(CONFIG_SYS_SRAM_BASE) |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 161 | print_num ("sram start", (ulong)bd->bi_sramstart); |
| 162 | print_num ("sram size", (ulong)bd->bi_sramsize); |
| 163 | #endif |
| 164 | |
Jon Loeliger | d704d91 | 2007-07-10 11:02:44 -0500 | [diff] [blame] | 165 | #if defined(CONFIG_CMD_NET) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 166 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 167 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 168 | #endif |
| 169 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 170 | printf("baudrate = %ld bps\n", bd->bi_baudrate); |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 171 | |
| 172 | return 0; |
| 173 | } |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 174 | |
| 175 | #elif defined(CONFIG_MICROBLAZE) |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 176 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 177 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 178 | { |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 179 | bd_t *bd = gd->bd; |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 180 | print_num("mem start ", (ulong)bd->bi_memstart); |
| 181 | print_lnum("mem size ", (u64)bd->bi_memsize); |
| 182 | print_num("flash start ", (ulong)bd->bi_flashstart); |
| 183 | print_num("flash size ", (ulong)bd->bi_flashsize); |
| 184 | print_num("flash offset ", (ulong)bd->bi_flashoffset); |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 185 | #if defined(CONFIG_SYS_SRAM_BASE) |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 186 | print_num("sram start ", (ulong)bd->bi_sramstart); |
| 187 | print_num("sram size ", (ulong)bd->bi_sramsize); |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 188 | #endif |
Jon Loeliger | d704d91 | 2007-07-10 11:02:44 -0500 | [diff] [blame] | 189 | #if defined(CONFIG_CMD_NET) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 190 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 191 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 192 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 193 | printf("baudrate = %ld bps\n", (ulong)bd->bi_baudrate); |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 194 | return 0; |
| 195 | } |
wdenk | 60164a8 | 2003-10-08 23:26:14 +0000 | [diff] [blame] | 196 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 197 | #elif defined(CONFIG_SPARC) |
| 198 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 199 | int do_bdinfo(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) |
Daniel Hellstrom | 83eb3cc | 2008-03-26 22:36:03 +0100 | [diff] [blame] | 200 | { |
| 201 | bd_t *bd = gd->bd; |
Daniel Hellstrom | 83eb3cc | 2008-03-26 22:36:03 +0100 | [diff] [blame] | 202 | |
| 203 | #ifdef DEBUG |
| 204 | print_num("bd address ", (ulong) bd); |
| 205 | #endif |
| 206 | print_num("memstart ", bd->bi_memstart); |
Becky Bruce | a36601e | 2008-06-09 20:37:16 -0500 | [diff] [blame] | 207 | print_lnum("memsize ", bd->bi_memsize); |
Daniel Hellstrom | 83eb3cc | 2008-03-26 22:36:03 +0100 | [diff] [blame] | 208 | print_num("flashstart ", bd->bi_flashstart); |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 209 | print_num("CONFIG_SYS_MONITOR_BASE ", CONFIG_SYS_MONITOR_BASE); |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 210 | print_num("CONFIG_ENV_ADDR ", CONFIG_ENV_ADDR); |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 211 | printf("CONFIG_SYS_RELOC_MONITOR_BASE = 0x%lx (%d)\n", CONFIG_SYS_RELOC_MONITOR_BASE, |
| 212 | CONFIG_SYS_MONITOR_LEN); |
| 213 | printf("CONFIG_SYS_MALLOC_BASE = 0x%lx (%d)\n", CONFIG_SYS_MALLOC_BASE, |
| 214 | CONFIG_SYS_MALLOC_LEN); |
| 215 | printf("CONFIG_SYS_INIT_SP_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_INIT_SP_OFFSET, |
| 216 | CONFIG_SYS_STACK_SIZE); |
| 217 | printf("CONFIG_SYS_PROM_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET, |
| 218 | CONFIG_SYS_PROM_SIZE); |
| 219 | printf("CONFIG_SYS_GBL_DATA_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET, |
Wolfgang Denk | 0191e47 | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 220 | GENERATED_GBL_DATA_SIZE); |
Daniel Hellstrom | 83eb3cc | 2008-03-26 22:36:03 +0100 | [diff] [blame] | 221 | |
| 222 | #if defined(CONFIG_CMD_NET) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 223 | print_eth(0); |
Mike Frysinger | d5695f4 | 2009-02-17 00:00:53 -0500 | [diff] [blame] | 224 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
Daniel Hellstrom | 83eb3cc | 2008-03-26 22:36:03 +0100 | [diff] [blame] | 225 | #endif |
Mike Frysinger | d5695f4 | 2009-02-17 00:00:53 -0500 | [diff] [blame] | 226 | printf("baudrate = %6ld bps\n", bd->bi_baudrate); |
Daniel Hellstrom | 83eb3cc | 2008-03-26 22:36:03 +0100 | [diff] [blame] | 227 | return 0; |
| 228 | } |
| 229 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 230 | #elif defined(CONFIG_M68K) |
| 231 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 232 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 233 | { |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 234 | bd_t *bd = gd->bd; |
TsiChungLiew | fc3ca3b6 | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 235 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 236 | print_num("memstart", (ulong)bd->bi_memstart); |
| 237 | print_lnum("memsize", (u64)bd->bi_memsize); |
| 238 | print_num("flashstart", (ulong)bd->bi_flashstart); |
| 239 | print_num("flashsize", (ulong)bd->bi_flashsize); |
| 240 | print_num("flashoffset", (ulong)bd->bi_flashoffset); |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 241 | #if defined(CONFIG_SYS_INIT_RAM_ADDR) |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 242 | print_num("sramstart", (ulong)bd->bi_sramstart); |
| 243 | print_num("sramsize", (ulong)bd->bi_sramsize); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 244 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 245 | #if defined(CONFIG_SYS_MBAR) |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 246 | print_num("mbar", bd->bi_mbar_base); |
TsiChungLiew | fc3ca3b6 | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 247 | #endif |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 248 | print_mhz("cpufreq", bd->bi_intfreq); |
| 249 | print_mhz("busfreq", bd->bi_busfreq); |
TsiChungLiew | fc3ca3b6 | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 250 | #ifdef CONFIG_PCI |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 251 | print_mhz("pcifreq", bd->bi_pcifreq); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 252 | #endif |
TsiChungLiew | fc3ca3b6 | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 253 | #ifdef CONFIG_EXTRA_CLOCK |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 254 | print_mhz("flbfreq", bd->bi_flbfreq); |
| 255 | print_mhz("inpfreq", bd->bi_inpfreq); |
| 256 | print_mhz("vcofreq", bd->bi_vcofreq); |
TsiChungLiew | fc3ca3b6 | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 257 | #endif |
Stefan Roese | addc447 | 2007-08-18 14:37:52 +0200 | [diff] [blame] | 258 | #if defined(CONFIG_CMD_NET) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 259 | print_eth(0); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 260 | #if defined(CONFIG_HAS_ETH1) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 261 | print_eth(1); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 262 | #endif |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 263 | #if defined(CONFIG_HAS_ETH2) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 264 | print_eth(2); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 265 | #endif |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 266 | #if defined(CONFIG_HAS_ETH3) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 267 | print_eth(3); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 268 | #endif |
| 269 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 270 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
Stefan Roese | addc447 | 2007-08-18 14:37:52 +0200 | [diff] [blame] | 271 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 272 | printf("baudrate = %ld bps\n", bd->bi_baudrate); |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 273 | |
| 274 | return 0; |
| 275 | } |
| 276 | |
Mike Frysinger | f443d3c | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 277 | #elif defined(CONFIG_BLACKFIN) |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 278 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 279 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Mike Frysinger | f443d3c | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 280 | { |
Mike Frysinger | f443d3c | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 281 | bd_t *bd = gd->bd; |
| 282 | |
| 283 | printf("U-Boot = %s\n", bd->bi_r_version); |
| 284 | printf("CPU = %s\n", bd->bi_cpu); |
| 285 | printf("Board = %s\n", bd->bi_board_name); |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 286 | print_mhz("VCO", bd->bi_vco); |
| 287 | print_mhz("CCLK", bd->bi_cclk); |
| 288 | print_mhz("SCLK", bd->bi_sclk); |
Mike Frysinger | f443d3c | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 289 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 290 | print_num("boot_params", (ulong)bd->bi_boot_params); |
| 291 | print_num("memstart", (ulong)bd->bi_memstart); |
| 292 | print_lnum("memsize", (u64)bd->bi_memsize); |
| 293 | print_num("flashstart", (ulong)bd->bi_flashstart); |
| 294 | print_num("flashsize", (ulong)bd->bi_flashsize); |
| 295 | print_num("flashoffset", (ulong)bd->bi_flashoffset); |
Mike Frysinger | f443d3c | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 296 | |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 297 | print_eth(0); |
Mike Frysinger | d5695f4 | 2009-02-17 00:00:53 -0500 | [diff] [blame] | 298 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
| 299 | printf("baudrate = %d bps\n", bd->bi_baudrate); |
Mike Frysinger | f443d3c | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 300 | |
| 301 | return 0; |
| 302 | } |
| 303 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 304 | #elif defined(CONFIG_MIPS) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 305 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 306 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 307 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 308 | bd_t *bd = gd->bd; |
| 309 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 310 | print_num("boot_params", (ulong)bd->bi_boot_params); |
| 311 | print_num("memstart", (ulong)bd->bi_memstart); |
| 312 | print_lnum("memsize", (u64)bd->bi_memsize); |
| 313 | print_num("flashstart", (ulong)bd->bi_flashstart); |
| 314 | print_num("flashsize", (ulong)bd->bi_flashsize); |
| 315 | print_num("flashoffset", (ulong)bd->bi_flashoffset); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 316 | |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 317 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 318 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
| 319 | printf("baudrate = %d bps\n", bd->bi_baudrate); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 320 | |
| 321 | return 0; |
| 322 | } |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 323 | |
| 324 | #elif defined(CONFIG_AVR32) |
| 325 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 326 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 327 | { |
| 328 | bd_t *bd = gd->bd; |
| 329 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 330 | print_num("boot_params", (ulong)bd->bi_boot_params); |
| 331 | print_num("memstart", (ulong)bd->bi_memstart); |
| 332 | print_lnum("memsize", (u64)bd->bi_memsize); |
| 333 | print_num("flashstart", (ulong)bd->bi_flashstart); |
| 334 | print_num("flashsize", (ulong)bd->bi_flashsize); |
| 335 | print_num("flashoffset", (ulong)bd->bi_flashoffset); |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 336 | |
| 337 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 338 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
| 339 | printf("baudrate = %lu bps\n", bd->bi_baudrate); |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 340 | |
| 341 | return 0; |
| 342 | } |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 343 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 344 | #elif defined(CONFIG_ARM) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 345 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 346 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 347 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 348 | int i; |
| 349 | bd_t *bd = gd->bd; |
| 350 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 351 | print_num("arch_number", bd->bi_arch_number); |
| 352 | print_num("boot_params", (ulong)bd->bi_boot_params); |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 353 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 354 | for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 355 | print_num("DRAM bank", i); |
| 356 | print_num("-> start", bd->bi_dram[i].start); |
| 357 | print_num("-> size", bd->bi_dram[i].size); |
| 358 | } |
| 359 | |
Hebbar | e6c8528 | 2007-12-18 16:03:07 -0800 | [diff] [blame] | 360 | #if defined(CONFIG_CMD_NET) |
Mike Frysinger | 9335cc7 | 2009-02-11 18:50:10 -0500 | [diff] [blame] | 361 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 362 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
Hebbar | e6c8528 | 2007-12-18 16:03:07 -0800 | [diff] [blame] | 363 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 364 | printf("baudrate = %d bps\n", bd->bi_baudrate); |
Aneesh V | ecee9c8 | 2011-06-16 23:30:48 +0000 | [diff] [blame] | 365 | #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 366 | print_num("TLB addr", gd->tlb_addr); |
Heiko Schocher | aeb2991 | 2010-09-17 13:10:39 +0200 | [diff] [blame] | 367 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 368 | print_num("relocaddr", gd->relocaddr); |
| 369 | print_num("reloc off", gd->reloc_off); |
| 370 | print_num("irq_sp", gd->irq_sp); /* irq stack pointer */ |
| 371 | print_num("sp start ", gd->start_addr_sp); |
| 372 | print_num("FB base ", gd->fb_base); |
Hadli, Manjunath | 0dfccbe | 2012-02-06 00:30:44 +0000 | [diff] [blame] | 373 | /* |
| 374 | * TODO: Currently only support for davinci SOC's is added. |
| 375 | * Remove this check once all the board implement this. |
| 376 | */ |
| 377 | #ifdef CONFIG_CLOCKS |
| 378 | printf("ARM frequency = %ld MHz\n", gd->bd->bi_arm_freq); |
| 379 | printf("DSP frequency = %ld MHz\n", gd->bd->bi_dsp_freq); |
| 380 | printf("DDR frequency = %ld MHz\n", gd->bd->bi_ddr_freq); |
| 381 | #endif |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 382 | return 0; |
| 383 | } |
| 384 | |
Nobuhiro Iwamatsu | 3da00e6 | 2010-07-22 16:05:32 +0900 | [diff] [blame] | 385 | #elif defined(CONFIG_SH) |
| 386 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 387 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Nobuhiro Iwamatsu | 3da00e6 | 2010-07-22 16:05:32 +0900 | [diff] [blame] | 388 | { |
| 389 | bd_t *bd = gd->bd; |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 390 | print_num("mem start ", (ulong)bd->bi_memstart); |
| 391 | print_lnum("mem size ", (u64)bd->bi_memsize); |
| 392 | print_num("flash start ", (ulong)bd->bi_flashstart); |
| 393 | print_num("flash size ", (ulong)bd->bi_flashsize); |
| 394 | print_num("flash offset ", (ulong)bd->bi_flashoffset); |
Nobuhiro Iwamatsu | 3da00e6 | 2010-07-22 16:05:32 +0900 | [diff] [blame] | 395 | |
| 396 | #if defined(CONFIG_CMD_NET) |
| 397 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 398 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
Nobuhiro Iwamatsu | 3da00e6 | 2010-07-22 16:05:32 +0900 | [diff] [blame] | 399 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 400 | printf("baudrate = %ld bps\n", (ulong)bd->bi_baudrate); |
Nobuhiro Iwamatsu | 3da00e6 | 2010-07-22 16:05:32 +0900 | [diff] [blame] | 401 | return 0; |
| 402 | } |
| 403 | |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 404 | #elif defined(CONFIG_X86) |
| 405 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 406 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 407 | { |
| 408 | int i; |
| 409 | bd_t *bd = gd->bd; |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 410 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 411 | print_num("boot_params", (ulong)bd->bi_boot_params); |
| 412 | print_num("bi_memstart", bd->bi_memstart); |
| 413 | print_num("bi_memsize", bd->bi_memsize); |
| 414 | print_num("bi_flashstart", bd->bi_flashstart); |
| 415 | print_num("bi_flashsize", bd->bi_flashsize); |
| 416 | print_num("bi_flashoffset", bd->bi_flashoffset); |
| 417 | print_num("bi_sramstart", bd->bi_sramstart); |
| 418 | print_num("bi_sramsize", bd->bi_sramsize); |
| 419 | print_num("bi_bootflags", bd->bi_bootflags); |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 420 | print_mhz("cpufreq", bd->bi_intfreq); |
| 421 | print_mhz("busfreq", bd->bi_busfreq); |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 422 | |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 423 | for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) { |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 424 | print_num("DRAM bank", i); |
| 425 | print_num("-> start", bd->bi_dram[i].start); |
| 426 | print_num("-> size", bd->bi_dram[i].size); |
| 427 | } |
| 428 | |
| 429 | #if defined(CONFIG_CMD_NET) |
| 430 | print_eth(0); |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 431 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
Timur Tabi | 7b48070 | 2011-10-05 17:08:07 -0500 | [diff] [blame] | 432 | print_mhz("ethspeed", bd->bi_ethspeed); |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 433 | #endif |
Macpaul Lin | dfd7064 | 2011-04-27 16:28:35 +0000 | [diff] [blame] | 434 | printf("baudrate = %d bps\n", bd->bi_baudrate); |
Graeme Russ | 14917a9 | 2010-08-22 16:25:58 +1000 | [diff] [blame] | 435 | |
| 436 | return 0; |
| 437 | } |
| 438 | |
Simon Glass | 4413ed3 | 2011-09-17 06:48:47 +0000 | [diff] [blame] | 439 | #elif defined(CONFIG_SANDBOX) |
| 440 | |
| 441 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| 442 | { |
| 443 | int i; |
| 444 | bd_t *bd = gd->bd; |
| 445 | |
| 446 | print_num("boot_params", (ulong)bd->bi_boot_params); |
| 447 | |
| 448 | for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) { |
| 449 | print_num("DRAM bank", i); |
| 450 | print_num("-> start", bd->bi_dram[i].start); |
| 451 | print_num("-> size", bd->bi_dram[i].size); |
| 452 | } |
| 453 | |
| 454 | #if defined(CONFIG_CMD_NET) |
| 455 | print_eth(0); |
| 456 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
| 457 | #endif |
| 458 | print_num("FB base ", gd->fb_base); |
| 459 | return 0; |
| 460 | } |
| 461 | |
Macpaul Lin | 354b4e3 | 2011-10-19 20:41:09 +0000 | [diff] [blame] | 462 | #elif defined(CONFIG_NDS32) |
| 463 | |
| 464 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| 465 | { |
| 466 | int i; |
| 467 | bd_t *bd = gd->bd; |
| 468 | |
| 469 | print_num("arch_number", bd->bi_arch_number); |
| 470 | print_num("boot_params", (ulong)bd->bi_boot_params); |
| 471 | |
| 472 | for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) { |
| 473 | print_num("DRAM bank", i); |
| 474 | print_num("-> start", bd->bi_dram[i].start); |
| 475 | print_num("-> size", bd->bi_dram[i].size); |
| 476 | } |
| 477 | |
| 478 | #if defined(CONFIG_CMD_NET) |
| 479 | print_eth(0); |
| 480 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
| 481 | #endif |
| 482 | printf("baudrate = %d bps\n", bd->bi_baudrate); |
| 483 | |
| 484 | return 0; |
| 485 | } |
| 486 | |
Stefan Kristiansson | a646fa6 | 2011-11-18 19:21:34 +0000 | [diff] [blame] | 487 | #elif defined(CONFIG_OPENRISC) |
| 488 | |
| 489 | int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| 490 | { |
| 491 | bd_t *bd = gd->bd; |
| 492 | |
| 493 | print_num("mem start", (ulong)bd->bi_memstart); |
| 494 | print_lnum("mem size", (u64)bd->bi_memsize); |
| 495 | print_num("flash start", (ulong)bd->bi_flashstart); |
| 496 | print_num("flash size", (ulong)bd->bi_flashsize); |
| 497 | print_num("flash offset", (ulong)bd->bi_flashoffset); |
| 498 | |
| 499 | #if defined(CONFIG_CMD_NET) |
| 500 | print_eth(0); |
| 501 | printf("ip_addr = %pI4\n", &bd->bi_ip_addr); |
| 502 | #endif |
| 503 | |
| 504 | printf("baudrate = %ld bps\n", bd->bi_baudrate); |
| 505 | |
| 506 | return 0; |
| 507 | } |
| 508 | |
Reinhard Meyer | 0f8337b | 2010-06-06 19:01:59 +0200 | [diff] [blame] | 509 | #else |
| 510 | #error "a case for this architecture does not exist!" |
| 511 | #endif |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 512 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 513 | /* -------------------------------------------------------------------- */ |
| 514 | |
wdenk | f287a24 | 2003-07-01 21:06:45 +0000 | [diff] [blame] | 515 | U_BOOT_CMD( |
| 516 | bdinfo, 1, 1, do_bdinfo, |
Peter Tyser | dfb72b8 | 2009-01-27 18:03:12 -0600 | [diff] [blame] | 517 | "print Board Info structure", |
Wolfgang Denk | c54781c | 2009-05-24 17:06:54 +0200 | [diff] [blame] | 518 | "" |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 519 | ); |