soc: nrf: update dts_fixup.h to SPI DT

Commit 94bed60abea53818c8cd723e233799a77c4b4e4b introduced separate
DT symbols for SPI and SPIM. 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:41:51 +01:00 committed by Maureen Helm
commit e6b3a33318
3 changed files with 23 additions and 8 deletions

View file

@ -31,10 +31,25 @@
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWI_I2C_1_LABEL
#endif
#if defined(DT_NORDIC_NRF_SPIM_SPI_0_LABEL)
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPIM_SPI_0_LABEL
#else
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPI_SPI_0_LABEL
#endif
#if defined(DT_NORDIC_NRF_SPIM_SPI_1_LABEL)
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPIM_SPI_1_LABEL
#else
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPI_SPI_1_LABEL
#endif
#if defined(DT_NORDIC_NRF_SPIM_SPI_2_LABEL)
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPIM_SPI_2_LABEL
#else
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPI_SPI_2_LABEL
#define DT_SPI_3_NAME DT_NORDIC_NRF_SPI_SPI_3_LABEL
#endif
#define DT_SPI_3_NAME DT_NORDIC_NRF_SPIM_SPI_3_LABEL
#define DT_WDT_0_NAME DT_NORDIC_NRF_WATCHDOG_WDT_0_LABEL

View file

@ -26,9 +26,9 @@
#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
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPI_SPI_2_LABEL
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPIM_SPI_0_LABEL
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPIM_SPI_1_LABEL
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPIM_SPI_2_LABEL
#define DT_WDT_0_NAME DT_NORDIC_NRF_WATCHDOG_WDT_0_LABEL

View file

@ -27,10 +27,10 @@
#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
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPI_SPI_2_LABEL
#define DT_SPI_3_NAME DT_NORDIC_NRF_SPI_SPI_3_LABEL
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPIM_SPI_0_LABEL
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPIM_SPI_1_LABEL
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPIM_SPI_2_LABEL
#define DT_SPI_3_NAME DT_NORDIC_NRF_SPIM_SPI_3_LABEL
#define DT_WDT_0_NAME DT_NORDIC_NRF_WATCHDOG_WDT_0_LABEL