]> Git Repo - J-u-boot.git/blob - cmd/irq.c
Subtree merge tag 'v6.12-dts' of dts repo [1] into dts/upstream
[J-u-boot.git] / cmd / irq.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2008 Freescale Semiconductor, Inc.
4  */
5
6 #include <config.h>
7 #include <command.h>
8 #include <irq_func.h>
9
10 static int do_interrupts(struct cmd_tbl *cmdtp, int flag, int argc,
11                          char *const argv[])
12 {
13
14         if (argc != 2)
15                 return CMD_RET_USAGE;
16
17         /* on */
18         if (strncmp(argv[1], "on", 2) == 0)
19                 enable_interrupts();
20         else
21                 disable_interrupts();
22
23         return 0;
24 }
25
26 U_BOOT_CMD(
27         interrupts, 5, 0, do_interrupts,
28         "enable or disable interrupts",
29         "[on, off]"
30 );
31
32 U_BOOT_CMD(
33         irqinfo,    1,    1,     do_irqinfo,
34         "print information about IRQs",
35         ""
36 );
This page took 0.029385 seconds and 4 git commands to generate.