This is an automated email from the ASF dual-hosted git repository.
simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b2b181fbd99 arch/arm/src/nrf91/nrf91_errata.c: fix Kconfig names for
errata 15 and 31
b2b181fbd99 is described below
commit b2b181fbd99ad63dc83b24edcf921d826796b8db
Author: John Daniel Kearney <[email protected]>
AuthorDate: Sat Nov 7 07:55:31 2026 +0000
arch/arm/src/nrf91/nrf91_errata.c: fix Kconfig names for errata 15 and 31
nrf91_errata_secure() tests NRF91_DCDC_ERRATA15_WORKAROUND and
NRF91_LFXO_ERRATA31_WORKAROUND, but Kconfig defines these options with
the CONFIG_ prefix. The macros tested are never defined, so the
workarounds for errata 15 (supply regulators default to LDO mode after
reset) and 31 (LFXO startup fails) are never compiled in, even though
both options default to y.
Test the CONFIG_ names instead.
Signed-off-by: John Daniel Kearney <[email protected]>
---
arch/arm/src/nrf91/nrf91_errata.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/nrf91/nrf91_errata.c
b/arch/arm/src/nrf91/nrf91_errata.c
index a0067278c34..52b2f1a200b 100644
--- a/arch/arm/src/nrf91/nrf91_errata.c
+++ b/arch/arm/src/nrf91/nrf91_errata.c
@@ -147,7 +147,7 @@ void nrf91_uicr_recover(void)
void nrf91_errata_secure(void)
{
-#ifdef NRF91_DCDC_ERRATA15_WORKAROUND
+#ifdef CONFIG_NRF91_DCDC_ERRATA15_WORKAROUND
/* Workaround for 3.7 [15] REGULATORS: Supply regulators default to
* LDO mode after reset
*/
@@ -155,7 +155,7 @@ void nrf91_errata_secure(void)
putreg32(REGULATORS_DCDCEN_ENABLE, NRF91_REGULATORS_DCDCEN);
#endif
-#ifdef NRF91_LFXO_ERRATA31_WORKAROUND
+#ifdef CONFIG_NRF91_LFXO_ERRATA31_WORKAROUND
/* Workaround for 3.15 [31] LFXO: LFXO startup fails */
*((volatile uint32_t *)0x5000470c) = 0x0;