soc: nrf: Cleanup dts_fixup.h

Remove dts_fixup.h files that are needed anymore, remove defines that
are used, and replace defines with new DT macros.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-30 08:39:42 -05:00 committed by Kumar Gala
commit 491469a895
4 changed files with 22 additions and 75 deletions

View file

@ -2,16 +2,11 @@
/* SoC level DTS fixup file */ /* SoC level DTS fixup file */
#define DT_ADC_0_NAME DT_NORDIC_NRF_ADC_ADC_0_LABEL #define DT_ADC_0_NAME DT_LABEL(DT_NODELABEL(adc))
#define DT_UART_0_NAME DT_NORDIC_NRF_UART_UART_0_LABEL #define DT_UART_0_NAME DT_LABEL(DT_NODELABEL(uart0))
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf51_flash_controller)) #define DT_RTC_0_NAME DT_LABEL(DT_NODELABEL(rtc0))
#define DT_RTC_1_NAME DT_LABEL(DT_NODELABEL(rtc1))
#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_RTC_0_NAME DT_NORDIC_NRF_RTC_RTC_0_LABEL
#define DT_RTC_1_NAME DT_NORDIC_NRF_RTC_RTC_1_LABEL
/* End of SoC Level DTS fixup file */ /* End of SoC Level DTS fixup file */

View file

@ -2,40 +2,13 @@
/* SoC level DTS fixup file */ /* SoC level DTS fixup file */
#define DT_ADC_0_NAME DT_NORDIC_NRF_SAADC_ADC_0_LABEL #define DT_ADC_0_NAME DT_LABEL(DT_NODELABEL(adc))
#ifdef DT_NORDIC_NRF_UART_UART_0_LABEL #define DT_UART_0_NAME DT_LABEL(DT_NODELABEL(uart0))
#define DT_UART_0_NAME DT_NORDIC_NRF_UART_UART_0_LABEL #define DT_UART_1_NAME DT_LABEL(DT_NODELABEL(uart1))
#else
#define DT_UART_0_NAME DT_NORDIC_NRF_UARTE_UART_0_LABEL
#endif
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL #define DT_RTC_0_NAME DT_LABEL(DT_NODELABEL(rtc0))
#define DT_RTC_1_NAME DT_LABEL(DT_NODELABEL(rtc1))
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf52_flash_controller)) #define DT_RTC_2_NAME DT_LABEL(DT_NODELABEL(rtc2))
#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
#endif
#define DT_SPI_3_NAME DT_NORDIC_NRF_SPIM_SPI_3_LABEL
#define DT_RTC_0_NAME DT_NORDIC_NRF_RTC_RTC_0_LABEL
#define DT_RTC_1_NAME DT_NORDIC_NRF_RTC_RTC_1_LABEL
#define DT_RTC_2_NAME DT_NORDIC_NRF_RTC_RTC_2_LABEL
/* End of SoC Level DTS fixup file */ /* End of SoC Level DTS fixup file */

View file

@ -6,22 +6,12 @@
/* SoC level DTS fixup file */ /* SoC level DTS fixup file */
#define DT_ADC_0_NAME DT_NORDIC_NRF_SAADC_ADC_0_LABEL #define DT_ADC_0_NAME DT_LABEL(DT_NODELABEL(adc))
#define DT_UART_0_NAME DT_NORDIC_NRF_UARTE_UART_0_LABEL #define DT_UART_0_NAME DT_LABEL(DT_NODELABEL(uart0))
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL #define DT_UART_1_NAME DT_LABEL(DT_NODELABEL(uart1))
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf53_flash_controller)) #define DT_RTC_0_NAME DT_LABEL(DT_NODELABEL(rtc0))
#define DT_RTC_1_NAME DT_LABEL(DT_NODELABEL(rtc1))
#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_TIMER_0_NAME DT_NORDIC_NRF_TIMER_TIMER_0_LABEL
#define DT_TIMER_1_NAME DT_NORDIC_NRF_TIMER_TIMER_1_LABEL
#define DT_TIMER_2_NAME DT_NORDIC_NRF_TIMER_TIMER_2_LABEL
#define DT_RTC_0_NAME DT_NORDIC_NRF_RTC_RTC_0_LABEL
#define DT_RTC_1_NAME DT_NORDIC_NRF_RTC_RTC_1_LABEL
/* End of SoC Level DTS fixup file */ /* End of SoC Level DTS fixup file */

View file

@ -6,25 +6,14 @@
/* SoC level DTS fixup file */ /* SoC level DTS fixup file */
#define DT_ADC_0_NAME DT_NORDIC_NRF_SAADC_ADC_0_LABEL #define DT_ADC_0_NAME DT_LABEL(DT_NODELABEL(adc))
#define DT_UART_0_NAME DT_NORDIC_NRF_UARTE_UART_0_LABEL #define DT_UART_0_NAME DT_LABEL(DT_NODELABEL(uart0))
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL #define DT_UART_1_NAME DT_LABEL(DT_NODELABEL(uart1))
#define DT_UART_2_NAME DT_NORDIC_NRF_UARTE_UART_2_LABEL #define DT_UART_2_NAME DT_LABEL(DT_NODELABEL(uart2))
#define DT_UART_3_NAME DT_NORDIC_NRF_UARTE_UART_3_LABEL #define DT_UART_3_NAME DT_LABEL(DT_NODELABEL(uart3))
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf91_flash_controller)) #define DT_RTC_0_NAME DT_LABEL(DT_NODELABEL(rtc0))
#define DT_RTC_1_NAME DT_LABEL(DT_NODELABEL(rtc1))
#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_TIMER_0_NAME DT_NORDIC_NRF_TIMER_TIMER_0_LABEL
#define DT_TIMER_1_NAME DT_NORDIC_NRF_TIMER_TIMER_1_LABEL
#define DT_TIMER_2_NAME DT_NORDIC_NRF_TIMER_TIMER_2_LABEL
#define DT_RTC_0_NAME DT_NORDIC_NRF_RTC_RTC_0_LABEL
#define DT_RTC_1_NAME DT_NORDIC_NRF_RTC_RTC_1_LABEL
/* End of SoC Level DTS fixup file */ /* End of SoC Level DTS fixup file */