Skip to content

Commit

Permalink
suit: Add flash_ipuc pseudo-driver
Browse files Browse the repository at this point in the history
Add pseudo-driver to access NVM memory through flash API using IPUC SSF
services.

Ref: NCSDK-30809

Signed-off-by: Tomasz Chyrowicz <[email protected]>
  • Loading branch information
tomchy committed Jan 24, 2025
1 parent 2e8ae9b commit 6281bd4
Show file tree
Hide file tree
Showing 7 changed files with 609 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@
- "include/fw_info.*"
- "include/mgmt/*"
- "include/dfu/**/*"
- "include/drivers/flash/flash_ipuc.h"
- "include/net/**/*"
- "lib/lte_link_control/**/*"
- "modules/mcuboot/**/*"
- "modules/trusted-firmware-m/*"
- "drivers/flash/flash_ipuc/*"
- "samples/cellular/*fota/**/*"
- "samples/cellular/fmfu_smp_svr/**/*"
- "samples/cellular/http_update/**/*"
Expand Down
2 changes: 2 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@
/drivers/bluetooth/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-dragoon
/drivers/entropy/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-aegir
/drivers/flash/ @nrfconnect/ncs-co-drivers
/drivers/flash/flash_ipuc/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-charon
/drivers/gpio/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
/drivers/hw_cc3xx/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-aegir
/drivers/mpsl/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-dragoon
Expand Down Expand Up @@ -328,6 +329,7 @@
/include/dfu/suit_dfu_fetch_source.h @nrfconnect/ncs-charon
/include/dfu/suit_dfu.h @nrfconnect/ncs-charon
/include/drivers/flash/ @nrfconnect/ncs-co-drivers
/include/drivers/flash/flash_ipuc.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-charon
/include/drivers/gpio/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
/include/drivers/bme68x_iaq.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-cia
/include/drivers/mspi/nrfe_mspi.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
Expand Down
1 change: 1 addition & 0 deletions drivers/flash/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
#

add_subdirectory_ifdef(CONFIG_FLASH_RPC flash_rpc)
add_subdirectory_ifdef(CONFIG_FLASH_IPUC flash_ipuc)
19 changes: 19 additions & 0 deletions drivers/flash/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

config FLASH_IPUC
bool "Flash over SUIT IPUC [EXPERIMENTAL]"
depends on SUIT
depends on SUIT_UTILS
depends on SUIT_IPUC
select EXPERIMENTAL

if FLASH_IPUC

config FLASH_IPUC_COUNT
int "Number of available flash IPUC drivers"
default 1

module = FLASH_IPUC
module-str = Flash over SUIT IPUC
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

endif # FLASH_IPUC

config FLASH_RPC
bool "Flash over RPC [EXPERIMENTAL]"
select NRF_RPC
Expand Down
10 changes: 10 additions & 0 deletions drivers/flash/flash_ipuc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Copyright (c) 2025 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

zephyr_library()
zephyr_library_sources(flash_ipuc.c)
zephyr_library_link_libraries(suit_utils)
zephyr_library_link_libraries(suit_ipuc)
Loading

0 comments on commit 6281bd4

Please sign in to comment.