]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: fsl: cpm1: qmc: Introduce qmc_init_resource() and its CPM1 version
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:11:19 +0000 (09:11 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 3 Sep 2024 05:49:20 +0000 (07:49 +0200)
commit727b3ab490a5f5e74fb3f246c9fdfb339d309950
treefc4b5ba80a4cec8ec40ba839efcdde0d7edba15c
parenta13bf605342ea9df492b8159cadaa41862b53e15
soc: fsl: cpm1: qmc: Introduce qmc_init_resource() and its CPM1 version

Current code handles the CPM1 version of QMC. Resources initialisations
(i.e. retrieving base addresses and offsets of different parts) will
be slightly different in the QUICC Engine (QE) version. Indeed, in QE
version, some resources need to be allocated and are no more "staticaly"
defined.

In order to prepare the support for QE version, introduce
qmc_init_resource() to initialize those resources and isolate the CPM1
specific operations in a specific function.

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-27-herve.codina@bootlin.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/soc/fsl/qe/qmc.c