Skip to content
Permalink
Browse files

soc: sam0: add I2C to dts_fixup.h

tests/drivers/i2c/i2c_api wants to have CONFIG_I2C_0_NAME defined.
Add it to dts_fixup.h as was done for Watchdog and & timer.

Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  • Loading branch information...
benpicco authored and MaureenHelm committed May 29, 2019
1 parent 906f378 commit 6b46d3892752a37115ac41dfcac5b96ea925fe49
@@ -8,6 +8,8 @@

#define CONFIG_COUNTER_0_NAME DT_ATMEL_SAM0_TC32_0_LABEL

#define CONFIG_I2C_0_NAME DT_ATMEL_SAM0_I2C_0_LABEL

#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

/* End of SoC Level DTS fixup file */
@@ -8,6 +8,8 @@

#define CONFIG_COUNTER_0_NAME DT_ATMEL_SAM0_TC32_0_LABEL

#define CONFIG_I2C_0_NAME DT_ATMEL_SAM0_I2C_0_LABEL

#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

/* End of SoC Level DTS fixup file */
@@ -12,6 +12,8 @@

#define CONFIG_COUNTER_0_NAME DT_ATMEL_SAM0_TC32_0_LABEL

#define CONFIG_I2C_0_NAME DT_ATMEL_SAM0_I2C_0_LABEL

#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

/* End of SoC Level DTS fixup file */

0 comments on commit 6b46d38

Please sign in to comment.
You can’t perform that action at this time.