[RFC 0/3] soc: imx: Refactor BLK CTRL driver

From: Abel Vesa
Date: Fri Jan 21 2022 - 06:23:05 EST


This splits the SoC specific parts into separate drivers for i.MX8MM and
i.MX8MN. Should be more readable and easier to maintain.

As for the i.MX8MP BLK CTRL driver (sent by Lucas here:
https://lore.kernel.org/linux-arm-kernel/20220119134027.2931945-7-l.stach@xxxxxxxxxxxxxx/raw)
It can remain as a separate driver until we figure out what is the
overlap and how can we make it use the generic part.

This patchset doesn't rely on the above-mentioned patch and does not
impact it in any way.

Abel Vesa (3):
soc: imx: make i.MX8MM BLK CTRL a separate driver
soc: imx: make i.MX8MN BLK CTRL a separate driver
soc: imx: Rename generic BLK CTRL driver to suggest future usability

drivers/soc/imx/Kconfig | 14 +
drivers/soc/imx/Makefile | 4 +-
drivers/soc/imx/imx-blk-ctrl.c | 322 ++++++++++++++++
drivers/soc/imx/imx-blk-ctrl.h | 72 ++++
drivers/soc/imx/imx8m-blk-ctrl.c | 617 ------------------------------
drivers/soc/imx/imx8mm-blk-ctrl.c | 173 +++++++++
drivers/soc/imx/imx8mn-blk-ctrl.c | 101 +++++
7 files changed, 685 insertions(+), 618 deletions(-)
create mode 100644 drivers/soc/imx/imx-blk-ctrl.c
create mode 100644 drivers/soc/imx/imx-blk-ctrl.h
delete mode 100644 drivers/soc/imx/imx8m-blk-ctrl.c
create mode 100644 drivers/soc/imx/imx8mm-blk-ctrl.c
create mode 100644 drivers/soc/imx/imx8mn-blk-ctrl.c

--
2.31.1