diff options
author | Suman Anna | 2019-02-14 16:54:04 -0600 |
---|---|---|
committer | Suman Anna | 2019-02-23 11:39:59 -0600 |
commit | e35c189b14cb3a2267a0cdd7e91ae2761c73f479 (patch) | |
tree | f9379a125cf9a41f30ab8e767eb5457fbe247053 /include/linux | |
parent | 786ff4b31d294b6b873f34aa8dfc5e48be43c267 (diff) | |
download | remoteproc-e35c189b14cb3a2267a0cdd7e91ae2761c73f479.tar.gz remoteproc-e35c189b14cb3a2267a0cdd7e91ae2761c73f479.tar.xz remoteproc-e35c189b14cb3a2267a0cdd7e91ae2761c73f479.zip |
irqchip/irq-pruss-intc: Add API to trigger a PRU sysevent
The PRUSS INTC can generate an interrupt to various processor
subsystems on the SoC through a set of 64 possible PRU system
events. These system events can be used by PRU client drivers
or applications for event notifications/signalling between PRUs
and MPU or other processors. A new API, pruss_intc_trigger() is
provided to MPU-side PRU client drivers/applications to be able
to trigger an event/interrupt using IRQ numbers provided by the
PRUSS-INTC irqdomain chip.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pruss.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/pruss.h b/include/linux/pruss.h new file mode 100644 index 000000000000..07b81a200027 --- /dev/null +++ b/include/linux/pruss.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | /** | ||
3 | * PRU-ICSS Subsystem user interfaces | ||
4 | * | ||
5 | * Copyright (C) 2015-2019 Texas Instruments Incorporated - http://www.ti.com | ||
6 | * Suman Anna <s-anna@ti.com> | ||
7 | */ | ||
8 | |||
9 | #ifndef __LINUX_PRUSS_H | ||
10 | #define __LINUX_PRUSS_H | ||
11 | |||
12 | #if IS_ENABLED(CONFIG_TI_PRUSS) | ||
13 | |||
14 | int pruss_intc_trigger(unsigned int irq); | ||
15 | |||
16 | #else | ||
17 | |||
18 | static inline int pruss_intc_trigger(unsigned int irq) | ||
19 | { | ||
20 | return -ENOTSUPP; | ||
21 | } | ||
22 | |||
23 | #endif /* CONFIG_TI_PRUSS */ | ||
24 | |||
25 | #endif /* __LINUX_PRUSS_H */ | ||