Skip to content

Commit 42e0ab2

Browse files
committed
drivers: remoteproc: initial RemoteProc driver
add OpenAMP RemoteProc driver as a counterpart to the Linux RemoteProc framework and a RPMSG endpoint as a log backend. Signed-off-by: Simon Maurer <[email protected]>
1 parent e1389fa commit 42e0ab2

File tree

17 files changed

+1060
-6
lines changed

17 files changed

+1060
-6
lines changed

drivers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ add_subdirectory_ifdef(CONFIG_PS2 ps2)
7575
add_subdirectory_ifdef(CONFIG_PTP_CLOCK ptp_clock)
7676
add_subdirectory_ifdef(CONFIG_PWM pwm)
7777
add_subdirectory_ifdef(CONFIG_REGULATOR regulator)
78+
add_subdirectory_ifdef(CONFIG_REMOTEPROC remoteproc)
7879
add_subdirectory_ifdef(CONFIG_RESET reset)
7980
add_subdirectory_ifdef(CONFIG_RETAINED_MEM retained_mem)
8081
add_subdirectory_ifdef(CONFIG_RTC rtc)

drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ source "drivers/ps2/Kconfig"
7272
source "drivers/ptp_clock/Kconfig"
7373
source "drivers/pwm/Kconfig"
7474
source "drivers/regulator/Kconfig"
75+
source "drivers/remoteproc/Kconfig"
7576
source "drivers/reset/Kconfig"
7677
source "drivers/retained_mem/Kconfig"
7778
source "drivers/rtc/Kconfig"

drivers/remoteproc/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
if(CONFIG_REMOTEPROC)
4+
zephyr_library()
5+
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
6+
zephyr_library_sources(remoteproc.c)
7+
zephyr_library_sources(vdev.c)
8+
endif()

drivers/remoteproc/Kconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright (c) 2024 Maurer Systems GmbH
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config REMOTEPROC
5+
bool "Support for Remote Processor Target"
6+
depends on OPENAMP
7+
8+
if REMOTEPROC
9+
10+
module = REMOTEPROC
11+
module-str = REMOTEPROC
12+
source "subsys/logging/Kconfig.template.log_config"
13+
14+
config REMOTEPROC_INIT_PRIORITY
15+
int "RemoteProc initialization priority"
16+
default 70
17+
help
18+
Set the priority for RemoteProc init
19+
20+
config REMOTEPROC_THREAD_PRIORITY
21+
int "Thread priority"
22+
default 10
23+
help
24+
Priority of the RemoteProc |
25+
vdev thread used to process vrings.
26+
27+
config REMOTEPROC_THREAD_STACK_SIZE
28+
int "Thread stack size"
29+
default 1024
30+
help
31+
Stack size of RemoteProc vdev thread.
32+
33+
endif # REMOTEPROC

0 commit comments

Comments
 (0)