Merge tag 'xilinx-for-v2025.04-rc2' of https://source.denx.de/u-boot/custodians/u...
[u-boot.git] / cmd / irq.c
blobda223b4b2cce77c4b851b152f4b74693869c23c7
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * Copyright 2008 Freescale Semiconductor, Inc.
4 */
6 #include <config.h>
7 #include <command.h>
8 #include <irq_func.h>
10 static int do_interrupts(struct cmd_tbl *cmdtp, int flag, int argc,
11 char *const argv[])
14 if (argc != 2)
15 return CMD_RET_USAGE;
17 /* on */
18 if (strncmp(argv[1], "on", 2) == 0)
19 enable_interrupts();
20 else
21 disable_interrupts();
23 return 0;
26 U_BOOT_CMD(
27 interrupts, 5, 0, do_interrupts,
28 "enable or disable interrupts",
29 "[on, off]"
32 U_BOOT_CMD(
33 irqinfo, 1, 1, do_irqinfo,
34 "print information about IRQs",