diff options
| author | Tom Rini <[email protected]> | 2020-08-14 15:48:56 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-08-14 15:48:56 -0400 |
| commit | c0192950dfcd82035a928de32c24335f3d2c0f7a (patch) | |
| tree | 0836caec6551ce8b277714c95e7bf0003ab64311 /cmd | |
| parent | fe5c777df26dab302cbb26d5f05655e27b714987 (diff) | |
| parent | 698383fe8ea3a755f93e9e9446a5560e040c6b56 (diff) | |
Merge branch '2020-08-14-assorted-updates'
- Xen guest and some paravirt driver support.
- Aspeed SoC updates
- Broadcom IPROC PCIe RC driver
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/Kconfig | 7 | ||||
| -rw-r--r-- | cmd/Makefile | 1 | ||||
| -rw-r--r-- | cmd/demo.c | 1 | ||||
| -rw-r--r-- | cmd/pvblock.c | 30 |
4 files changed, 38 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 23d7e27dc8d..9ad511aa176 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1370,6 +1370,13 @@ config CMD_USB_MASS_STORAGE help USB mass storage support +config CMD_PVBLOCK + bool "Xen para-virtualized block device" + depends on XEN + select PVBLOCK + help + Xen para-virtualized block device support + config CMD_VIRTIO bool "virtio" depends on VIRTIO diff --git a/cmd/Makefile b/cmd/Makefile index ef2a22f9b12..3a9c9747c94 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -174,6 +174,7 @@ obj-$(CONFIG_CMD_DFU) += dfu.o obj-$(CONFIG_CMD_GPT) += gpt.o obj-$(CONFIG_CMD_ETHSW) += ethsw.o obj-$(CONFIG_CMD_AXI) += axi.o +obj-$(CONFIG_CMD_PVBLOCK) += pvblock.o # Power obj-$(CONFIG_CMD_PMIC) += pmic.o diff --git a/cmd/demo.c b/cmd/demo.c index f923533f794..7310aa2907a 100644 --- a/cmd/demo.c +++ b/cmd/demo.c @@ -130,5 +130,4 @@ U_BOOT_CMD( "demo hello <num> [<char>] Say hello\n" "demo light [<num>] Set or get the lights\n" "demo status <num> Get demo device status\n" - "demo list List available demo devices" ); diff --git a/cmd/pvblock.c b/cmd/pvblock.c new file mode 100644 index 00000000000..4e99b06122b --- /dev/null +++ b/cmd/pvblock.c @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2020 EPAM Systems Inc. + * + * XEN para-virtualized block device support + */ + +#include <blk.h> +#include <common.h> +#include <command.h> + +/* Current I/O Device */ +static int pvblock_curr_device; + +int do_pvblock(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) +{ + return blk_common_cmd(argc, argv, IF_TYPE_PVBLOCK, + &pvblock_curr_device); +} + +U_BOOT_CMD(pvblock, 5, 1, do_pvblock, + "Xen para-virtualized block device", + "info - show available block devices\n" + "pvblock device [dev] - show or set current device\n" + "pvblock part [dev] - print partition table of one or all devices\n" + "pvblock read addr blk# cnt\n" + "pvblock write addr blk# cnt - read/write `cnt'" + " blocks starting at block `blk#'\n" + " to/from memory address `addr'"); + |
