Skip to content

Commit 9274158

Browse files
committed
[nrf fromlist] drivers: adc: nrfx_saadc: Use CONFIG_NRF_PLATFORM_HALTIUM
Upstream PR: zephyrproject-rtos/zephyr#80226 Apply it in a few more locations that were missed in 5a4655f. Signed-off-by: Grzegorz Swiderski <[email protected]> (cherry picked from commit c6630e478200b5a6b4d7b124138250d6b2e16c94)
1 parent d8b5dd7 commit 9274158

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/adc/adc_nrfx_saadc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ BUILD_ASSERT((NRF_SAADC_AIN0 == NRF_SAADC_INPUT_AIN0) &&
6666
"Definitions from nrf-adc.h do not match those from nrf_saadc.h");
6767
#endif
6868

69-
#if defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280)
69+
#if defined(CONFIG_NRF_PLATFORM_HALTIUM)
7070

71-
/* nRF54H20 and nRF9280 always use bounce buffers in RAM */
71+
/* Haltium devices always use bounce buffers in RAM */
7272

7373
#define SAADC_MEMORY_SECTION \
7474
COND_CODE_1(DT_NODE_HAS_PROP(DT_NODELABEL(adc), memory_regions), \
@@ -80,7 +80,7 @@ static uint16_t adc_samples_buffer[SAADC_CH_NUM] SAADC_MEMORY_SECTION;
8080

8181
#define ADC_BUFFER_IN_RAM
8282

83-
#endif /* defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280) */
83+
#endif /* defined(CONFIG_NRF_PLATFORM_HALTIUM) */
8484

8585
struct driver_data {
8686
struct adc_context ctx;
@@ -669,7 +669,7 @@ static const struct adc_driver_api adc_nrfx_driver_api = {
669669
#endif
670670
#if defined(CONFIG_SOC_NRF54L15)
671671
.ref_internal = 900,
672-
#elif defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280)
672+
#elif defined(CONFIG_NRF_PLATFORM_HALTIUM)
673673
.ref_internal = 1024,
674674
#else
675675
.ref_internal = 600,

0 commit comments

Comments
 (0)