summaryrefslogtreecommitdiff
path: root/boards
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2017-01-23 12:43:14 +0000
committerMarcus Shawcroft <marcus.shawcroft@arm.com>2017-01-25 09:59:27 +0000
commit38139df59426e65f9bc6abddb4cacb65e013adae (patch)
treeb0cfed103d4404aeba89f952a0930ccd4648086d /boards
parent2dd2dfc3f9dc0481508f731006386966607678c1 (diff)
boards/bbc_microbit: Enable and configure default I2C_NRF if I2C is enabled.
Change-Id: If122db3b78940de4825a31575e7a42ce1fc58ce1 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'boards')
-rw-r--r--boards/arm/bbc_microbit/Kconfig.defconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/boards/arm/bbc_microbit/Kconfig.defconfig b/boards/arm/bbc_microbit/Kconfig.defconfig
index e555e5162..5ad259bab 100644
--- a/boards/arm/bbc_microbit/Kconfig.defconfig
+++ b/boards/arm/bbc_microbit/Kconfig.defconfig
@@ -26,4 +26,31 @@ config UART_NRF5_GPIO_RX_PIN
endif # UART_NRF5
+if I2C
+
+config I2C_NRF5
+ def_bool y
+
+config I2C_0
+ default y
+
+config I2C_0_IRQ_PRI
+ default 1
+
+endif # I2C
+
+if I2C_NRF5
+
+config I2C_NRF5_GPIO_SCL_PIN
+ default 0
+
+config I2C_NRF5_GPIO_SCA_PIN
+ default 30
+
+config I2C_0_DEFAULT_CFG
+ # Standard speed, master
+ default 0x11
+
+endif
+
endif # BOARD_BBC_MICROBIT