Blame view
cmd/irq.c
706 Bytes
83d290c56 SPDX: Convert all... |
1 |
// SPDX-License-Identifier: GPL-2.0+ |
ffa4bafac Add command to en... |
2 3 |
/* * Copyright 2008 Freescale Semiconductor, Inc. |
ffa4bafac Add command to en... |
4 5 6 7 8 |
*/ #include <common.h> #include <config.h> #include <command.h> |
088f1b199 common/cmd_*.c: s... |
9 10 |
static int do_interrupts(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
ffa4bafac Add command to en... |
11 |
{ |
47e26b1bf cmd_usage(): simp... |
12 |
if (argc != 2) |
4c12eeb8b Convert cmd_usage... |
13 |
return CMD_RET_USAGE; |
ffa4bafac Add command to en... |
14 15 |
/* on */ |
47e26b1bf cmd_usage(): simp... |
16 |
if (strncmp(argv[1], "on", 2) == 0) |
ffa4bafac Add command to en... |
17 |
enable_interrupts(); |
47e26b1bf cmd_usage(): simp... |
18 |
else |
ffa4bafac Add command to en... |
19 |
disable_interrupts(); |
ffa4bafac Add command to en... |
20 21 22 23 24 25 |
return 0; } U_BOOT_CMD( interrupts, 5, 0, do_interrupts, |
2fb2604d5 Command usage cle... |
26 |
"enable or disable interrupts", |
a89c33db9 General help mess... |
27 |
"[on, off]" |
ffa4bafac Add command to en... |
28 |
); |
c25312239 Move do_irqinfo()... |
29 30 |
/* Implemented in $(CPU)/interrupts.c */ |
54841ab50 Make sure that ar... |
31 |
int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); |
c25312239 Move do_irqinfo()... |
32 33 34 35 36 37 |
U_BOOT_CMD( irqinfo, 1, 1, do_irqinfo, "print information about IRQs", "" ); |