Add generic support for simple MPC5200 based boards
Subsystems (3)
PATCH v6 4/13 Add generic support for simple MPC5200 based boards
This patch adds support for 'mpc5200-simple-platform' compatible boards which do not need a platform specific setup. Such boards are supported assuming the following:
- GPIO pins are configured by the firmware,
- CDM configuration (clocking) is setup correctly by firmware,
- if the 'fsl,has-wdt' property is present in one of the gpt nodes, then it is safe to use such gpt to reset the board,
- PCI is supported if enabled in the kernel configuration and if there is a PCI bus node defined in the device tree.
---
Once more, this is a updated version of the patch 04/13 from the patchset that adds arch/powerpc support for three MPC5200 based boards:
TQ-Components TQM5200, Schindler CM5200 and Promess Motion-PRO.
Thanks to Stephen Rothwell for catching inconsistencies that sneaked in.
Cheers,
Marian Balakowicz
arch/powerpc/boot/dts/lite5200.dts | 2 - arch/powerpc/boot/dts/lite5200b.dts | 2 - arch/powerpc/platforms/52xx/Kconfig | 22 ++++++- arch/powerpc/platforms/52xx/Makefile | 1 arch/powerpc/platforms/52xx/mpc5200_simple.c | 85 ++++++++++++++++++++++++++ 5 files changed, 108 insertions(+), 4 deletions(-) create mode 100644 arch/powerpc/platforms/52xx/mpc5200_simple.c
arch/powerpc/boot/dts/lite5200.dts +1 -1
@@ -19,7 +19,7 @@ / { model = "fsl,lite5200"; // revision = "1.0"; - compatible = "fsl,lite5200","generic-mpc5200"; + compatible = "fsl,lite5200"; #address-cells = <1>; #size-cells = <1>;
arch/powerpc/boot/dts/lite5200b.dts +1 -1
@@ -19,7 +19,7 @@ / { model = "fsl,lite5200b"; // revision = "1.0"; - compatible = "fsl,lite5200b","generic-mpc5200"; + compatible = "fsl,lite5200b"; #address-cells = <1>; #size-cells = <1>;
arch/powerpc/platforms/52xx/Kconfig +20 -2
@@ -19,6 +19,26 @@ config PPC_MPC5200_BUGFIX It is safe to say 'Y' here +config PPC_MPC5200_SIMPLE + bool "Generic support for simple MPC5200 based boards" + depends on PPC_MULTIPLATFORM && PPC32 + select PPC_MPC5200 + default n + help + This option enables support for a simple MPC52xx based boards which + do not need a custom platform specific setup. Such boards are + supported assuming the following: + + - GPIO pins are configured by the firmware, + - CDM configuration (clocking) is setup correctly by firmware, + - if the 'fsl,has-wdt' property is present in one of the + gpt nodes, then it is safe to use such gpt to reset the board, + - PCI is supported if enabled in the kernel configuration + and if there is a PCI bus node defined in the device tree. + + Boards that are compatible with this generic platform support + are: 'tqc,tqm5200', 'promess,motionpro', 'schindler,cm5200'. + config PPC_EFIKA bool "bPlan Efika 5k2. MPC5200B based computer" depends on PPC_MULTIPLATFORM && PPC32
@@ -34,5 +54,3 @@ config PPC_LITE5200 select WANT_DEVICE_TREE select PPC_MPC5200 default n - -
arch/powerpc/platforms/52xx/Makefile +1 -0
@@ -6,6 +6,7 @@ obj-y += mpc52xx_pic.o mpc52xx_common.o obj-$(CONFIG_PCI) += mpc52xx_pci.o endif +obj-$(CONFIG_PPC_MPC5200_SIMPLE) += mpc5200_simple.o obj-$(CONFIG_PPC_EFIKA) += efika.o obj-$(CONFIG_PPC_LITE5200) += lite5200.o
arch/powerpc/platforms/52xx/mpc5200_simple.c new file +85 -0
85 lines not on this page · raw message