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