summaryrefslogtreecommitdiffstats
path: root/common/cmd_net.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-12-10 11:08:06 +0000
committerWolfgang Denk <wd@denx.de>2012-03-18 21:42:56 +0100
commit573f14fe4ed5b803207824be9e3147e894b68f8b (patch)
treebc6f50c9210dc98f8eceb90ced6b518864a6317b /common/cmd_net.c
parent3a608ca01d76e8cb90dcc8dc1a22cde98cdca3ab (diff)
downloadtalos-obmc-uboot-573f14fe4ed5b803207824be9e3147e894b68f8b.tar.gz
talos-obmc-uboot-573f14fe4ed5b803207824be9e3147e894b68f8b.zip
bootstage: Plumb in bootstage calls for basic operations
This inserts bootstage calls into tftp, usb start and bootm. We could go further, but this is a reasonable start to illustrate the concept. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cmd_net.c')
-rw-r--r--common/cmd_net.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c
index 6139188bd4..65f32bceef 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -43,7 +43,12 @@ U_BOOT_CMD(
int do_tftpb (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
- return netboot_common(TFTPGET, cmdtp, argc, argv);
+ int ret;
+
+ bootstage_mark_name(BOOTSTAGE_KERNELREAD_START, "tftp_start");
+ ret = netboot_common(TFTPGET, cmdtp, argc, argv);
+ bootstage_mark_name(BOOTSTAGE_KERNELREAD_STOP, "tftp_done");
+ return ret;
}
U_BOOT_CMD(
OpenPOWER on IntegriCloud