soc: nrf: update dts_fixup.h to I2C DT

Commit a8a85c21cff7319e80af16688ea6076594fab7c8 introduced separate
DT symbols for TWI and TWIM. Update dts_fixup.h for all nRF chips
to align with those changes.

Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
This commit is contained in:
Marcin Szymczyk 2019-12-06 11:09:51 +01:00 committed by Maureen Helm
commit 03a99e0d7f
4 changed files with 19 additions and 10 deletions

View file

@ -12,8 +12,8 @@
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_I2C_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_I2C_I2C_1_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWI_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWI_I2C_1_LABEL
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPI_SPI_0_LABEL
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPI_SPI_1_LABEL

View file

@ -19,8 +19,17 @@
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
#define DT_GPIO_P1_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_1_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_I2C_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_I2C_I2C_1_LABEL
#if defined(DT_NORDIC_NRF_TWIM_I2C_0_LABEL)
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWIM_I2C_0_LABEL
#else
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWI_I2C_0_LABEL
#endif
#if defined(DT_NORDIC_NRF_TWIM_I2C_1_LABEL)
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWIM_I2C_1_LABEL
#else
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWI_I2C_1_LABEL
#endif
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPI_SPI_0_LABEL
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPI_SPI_1_LABEL

View file

@ -23,8 +23,8 @@
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
#define DT_GPIO_P1_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_1_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_I2C_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_I2C_I2C_1_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWIM_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWIM_I2C_1_LABEL
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPI_SPI_0_LABEL
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPI_SPI_1_LABEL

View file

@ -22,10 +22,10 @@
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_I2C_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_I2C_I2C_1_LABEL
#define DT_I2C_2_NAME DT_NORDIC_NRF_I2C_I2C_2_LABEL
#define DT_I2C_3_NAME DT_NORDIC_NRF_I2C_I2C_3_LABEL
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWIM_I2C_0_LABEL
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWIM_I2C_1_LABEL
#define DT_I2C_2_NAME DT_NORDIC_NRF_TWIM_I2C_2_LABEL
#define DT_I2C_3_NAME DT_NORDIC_NRF_TWIM_I2C_3_LABEL
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPI_SPI_0_LABEL
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPI_SPI_1_LABEL