Skip to content
Commit bacf412c authored by Vincent Wan's avatar Vincent Wan Committed by Carles Cufí
Browse files

drivers: uart: cc13xx_cc26xx: set power config based on UART base addr



The power configuration is dependent on which UART is physically used.
In order to allow DT_INST_FOREACH_STATUS_OKAY() to iterate through
instances without the assumption that index 0 corresponds to UART0
(which would be incorrect in the case when only UART1 is enabled),
we need to check the base address to identify which UART is being dealt
with.

Signed-off-by: default avatarVincent Wan <vincent.wan@linaro.org>
parent 8f4df178
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment