summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/config.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 818c00d0b2..9591f39e9a 100644
--- a/include/config.h
+++ b/include/config.h
@@ -879,8 +879,11 @@
/* Support EC to Internal bus bridge. */
#undef CONFIG_EC2I
-/* EC capable of sensor speeds up to 200000 mHz */
-#define CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ 200000
+/* Usually, EC capable of sensor speeds up to 200000 mHz */
+#define CONFIG_EC_MAX_SENSOR_FREQ_DEFAULT_MILLIHZ 200000
+
+/* Maximal EC sampling rate */
+#undef CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ
/*
* Allow board to override the feature bitmap provided through host command
@@ -2614,4 +2617,8 @@
#error "CONFIG_AUX_TIMER_PERIOD_MS must be at least 2x HOOK_TICK_INTERVAL_MS"
#endif
+#ifndef CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ
+#define CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ \
+ CONFIG_EC_MAX_SENSOR_FREQ_DEFAULT_MILLIHZ
+#endif
#endif /* __CROS_EC_CONFIG_H */