drivers: adjust cc13xx_cc26xx drivers for hal_ti update
The TI SimpleLink SDK got updated to version '4.40.04.04' in 'hal_ti'. This introduced renames of some functions in HAL and has to be reflected in Zephyr drivers which make use of them. This renames 'PRCMPowerDomainStatus' to 'PRCMPowerDomainsAllOn' in all affected 'cc13xx_cc26xx' drivers. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
parent
b9d68086bb
commit
20cb405e17
|
@ -317,7 +317,7 @@ static int entropy_cc13xx_cc26xx_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* Peripherals should not be accessed until power domain is on. */
|
||||
while (PRCMPowerDomainStatus(PRCM_DOMAIN_PERIPH) !=
|
||||
while (PRCMPowerDomainsAllOn(PRCM_DOMAIN_PERIPH) !=
|
||||
PRCM_DOMAIN_POWER_ON) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -254,7 +254,7 @@ static int gpio_cc13xx_cc26xx_init(const struct device *dev)
|
|||
irq_enable(DT_INST_IRQN(0));
|
||||
|
||||
/* Peripheral should not be accessed until power domain is on. */
|
||||
while (PRCMPowerDomainStatus(PRCM_DOMAIN_PERIPH) !=
|
||||
while (PRCMPowerDomainsAllOn(PRCM_DOMAIN_PERIPH) !=
|
||||
PRCM_DOMAIN_POWER_ON) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -389,7 +389,7 @@ static int i2c_cc13xx_cc26xx_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* I2C should not be accessed until power domain is on. */
|
||||
while (PRCMPowerDomainStatus(PRCM_DOMAIN_SERIAL) !=
|
||||
while (PRCMPowerDomainsAllOn(PRCM_DOMAIN_SERIAL) !=
|
||||
PRCM_DOMAIN_POWER_ON) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -537,7 +537,7 @@ static const struct uart_driver_api uart_cc13xx_cc26xx_driver_api = {
|
|||
} \
|
||||
\
|
||||
/* UART should not be accessed until power domain is on. */ \
|
||||
while (PRCMPowerDomainStatus(domain) != \
|
||||
while (PRCMPowerDomainsAllOn(domain) != \
|
||||
PRCM_DOMAIN_POWER_ON) { \
|
||||
continue; \
|
||||
} \
|
||||
|
|
|
@ -277,7 +277,7 @@ static const struct spi_driver_api spi_cc13xx_cc26xx_driver_api = {
|
|||
} \
|
||||
\
|
||||
/* SSI should not be accessed until power domain is on. */\
|
||||
while (PRCMPowerDomainStatus(domain) != \
|
||||
while (PRCMPowerDomainsAllOn(domain) != \
|
||||
PRCM_DOMAIN_POWER_ON) { \
|
||||
continue; \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue