Skip to content

Commit b51c9a0

Browse files
committed
drivers: adc: add dma support for ambiq adc driver
This commit adds dma support for ambiq adc driver Signed-off-by: Hao Luo <[email protected]>
1 parent af46f62 commit b51c9a0

File tree

7 files changed

+221
-82
lines changed

7 files changed

+221
-82
lines changed

boards/ambiq/apollo510_evb/apollo510_evb-pinctrl.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
adc0_default: adc0_default{
2828
group1 {
29-
pinmux = <ADCSE4_P15>, <ADCSE7_P12>;
29+
pinmux = <ADCSE5_P14>, <ADCSE6_P13>;
3030
drive-strength = "0.1";
3131
};
3232
};

drivers/adc/Kconfig.ambiq

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,17 @@ config ADC_AMBIQ
88
depends on DT_HAS_AMBIQ_ADC_ENABLED
99
select AMBIQ_HAL
1010
select AMBIQ_HAL_USE_ADC
11+
select AMBIQ_HAL_USE_TIMER if SOC_SERIES_APOLLO3X
1112
help
1213
Enables the Adc driver for Ambiq devices.
14+
15+
if ADC_AMBIQ
16+
17+
config ADC_AMBIQ_HANDLE_CACHE
18+
bool "Turn on cache handling in adc driver"
19+
default y
20+
depends on CACHE_MANAGEMENT && DCACHE
21+
help
22+
Disable this if cache has been handled in upper layers.
23+
24+
endif # ADC_AMBIQ

0 commit comments

Comments
 (0)