Skip to content

Commit

Permalink
[nrf fromlist] samples: code_relocation_nocopy: Add configuration for…
Browse files Browse the repository at this point in the history
… nRF54H20 DK

Add nRF54H20 DK specific entries to allow using the sample on this
board.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and jukkar committed Dec 16, 2024
1 parent 71cc8b6 commit 9edbdaf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FLASH=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
&cpuapp_ram0x_region {
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RWXS>;
};

&xip_region {
status = "okay";
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RX>;
};

&mx25uw63 {
read-command = <0xEC13>;
command-length = "INSTR_2_BYTE";
address-length = "ADDR_4_BYTE";
rx-dummy = <20>;

xip-config = <1 0 0x20000000 0>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
#define EXTFLASH_ADDR DT_REG_ADDR(DT_INST(0, st_stm32_xspi_nor))
#define EXTFLASH_SIZE DT_REG_ADDR_BY_IDX(DT_INST(0, st_stm32_xspi_nor), 1)

#elif defined(CONFIG_FLASH_MSPI_NOR) && defined(CONFIG_SOC_NRF54H20_CPUAPP)

#define EXTFLASH_NODE DT_INST(0, jedec_mspi_nor)
#define EXTFLASH_ADDR 0x60000000
#define EXTFLASH_SIZE DT_PROP_OR(EXTFLASH_NODE, size_in_bytes, \
DT_PROP(EXTFLASH_NODE, size) / 8)

#else

/*
Expand Down

0 comments on commit 9edbdaf

Please sign in to comment.