soc: fsl: cpm1: qmc: Introduce qmc_data structure
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:11:17 +0000 (09:11 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 3 Sep 2024 05:49:19 +0000 (07:49 +0200)
commitd23ae9f1815e89a0397cea85182ca0305be0056a
treeb9af015648883733919eaa532cbf01ddf679cc80
parent41725760d2cef69360d354ba6136d666cb87bda3
soc: fsl: cpm1: qmc: Introduce qmc_data structure

Current code handles CPM1 version of QMC. Some hardcoded values are used
several times to initialize the QMC state machine. In the QUICC Engine
(QE) version of QMC, these values are different.

In order to prepare the support for the QE version of QMC and avoid the
copy of the hardcoded values, introduce the qmc_data structure to define
these version specific values.

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