summaryrefslogtreecommitdiff
path: root/board/stm32f446e-eval/board.h
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2016-08-11 16:28:03 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-21 04:11:10 -0700
commitcc68693cda0d520229971b73c116d434c48bdd65 (patch)
tree29978c73b634ae6ebd505a361c96de9c697db083 /board/stm32f446e-eval/board.h
parent153c2cf49c6c225508e09a942eb90611c9d3cef9 (diff)
downloadchrome-ec-cc68693cda0d520229971b73c116d434c48bdd65.tar.gz
sweetberry: add i2c support
stm32f446 has two types of i2c blocks, the traditional stm i2c, and "fast mode plus" i2c, which need different drivers. This commit adds both, muxed in i2c-stm32f4, as the ec codebase doesn't really support multiple types of the same interface. BUG=chromium:608039 TEST=i2c works on all 4 channels BRANCH=None Change-Id: I6a9ac632f44142bd809ffee5782a192ae47af1f0 Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/368358 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/stm32f446e-eval/board.h')
-rw-r--r--board/stm32f446e-eval/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/stm32f446e-eval/board.h b/board/stm32f446e-eval/board.h
index 24735a2dc7..f70ddd5bb5 100644
--- a/board/stm32f446e-eval/board.h
+++ b/board/stm32f446e-eval/board.h
@@ -27,6 +27,11 @@
#define CONFIG_UART_TX_REQ_CH 4
#define CONFIG_UART_RX_REQ_CH 4
+#define CONFIG_I2C
+#define CONFIG_I2C_MASTER
+#define I2C_PORT_0 0
+#define FMPI2C_PORT_3 3
+
/* This is not actually an EC so disable some features. */
#undef CONFIG_WATCHDOG_HELP
#undef CONFIG_LID_SWITCH