summaryrefslogtreecommitdiff
path: root/cmd/event.c
blob: b4b779ffac00d4af47247d7a960446589c0c7cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: GPL-2.0+
/*
 * Command-line access to events
 *
 * Copyright 2021 Google LLC
 * Written by Simon Glass <sjg@chromium.org>
 */

#include <common.h>
#include <command.h>
#include <event.h>

static int do_event_list(struct cmd_tbl *cmdtp, int flag, int argc,
			 char *const argv[])
{
	event_show_spy_list();

	return 0;
}

#ifdef CONFIG_SYS_LONGHELP
static char event_help_text[] =
	"list - list event spies";
#endif

U_BOOT_CMD_WITH_SUBCMDS(event, "Events", event_help_text,
	U_BOOT_SUBCMD_MKENT(list, 1, 1, do_event_list));