Skip to content

powerpc/85xx: p2020: Create one unified machine description

Christophe Leroy linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest17 patches 3 repliesIn review

Changes in v4 from the cover letter

* Added several preparatory cleanup patchs
* Minimised churn by not duplicating helpers at the first place
* Split main patch in two
* Dropped patchs 1 and 2
* Untested beyond basic build test

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17powerpc/fsl_uli1575: Misc cleanuparch/powerpc/include/asm/ppc-pci.h arch/powerpc/platforms/85xx/mpc85xx_ds.c arch/powerpc/platforms/fsl_uli1575.c+6 -60 replies
2/17powerpc/85xx: Rename setup_arch and pic_init on p1023arch/powerpc/platforms/85xx/p1023_rdb.c+4 -40 replies
3/17powerpc/85xx: Remove DBG() macroarch/powerpc/platforms/85xx/mpc85xx_ds.c arch/powerpc/platforms/85xx/mpc85xx_mds.c arch/powerpc/platforms/85xx/mpc85xx_rdb.c+1 -250 replies
4/17powerpc/85xx: Remove #ifdefs CONFIG_PCI in mpc85xx_dsarch/powerpc/platforms/85xx/mpc85xx_ds.c+3 -40 replies
5/17powerpc/85xx: mpc85xx_{ds/rdb} compact the call to mpic_alloc()arch/powerpc/platforms/85xx/mpc85xx_ds.c arch/powerpc/platforms/85xx/mpc85xx_rdb.c+11 -230 replies
6/17powerpc/85xx: mpc85xx_{ds/rdb} replace BUG_ON() by WARN_ON()arch/powerpc/platforms/85xx/mpc85xx_ds.c arch/powerpc/platforms/85xx/mpc85xx_rdb.c+6 -20 replies
7/17powerpc/85xx: mpc85xx_{ds/rdb} replace prink by pr_xxx macroarch/powerpc/platforms/85xx/mpc85xx_ds.c arch/powerpc/platforms/85xx/mpc85xx_rdb.c+4 -40 replies
8/17powerpc/85xx: Remove #ifdefs CONFIG_PPC_I8259 in mpc85xx_dsarch/powerpc/platforms/85xx/mpc85xx_ds.c+20 -170 replies
9/17powerpc/85xx: Remove #ifdef CONFIG_QUICC_ENGINE in mpc85xx_rdbarch/powerpc/platforms/85xx/mpc85xx_rdb.c+0 -20 replies
10/17powerpc/85xx: p2020: Move all P2020 DS machine descriptions to p2020.carch/powerpc/platforms/85xx/Makefile arch/powerpc/platforms/85xx/mpc85xx.h arch/powerpc/platforms/85xx/mpc85xx_ds.c +1 more+64 -250 replies
11/17powerpc/85xx: p2020: Move all P2020 RDB machine descriptions to p2020.carch/powerpc/platforms/85xx/Makefile arch/powerpc/platforms/85xx/mpc85xx.h arch/powerpc/platforms/85xx/mpc85xx_rdb.c +1 more+61 -460 replies
12/17powerpc/85xx: p2020: Move i8259 code into own functionarch/powerpc/platforms/85xx/Makefile arch/powerpc/platforms/85xx/mpc85xx.h arch/powerpc/platforms/85xx/mpc85xx_8259.c +1 more+86 -470 replies
13/17powerpc/85xx: mpc85xx_ds: Move PCI code into own filearch/powerpc/platforms/85xx/Makefile arch/powerpc/platforms/85xx/mpc85xx.h arch/powerpc/platforms/85xx/mpc85xx_ds.c +1 more+72 -330 replies
14/17powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacksarch/powerpc/platforms/85xx/mpc85xx.h arch/powerpc/platforms/85xx/mpc85xx_rdb.c arch/powerpc/platforms/85xx/p2020.c+34 -130 replies
15/17powerpc/85xx: p2020: Define just one machine descriptionarch/powerpc/platforms/85xx/p2020.c+15 -620 replies
16/17powerpc/85xx: p2020: Enable boards by new config option CONFIG_PPC_P2020arch/powerpc/platforms/85xx/Kconfig arch/powerpc/platforms/85xx/Makefile+21 -60 replies
17/17powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible stringarch/powerpc/boot/dts/turris1x.dts+1 -10 replies

