Skip to content

Commit 218257e

Browse files
committed
[nrf fromtree] drivers: ieee802154: nrf5: support reading EUI64 from UICR on nRF54L
Extend the existing code for reading EUI64 from UICR to support nRF54L SoC series as well. Signed-off-by: Damian Krolik <[email protected]> (cherry picked from commit 1e64c29)
1 parent 59275b9 commit 218257e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/ieee802154/Kconfig.nrf5

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ config IEEE802154_NRF5_EXT_IRQ_MGMT
4141
config IEEE802154_NRF5_UICR_EUI64_ENABLE
4242
bool "Support usage of EUI64 value stored in UICR registers"
4343
depends on !IEEE802154_VENDOR_OUI_ENABLE
44-
depends on SOC_SERIES_NRF52X || SOC_SERIES_NRF53X
44+
depends on SOC_SERIES_NRF52X || SOC_SERIES_NRF53X || SOC_SERIES_NRF54LX
4545
help
4646
This option enables setting custom vendor EUI64 value
4747
stored in User information configuration registers (UICR).
@@ -55,6 +55,7 @@ config IEEE802154_NRF5_UICR_EUI64_REG
5555
int "UICR base register for the EUI64 value"
5656
range 0 30 if SOC_SERIES_NRF52X
5757
range 0 190 if SOC_SERIES_NRF53X
58+
range 0 318 if SOC_SERIES_NRF54LX
5859
default 0
5960
help
6061
Base of the two consecutive registers from the UICR customer

drivers/ieee802154/ieee802154_nrf5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ static const struct device *nrf5_dev;
7272
#define NSEC_PER_TEN_SYMBOLS (10 * IEEE802154_PHY_OQPSK_780_TO_2450MHZ_SYMBOL_PERIOD_NS)
7373

7474
#if defined(CONFIG_IEEE802154_NRF5_UICR_EUI64_ENABLE)
75-
#if defined(CONFIG_SOC_NRF5340_CPUAPP)
75+
#if defined(CONFIG_SOC_NRF5340_CPUAPP) || defined(CONFIG_SOC_SERIES_NRF54LX)
7676
#if defined(CONFIG_TRUSTED_EXECUTION_NONSECURE)
7777
#error "NRF_UICR->OTP is not supported to read from non-secure"
7878
#else
7979
#define EUI64_ADDR (NRF_UICR->OTP)
8080
#endif /* CONFIG_TRUSTED_EXECUTION_NONSECURE */
8181
#else
8282
#define EUI64_ADDR (NRF_UICR->CUSTOMER)
83-
#endif /* CONFIG_SOC_NRF5340_CPUAPP */
83+
#endif /* CONFIG_SOC_NRF5340_CPUAPP || CONFIG_SOC_SERIES_NRF54LX*/
8484
#endif /* CONFIG_IEEE802154_NRF5_UICR_EUI64_ENABLE */
8585

8686
#if defined(CONFIG_IEEE802154_NRF5_UICR_EUI64_ENABLE)

0 commit comments

Comments
 (0)