zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY
Change instances of: DT_NODE_HAS_STATUS(<node_id>, okay) to DT_NODE_HAS_STATUS_OKAY(<node_id>) Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
5aebd1276d
commit
52a202309b
180 changed files with 743 additions and 738 deletions
|
@ -28,15 +28,15 @@ static struct arm_mpu_region mpu_regions[] = {
|
|||
REGION_RAM_ATTR(CONFIG_SRAM_BASE_ADDRESS,
|
||||
CONFIG_SRAM_SIZE * 1024)),
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usbhs), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usbhs))
|
||||
MPU_REGION_ENTRY("USBHS_CORE", USBHS_BASE,
|
||||
REGION_RAM_NOCACHE_ATTR(USBHS_BASE, USBHS_SIZE)),
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can120), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(can120))
|
||||
MPU_REGION_ENTRY("CAN120_MCAN", CAN120_BASE,
|
||||
REGION_RAM_NOCACHE_ATTR(CAN120_BASE, CAN120_SIZE)),
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can121), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(can121))
|
||||
MPU_REGION_ENTRY("CAN121_MCAN", CAN121_BASE,
|
||||
REGION_RAM_NOCACHE_ATTR(CAN121_BASE, CAN121_SIZE)),
|
||||
#endif
|
||||
|
|
|
@ -37,7 +37,7 @@ static int nordicsemi_nrf52_init(void)
|
|||
nrf_power_dcdcen_set(NRF_POWER, true);
|
||||
#endif
|
||||
#if NRF_POWER_HAS_DCDCEN_VDDH && (defined(CONFIG_SOC_DCDC_NRF52X_HV) || \
|
||||
DT_NODE_HAS_STATUS(DT_INST(0, nordic_nrf52x_regulator_hv), okay))
|
||||
DT_NODE_HAS_STATUS_OKAY(DT_INST(0, nordic_nrf52x_regulator_hv)))
|
||||
nrf_power_dcdcen_vddh_set(NRF_POWER, true);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -558,7 +558,7 @@ static int nordicsemi_nrf53_init(void)
|
|||
(DT_PROP(DT_NODELABEL(vregradio), regulator_initial_mode) == NRF5X_REG_MODE_DCDC)
|
||||
nrf_regulators_vreg_enable_set(NRF_REGULATORS, NRF_REGULATORS_VREG_RADIO, true);
|
||||
#endif
|
||||
#if defined(CONFIG_SOC_DCDC_NRF53X_HV) || DT_NODE_HAS_STATUS(DT_NODELABEL(vregh), okay)
|
||||
#if defined(CONFIG_SOC_DCDC_NRF53X_HV) || DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(vregh))
|
||||
nrf_regulators_vreg_enable_set(NRF_REGULATORS, NRF_REGULATORS_VREG_HIGH, true);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ static int nordicsemi_nrf54h_init(void)
|
|||
return err;
|
||||
}
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(ccm030), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(ccm030))
|
||||
/* DMASEC is set to non-secure by default, which prevents CCM from
|
||||
* accessing secure memory. Change DMASEC to secure.
|
||||
*/
|
||||
|
|
|
@ -93,7 +93,7 @@ static int nordicsemi_nrf92_init(void)
|
|||
|
||||
trim_hsfll();
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(ccm030), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(ccm030))
|
||||
/* DMASEC is set to non-secure by default, which prevents CCM from
|
||||
* accessing secure memory. Change DMASEC to secure.
|
||||
*/
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
#include <zephyr/kernel.h>
|
||||
|
||||
#define I2C_ENABLED(idx) (IS_ENABLED(CONFIG_I2C) && \
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(i2c##idx), okay))
|
||||
DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(i2c##idx)))
|
||||
|
||||
#define SPI_ENABLED(idx) (IS_ENABLED(CONFIG_SPI) && \
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(spi##idx), okay))
|
||||
DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(spi##idx)))
|
||||
|
||||
#define UART_ENABLED(idx) (IS_ENABLED(CONFIG_SERIAL) && \
|
||||
(IS_ENABLED(CONFIG_SOC_SERIES_NRF53X) || \
|
||||
IS_ENABLED(CONFIG_SOC_SERIES_NRF54LX) || \
|
||||
IS_ENABLED(CONFIG_SOC_SERIES_NRF91X)) && \
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(uart##idx), okay))
|
||||
DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(uart##idx)))
|
||||
|
||||
/*
|
||||
* In most Nordic SoCs, SPI and TWI peripherals with the same instance number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue