summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/common/cmd_thordown.c
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/u-boot/common/cmd_thordown.c
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/u-boot/common/cmd_thordown.c')
-rw-r--r--qemu/roms/u-boot/common/cmd_thordown.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/qemu/roms/u-boot/common/cmd_thordown.c b/qemu/roms/u-boot/common/cmd_thordown.c
deleted file mode 100644
index 2dd750928..000000000
--- a/qemu/roms/u-boot/common/cmd_thordown.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * cmd_thordown.c -- USB TIZEN "THOR" Downloader gadget
- *
- * Copyright (C) 2013 Lukasz Majewski <l.majewski@samsung.com>
- * All rights reserved.
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <common.h>
-#include <thor.h>
-#include <dfu.h>
-#include <g_dnl.h>
-#include <usb.h>
-
-int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
- if (argc < 4)
- return CMD_RET_USAGE;
-
- char *usb_controller = argv[1];
- char *interface = argv[2];
- char *devstring = argv[3];
-
- int ret;
-
- puts("TIZEN \"THOR\" Downloader\n");
-
- ret = dfu_init_env_entities(interface, simple_strtoul(devstring,
- NULL, 10));
- if (ret)
- return ret;
-
- int controller_index = simple_strtoul(usb_controller, NULL, 0);
- ret = board_usb_init(controller_index, USB_INIT_DEVICE);
- if (ret) {
- error("USB init failed: %d", ret);
- ret = CMD_RET_FAILURE;
- goto exit;
- }
-
- g_dnl_register("usb_dnl_thor");
-
- ret = thor_init();
- if (ret) {
- error("THOR DOWNLOAD failed: %d", ret);
- ret = CMD_RET_FAILURE;
- goto exit;
- }
-
- ret = thor_handle();
- if (ret) {
- error("THOR failed: %d", ret);
- ret = CMD_RET_FAILURE;
- goto exit;
- }
-
-exit:
- g_dnl_unregister();
- dfu_free_entities();
-
- return ret;
-}
-
-U_BOOT_CMD(thordown, CONFIG_SYS_MAXARGS, 1, do_thor_down,
- "TIZEN \"THOR\" downloader",
- "<USB_controller> <interface> <dev>\n"
- " - device software upgrade via LTHOR TIZEN dowload\n"
- " program via <USB_controller> on device <dev>,\n"
- " attached to interface <interface>\n"
-);