summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/adc.h4
-rw-r--r--include/config.h14
2 files changed, 16 insertions, 2 deletions
diff --git a/include/adc.h b/include/adc.h
index f7fbb0d3ac..a42fc376ee 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -33,7 +33,9 @@ int adc_read_channel(enum adc_channel ch);
* Read all ADC channels.
*
* @param data Destination array for channel data; must be
- * ADC_CH_COUNT elements long.
+ * ADC_CH_COUNT elements long for single-read profile,
+ * or sized according to dma_buffer_size in
+ * continuous profiles.
*
* @return EC_SUCCESS, or non-zero on error.
*/
diff --git a/include/config.h b/include/config.h
index 1ca46f1d98..24daae1b34 100644
--- a/include/config.h
+++ b/include/config.h
@@ -84,13 +84,25 @@
/* Compile chip support for analog-to-digital convertor */
#undef CONFIG_ADC
-/* ADC sample time selection. The value is chip-dependent. */
+/*
+ * ADC sample time selection. The value is chip-dependent.
+ * TODO: Replace this with CONFIG_ADC_PROFILE entries.
+ */
#undef CONFIG_ADC_SAMPLE_TIME
/* Include the ADC analog watchdog feature in the ADC code */
#define CONFIG_ADC_WATCHDOG
/*
+ * Chip-dependent ADC configuration - select one.
+ * SINGLE - Sample all inputs once when requested.
+ * FAST_CONTINUOUS - Sample all inputs continuously using DMA, with minimal
+ * sample time.
+ */
+#define CONFIG_ADC_PROFILE_SINGLE
+#undef CONFIG_ADC_PROFILE_FAST_CONTINUOUS
+
+/*
* Some ALS modules may be connected to the EC. We need the command, and
* specific drivers for each module.
*/