Skip to content
Commit a1188a96 authored by Laurentiu Mihalcea's avatar Laurentiu Mihalcea Committed by Henrik Brix Andersen
Browse files

drivers: dai: sai: use TDR/RDR for fifo base address computation



Using the address of RDR/TDR for fifo base address computation
has the same effect as using the FSL_FEATURE_SAI_{TX/RX}_FIFO_BASEn
macro from NXP HAL. The only difference between the two is that
the macro is not defined for all SoCs so whenever we introduce
a new SoC that uses the SAI module we have to also introduce
the macro for said SoC. Using TDR/RDR has the advantage that
it doesn't require any additional changes to the NXP HAL.

Since we only support one data line per direction, it's fine
to just use RDR[0] and TDR[0] for the address computation.

Signed-off-by: default avatarLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
parent 3bf61528
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment