Skip to contentSkip to conversation

ARM: imx: Remove board files

PATCH Superseded Fabio Estevam 2 participants 4 messages Sep 2, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: imx: Remove board files

This is a first pass converting i.MX to a devicetree-only platform.

i.MX board files have been primarily receiving only tree-wide API cleanups and does not appear to have real users.

i.MX27, i.MX31 and i.MX35 have basic devicetree support and users can improve devicetree support if needed.

i.MX21 has not been converted to device tree yet, so drop its support.

Of course if someone is interested in using i.MX21 with a mainline kernel, patches that add i.MX21 devicetree support will be welcome.

For maintainance perspective, it is easier to treat i.MX as a devicetree-only platform, so remove the board files to achieve this end goal.

Fabio Estevam (5):
ARM: imx: Remove imx21 support
ARM: imx: Remove i.MX27 board files
ARM: imx: Remove i.MX31 board files
ARM: imx: Remove i.MX35 board files
ARM: imx: Remove ehci board files

 arch/arm/configs/imx_v4_v5_defconfig        |   2 +-
 arch/arm/configs/imx_v6_v7_defconfig        |  16 +-
 arch/arm/configs/multi_v5_defconfig         |   2 +-
 arch/arm/mach-imx/Kconfig                   | 362 +-----------
 arch/arm/mach-imx/Makefile                  |  40 +-
 arch/arm/mach-imx/devices-imx21.h           |  56 --
 arch/arm/mach-imx/ehci-imx27.c              |  74 ---
 arch/arm/mach-imx/ehci-imx31.c              |  74 ---
 arch/arm/mach-imx/ehci-imx35.c              |  89 ---
 arch/arm/mach-imx/ehci.h                    |  44 --
 arch/arm/mach-imx/imx27-dt.c                |  26 -
 arch/arm/mach-imx/imx31-dt.c                |  19 -
 arch/arm/mach-imx/imx35-dt.c                |  32 -
 arch/arm/mach-imx/mach-armadillo5x0.c       | 562 ------------------
 arch/arm/mach-imx/mach-bug.c                |  54 --
 arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 562 ------------------
 arch/arm/mach-imx/mach-kzm_arm11_01.c       | 291 ---------
 arch/arm/mach-imx/mach-mx21ads.c            | 338 -----------
 arch/arm/mach-imx/mach-mx27_3ds.c           | 470 ---------------
 arch/arm/mach-imx/mach-mx27ads.c            | 407 -------------
 arch/arm/mach-imx/mach-mx31_3ds.c           | 615 --------------------
 arch/arm/mach-imx/mach-mx31lilly.c          | 312 ----------
 arch/arm/mach-imx/mach-mx31lite.c           | 290 ---------
 arch/arm/mach-imx/mach-mx31moboard.c        | 581 ------------------
 arch/arm/mach-imx/mach-mx35_3ds.c           | 516 ----------------
 arch/arm/mach-imx/mach-pca100.c             | 426 --------------
 arch/arm/mach-imx/mach-pcm037.c             | 585 -------------------
 arch/arm/mach-imx/mach-pcm037_eet.c         | 166 ------
 arch/arm/mach-imx/mach-pcm043.c             | 412 -------------
 arch/arm/mach-imx/mach-qong.c               | 262 ---------
 arch/arm/mach-imx/mach-vpr200.c             | 306 ----------
 arch/arm/mach-imx/mm-imx21.c                |  84 ---
 arch/arm/mach-imx/mx31lilly-db.c            | 182 ------
 arch/arm/mach-imx/mx31moboard-devboard.c    | 238 --------
 arch/arm/mach-imx/mx31moboard-marxbot.c     | 270 ---------
 arch/arm/mach-imx/mx31moboard-smartbot.c    | 124 ----
 36 files changed, 24 insertions(+), 8865 deletions(-)
 delete mode 100644 arch/arm/mach-imx/devices-imx21.h
 delete mode 100644 arch/arm/mach-imx/ehci-imx27.c
 delete mode 100644 arch/arm/mach-imx/ehci-imx31.c
 delete mode 100644 arch/arm/mach-imx/ehci-imx35.c
 delete mode 100644 arch/arm/mach-imx/ehci.h
 delete mode 100644 arch/arm/mach-imx/imx27-dt.c
 delete mode 100644 arch/arm/mach-imx/imx31-dt.c
 delete mode 100644 arch/arm/mach-imx/imx35-dt.c
 delete mode 100644 arch/arm/mach-imx/mach-armadillo5x0.c
 delete mode 100644 arch/arm/mach-imx/mach-bug.c
 delete mode 100644 arch/arm/mach-imx/mach-imx27_visstrim_m10.c
 delete mode 100644 arch/arm/mach-imx/mach-kzm_arm11_01.c
 delete mode 100644 arch/arm/mach-imx/mach-mx21ads.c
 delete mode 100644 arch/arm/mach-imx/mach-mx27_3ds.c
 delete mode 100644 arch/arm/mach-imx/mach-mx27ads.c
 delete mode 100644 arch/arm/mach-imx/mach-mx31_3ds.c
 delete mode 100644 arch/arm/mach-imx/mach-mx31lilly.c
 delete mode 100644 arch/arm/mach-imx/mach-mx31lite.c
 delete mode 100644 arch/arm/mach-imx/mach-mx31moboard.c
 delete mode 100644 arch/arm/mach-imx/mach-mx35_3ds.c
 delete mode 100644 arch/arm/mach-imx/mach-pca100.c
 delete mode 100644 arch/arm/mach-imx/mach-pcm037.c
 delete mode 100644 arch/arm/mach-imx/mach-pcm037_eet.c
 delete mode 100644 arch/arm/mach-imx/mach-pcm043.c
 delete mode 100644 arch/arm/mach-imx/mach-qong.c
 delete mode 100644 arch/arm/mach-imx/mach-vpr200.c
 delete mode 100644 arch/arm/mach-imx/mm-imx21.c
 delete mode 100644 arch/arm/mach-imx/mx31lilly-db.c
 delete mode 100644 arch/arm/mach-imx/mx31moboard-devboard.c
 delete mode 100644 arch/arm/mach-imx/mx31moboard-marxbot.c
 delete mode 100644 arch/arm/mach-imx/mx31moboard-smartbot.c
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 9 lines · Fabio Estevam

This is a first pass converting i.MX to a devicetree-only platform.

i.MX board files have been primarily receiving only tree-wide API cleanups and does not appear to have real users.

i.MX27, i.MX31 and i.MX35 have basic devicetree support and users can improve devicetree support if needed.

Quoted 7 lines

i.MX21 has not been converted to device tree yet, so drop its support.

Of course if someone is interested in using i.MX21 with a mainline kernel, patches that add i.MX21 devicetree support will be welcome.

For maintainance perspective, it is easier to treat i.MX as a devicetree-only platform, so remove the board files to achieve this end goal.

This looks reasonable to me overall, there has not been any work on converting the remaining boards in a long time, and both the imx3 and imx21 are unlikely to have been used in new products for at least as long.

I would prefer somewhat to recursively remove now-unused code from mach-imx/*, in particular I would guess that most of mach-imx/devices/ can get removed along with the board files using it. If you feel strongly that this is too much and the work needs to be split into multiple steps, that is also fine with me.

Arnd

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

Hi Arnd,

Quoted 10 lines · Arnd Bergmann

This looks reasonable to me overall, there has not been any work on converting the remaining boards in a long time, and both the imx3 and imx21 are unlikely to have been used in new products for at least as long.

I would prefer somewhat to recursively remove now-unused code from mach-imx/*, in particular I would guess that most of mach-imx/devices/ can get removed along with the board files using it. If you feel strongly that this is too much and the work needs to be split into multiple steps, that is also fine with me.

Yes, I also plan to remove all the arch/arm/mach-imx/devices/platform-*.c files after this series gets into linux-next.

Thanks

Quoted 2 lines

Arnd

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
Quoted 9 lines · Fabio Estevam
Quoted 5 lines

I would prefer somewhat to recursively remove now-unused code from mach-imx/*, in particular I would guess that most of mach-imx/devices/ can get removed along with the board files using it. If you feel strongly that this is too much and the work needs to be split into multiple steps, that is also fine with me.

Yes, I also plan to remove all the arch/arm/mach-imx/devices/platform-*.c files after this series gets into linux-next.

Ok, fair enough.

Arnd

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel