Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH v3 0/7] Refactor imx drivers and introduce support for imx95
@ 2025-02-07 16:22 Laurentiu Mihalcea
  2025-02-07 16:22 ` [PATCH v3 1/7] ASoC: SOF: imx: introduce more common structures and functions Laurentiu Mihalcea
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Laurentiu Mihalcea @ 2025-02-07 16:22 UTC (permalink / raw)
  To: Bard Liao, Daniel Baluta, Iuliana Prodan, Jaroslav Kysela,
	Takashi Iwai, Mark Brown
  Cc: linux-kernel, linux-sound, imx

From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

A rather aggressive but arguably much needed refactorization of the SOF
imx drivers. The refactorization is meant to address the code duplication
in the imx drivers and decrease the coding effort required for introducing
a new imx platform.

After refactorization and imx95 introduction, only two drivers remain:
imx8 (meant for the imx8 series: imx8 (imx8qm), imx8x (imx8qxp), imx8m,
and imx8ulp) and imx9 (meant for the imx9 series: imx95 (for now)).

The series also includes the introduction of the imx95 driver.

---
Changes in v3:

- drop the patch that shuffles structure and function definitions
in imx8.c

- drop comment regarding "clk_bulk_prepare_enable" having no
effect if number of clocks is 0.

- add Frank's R-b

- link to v2: https://lore.kernel.org/lkml/20250205203022.2754-1-laurentiumihalcea111@gmail.com/

Changes in v2:

- fixed order of includes in "imx-common.c". They're now sorted
alphabetically.

- use reverse xmas tree ordering for variable declarations.

- add missing call to "of_reserved_mem_device_release()"

- add two new fields: "drv" and "num_drv" in "struct imx_chip_info"

- drop previously obtained R-b's on patches affected by aforementioned
changes.

- link to v1: https://lore.kernel.org/imx/20250203171808.4108-10-laurentiumihalcea111@gmail.com/T/
---

Laurentiu Mihalcea (7):
  ASoC: SOF: imx: introduce more common structures and functions
  ASoC: SOF: imx8: use common imx chip interface
  ASoC: SOF: imx8: use IMX_SOF_* macros
  ASoC: SOF: imx8: drop unneeded/unused macros/header includes
  ASoC: SOF: imx: merge imx8 and imx8m drivers
  ASoC: SOF: imx: merge imx8 and imx8ulp drivers
  ASoC: SOF: imx: add driver for the imx95 chip

 sound/soc/sof/imx/Kconfig      |  17 +-
 sound/soc/sof/imx/Makefile     |   6 +-
 sound/soc/sof/imx/imx-common.c | 431 ++++++++++++++++++-
 sound/soc/sof/imx/imx-common.h | 151 +++++++
 sound/soc/sof/imx/imx8.c       | 753 ++++++++++++---------------------
 sound/soc/sof/imx/imx8m.c      | 567 -------------------------
 sound/soc/sof/imx/imx8ulp.c    | 520 -----------------------
 sound/soc/sof/imx/imx9.c       | 137 ++++++
 8 files changed, 988 insertions(+), 1594 deletions(-)
 delete mode 100644 sound/soc/sof/imx/imx8m.c
 delete mode 100644 sound/soc/sof/imx/imx8ulp.c
 create mode 100644 sound/soc/sof/imx/imx9.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-02-10 16:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 16:22 [PATCH v3 0/7] Refactor imx drivers and introduce support for imx95 Laurentiu Mihalcea
2025-02-07 16:22 ` [PATCH v3 1/7] ASoC: SOF: imx: introduce more common structures and functions Laurentiu Mihalcea
2025-02-07 16:35   ` Markus Elfring
2025-02-07 16:22 ` [PATCH v3 2/7] ASoC: SOF: imx8: use common imx chip interface Laurentiu Mihalcea
2025-02-07 16:22 ` [PATCH v3 3/7] ASoC: SOF: imx8: use IMX_SOF_* macros Laurentiu Mihalcea
2025-02-07 16:22 ` [PATCH v3 4/7] ASoC: SOF: imx8: drop unneeded/unused macros/header includes Laurentiu Mihalcea
2025-02-07 16:22 ` [PATCH v3 5/7] ASoC: SOF: imx: merge imx8 and imx8m drivers Laurentiu Mihalcea
2025-02-07 16:22 ` [PATCH v3 6/7] ASoC: SOF: imx: merge imx8 and imx8ulp drivers Laurentiu Mihalcea
2025-02-07 16:22 ` [PATCH v3 7/7] ASoC: SOF: imx: add driver for the imx95 chip Laurentiu Mihalcea
2025-02-10 16:30 ` [PATCH v3 0/7] Refactor imx drivers and introduce support for imx95 Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox