From fb5aed464fd8a64ef67e3f298ce4573bc2711305 Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Thu, 15 Nov 2018 08:57:20 +0100
Subject: [PATCH] boards/frdm-kw41z: update i2c configuration

Remove first I2C that is not reachable from the pinout and is not connected to anything. Move I2C1 as the first I2C device.
Update FXOS8700 I2C device in board configuration
---
 boards/frdm-kw41z/include/board.h       |  2 +-
 boards/frdm-kw41z/include/periph_conf.h | 13 +------------
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/boards/frdm-kw41z/include/board.h b/boards/frdm-kw41z/include/board.h
index a9be2817e9..5a6faf9507 100644
--- a/boards/frdm-kw41z/include/board.h
+++ b/boards/frdm-kw41z/include/board.h
@@ -88,7 +88,7 @@ extern "C"
  * @name    FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
  * @{
  */
-#define FXOS8700_PARAM_I2C          I2C_DEV(1)
+#define FXOS8700_PARAM_I2C          I2C_DEV(0)
 #define FXOS8700_PARAM_ADDR         0x1F
 /** @} */
 
diff --git a/boards/frdm-kw41z/include/periph_conf.h b/boards/frdm-kw41z/include/periph_conf.h
index 2330c1a386..435fac503f 100644
--- a/boards/frdm-kw41z/include/periph_conf.h
+++ b/boards/frdm-kw41z/include/periph_conf.h
@@ -245,16 +245,6 @@ static const spi_conf_t spi_config[] = {
 * @{
 */
 static const i2c_conf_t i2c_config[] = {
-    {
-        .i2c = I2C0,
-        .scl_pin = GPIO_PIN(PORT_B, 0),
-        .sda_pin = GPIO_PIN(PORT_B, 1),
-        .freq = CLOCK_BUSCLOCK,
-        .speed = I2C_SPEED_FAST,
-        .irqn = I2C0_IRQn,
-        .scl_pcr = (PORT_PCR_MUX(3)),
-        .sda_pcr = (PORT_PCR_MUX(3)),
-    },
     {
         .i2c = I2C1,
         .scl_pin = GPIO_PIN(PORT_C, 2),
@@ -267,8 +257,7 @@ static const i2c_conf_t i2c_config[] = {
     },
 };
 #define I2C_NUMOF           (sizeof(i2c_config) / sizeof(i2c_config[0]))
-#define I2C_0_ISR           (isr_i2c0)
-#define I2C_1_ISR           (isr_i2c1)
+#define I2C_0_ISR           (isr_i2c1)
 /** @} */
 
 /**
-- 
GitLab