Reviews trailers per patch

None of the 17 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPali Rohár
SeriesR-b
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/17] powerpc/85xx: p2020: Create one unified machine description

This patch series unifies all P2020 boards and machine descriptions into one generic unified P2020 machine description. With this generic machine description, kernel can boot on any P2020-based board with correct DTS file.

Tested on CZ.NIC Turris 1.1 board with has Freescale P2020 processor. Kernel during booting correctly detects P2020 and prints:

[    0.000000] Using Freescale P2020 machine description

Changes in v4:
* Added several preparatory cleanup patchs
* Minimised churn by not duplicating helpers at the first place
* Split main patch in two
* Dropped patchs 1 and 2
* Untested beyond basic build test

Changes in v3:
* Use 'if (IS_ENABLED(CONFIG_PPC_I8259))' instead of '#ifdef CONFIG_PPC_I8259'
* Simplify p2020_probe()
* Patches generated by -M and -C git options

Link to v2: https://lore.kernel.org/linuxppc-dev/[email protected]/

Changes in v2:
* Added patch "p2020: Move i8259 code into own function" (separated from the next one)
* Renamed CONFIG_P2020 to CONFIG_PPC_P2020
* Fixed descriptions

Link to v1: https://lore.kernel.org/linuxppc-dev/[email protected]/

Christophe Leroy (9):
powerpc/fsl_uli1575: Misc cleanup
powerpc/85xx: Rename setup_arch and pic_init on p1023 powerpc/85xx: Remove DBG() macro
powerpc/85xx: Remove #ifdefs CONFIG_PCI in mpc85xx_ds powerpc/85xx: mpc85xx_{ds/rdb} compact the call to mpic_alloc() powerpc/85xx: mpc85xx_{ds/rdb} replace BUG_ON() by WARN_ON() powerpc/85xx: mpc85xx_{ds/rdb} replace prink by pr_xxx macro powerpc/85xx: Remove #ifdefs CONFIG_PPC_I8259 in mpc85xx_ds powerpc/85xx: Remove #ifdef CONFIG_QUICC_ENGINE in mpc85xx_rdb

Pali Rohár (8):
powerpc/85xx: p2020: Move all P2020 DS machine descriptions to p2020.c powerpc/85xx: p2020: Move all P2020 RDB machine descriptions to

    p2020.c
  powerpc/85xx: p2020: Move i8259 code into own function
  powerpc/85xx: mpc85xx_ds: Move PCI code into own file
  powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks
  powerpc/85xx: p2020: Define just one machine description
  powerpc/85xx: p2020: Enable boards by new config option
    CONFIG_PPC_P2020

powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string

 arch/powerpc/boot/dts/turris1x.dts         |   2 +-
 arch/powerpc/include/asm/ppc-pci.h         |   2 +
 arch/powerpc/platforms/85xx/Kconfig        |  22 +++-
 arch/powerpc/platforms/85xx/Makefile       |   5 +-
 arch/powerpc/platforms/85xx/mpc85xx.h      |  12 ++
 arch/powerpc/platforms/85xx/mpc85xx_8259.c |  78 ++++++++++++
 arch/powerpc/platforms/85xx/mpc85xx_ds.c   | 133 ++-------------------
 arch/powerpc/platforms/85xx/mpc85xx_mds.c  |   7 --
 arch/powerpc/platforms/85xx/mpc85xx_rdb.c  |  79 ++----------
 arch/powerpc/platforms/85xx/mpc85xx_uli.c  |  64 ++++++++++
 arch/powerpc/platforms/85xx/p1023_rdb.c    |   8 +-
 arch/powerpc/platforms/85xx/p2020.c        |  95 +++++++++++++++
 arch/powerpc/platforms/fsl_uli1575.c       |   6 +-
 13 files changed, 301 insertions(+), 212 deletions(-)
 create mode 100644 arch/powerpc/platforms/85xx/mpc85xx_8259.c
 create mode 100644 arch/powerpc/platforms/85xx/mpc85xx_uli.c
 create mode 100644 arch/powerpc/platforms/85xx/p2020.c
Signature · 1 line
2.39.1