soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag
authorHerve Codina <herve.codina@bootlin.com>
Tue, 5 Dec 2023 15:21:11 +0000 (16:21 +0100)
committerHerve Codina <herve.codina@bootlin.com>
Tue, 12 Dec 2023 09:29:20 +0000 (10:29 +0100)
commit0e85feacc8156b230285040d82537c922cc15fe6
treed7d326fde18e78fb076b192f50adca0ba4b864b0
parent32881b253c945ea1493abc18e25928808331f5df
soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag

In order to support runtime timeslot route changes, some operations will
be different according the routing table used (common Rx and Tx table or
one table for Rx and one for Tx).

The is_tsa_64rxtx flag is introduced to avoid extra computation to
determine the table format each time we need it.
It is set once at initialization.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20231205152116.122512-15-herve.codina@bootlin.com
drivers/soc/fsl/qe/qmc.c