summaryrefslogtreecommitdiff
path: root/board/spring
diff options
context:
space:
mode:
Diffstat (limited to 'board/spring')
-rw-r--r--board/spring/board.c9
-rw-r--r--board/spring/board.h7
2 files changed, 16 insertions, 0 deletions
diff --git a/board/spring/board.c b/board/spring/board.c
index 40b6610113..39f5fcbf72 100644
--- a/board/spring/board.c
+++ b/board/spring/board.c
@@ -95,6 +95,15 @@ const struct gpio_info gpio_list[] = {
};
BUILD_ASSERT(ARRAY_SIZE(gpio_list) == GPIO_COUNT);
+/* Pins with alternate functions */
+const struct gpio_alt_func gpio_alt_funcs[] = {
+ /*
+ * TODO(rspangler): use this instead of hard-coded register writes in
+ * board_config_pre_init().
+ */
+};
+const int gpio_alt_funcs_count = ARRAY_SIZE(gpio_alt_funcs);
+
/* Battery temperature ranges in degrees C */
const struct battery_temperature_ranges bat_temp_ranges = {
.start_charging_min_c = 5,
diff --git a/board/spring/board.h b/board/spring/board.h
index 2990a316a4..5a2f31c166 100644
--- a/board/spring/board.h
+++ b/board/spring/board.h
@@ -39,6 +39,13 @@
#ifndef __ASSEMBLER__
+/* Module IDs */
+/* TODO(rspangler): use this in place of enum console_channel as well */
+enum module_id {
+ MODULE_I2C,
+ MODULE_UART,
+};
+
/* By default, enable all console messages except keyboard */
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_KEYSCAN))