Add initial MPC8544DS platform files.
Subsystems (3)
PATCH 2/2 Add initial MPC8544DS platform files.
This patch provides the basic 8544 platform code and config. Follow-up patches will add peripherals such as PCI and SATA.
Signed-off-by Xianghua Xiao <[email protected]>
Signed-off-by Roy Zang <[email protected]>
Signed-off-by York Sun <[email protected]>
Signed-off-by Andy Fleming <[email protected]>
Signed-off-by Jon Loeliger <[email protected]>
--- arch/powerpc/boot/dts/mpc8544ds.dts | 137 ++++++++++++++++++++++++++++ arch/powerpc/platforms/85xx/Kconfig | 9 ++- arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/mpc8544_ds.c | 147 ++++++++++++++++++++++++++++++ 4 files changed, 293 insertions(+), 1 deletions(-) create mode 100644 arch/powerpc/boot/dts/mpc8544ds.dts create mode 100644 arch/powerpc/platforms/85xx/mpc8544_ds.c
arch/powerpc/boot/dts/mpc8544ds.dts new file +137 -0
@@ -0,0 +1,137 @@ +/* + * MPC8544 DS Device Tree Source + * + * Copyright 2007 Freescale Semiconductor Inc. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +/ { + model = "MPC8544DS"; + compatible = "MPC8544DS", "MPC85xxDS"; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #cpus = <1>; + #address-cells = <1>; + #size-cells = <0>; + + PowerPC,8544@0 { + device_type = "cpu"; + reg = <0>; + d-cache-line-size = <20>; // 32 bytes + i-cache-line-size = <20>; // 32 bytes + d-cache-size = <8000>; // L1, 32K + i-cache-size = <8000>; // L1, 32K + timebase-frequency = <0>; + bus-frequency = <0>; + clock-frequency = <0>; + 32-bit; + }; + }; + + memory { + device_type = "memory"; + reg = <00000000 00000000>; // Filled by U-Boot + }; + + soc8544@e0000000 { + #address-cells = <1>; + #size-cells = <1>; + #interrupt-cells = <2>; + device_type = "soc"; + ranges = <0 e0000000 00100000>; + reg = <e0000000 00100000>; // CCSRBAR 1M + bus-frequency = <0>; // Filled out by uboot. + + i2c@3000 { + device_type = "i2c"; + compatible = "fsl-i2c"; + reg = <3000 100>; + interrupts = <2b 2>; + interrupt-parent = <&mpic>; + dfsrr; + }; + + mdio@24520 { + #address-cells = <1>; + #size-cells = <0>; + device_type = "mdio"; + compatible = "gianfar"; + reg = <24520 20>; + phy0: ethernet-phy@0 { + interrupt-parent = <&mpic>; + interrupts = <4a 1>; + reg = <0>; + device_type = "ethernet-phy"; + }; + phy1: ethernet-phy@1 { + interrupt-parent = <&mpic>; + interrupts = <4a 1>; + reg = <1>; + device_type = "ethernet-phy"; + }; + }; + + ethernet@24000 { + #address-cells = <1>; + #size-cells = <0>; + device_type = "network"; + model = "TSEC"; + compatible = "gianfar"; + reg = <24000 1000>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <1d 2 1e 2 22 2>; + interrupt-parent = <&mpic>; + phy-handle = <&phy0>; + }; + + ethernet@26000 { + #address-cells = <1>; + #size-cells = <0>; + device_type = "network"; + model = "TSEC"; + compatible = "gianfar"; + reg = <26000 1000>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <1f 2 20 2 21 2>; + interrupt-parent = <&mpic>; + phy-handle = <&phy1>; + }; + + serial@4500 { + device_type = "serial"; + compatible = "ns16550"; + reg = <4500 100>; + clock-frequency = <0>; + interrupts = <2a 2>; + interrupt-parent = <&mpic>; + }; + + serial@4600 { + device_type = "serial"; + compatible = "ns16550"; + reg = <4600 100>; + clock-frequency = <0>; + interrupts = <2a 2>; + interrupt-parent = <&mpic>; + }; + + mpic: pic@40000 { + clock-frequency = <0>; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <2>; + reg = <40000 40000>; + built-in; + compatible = "chrp,open-pic"; + device_type = "open-pic"; + big-endian; + interrupt-parent = <&mpic>; + }; + }; +};
arch/powerpc/platforms/85xx/Kconfig +8 -1
@@ -30,6 +30,12 @@ config MPC85xx_MDS help This option enables support for the MPC85xx MDS board +config MPC8544_DS + bool "Freescale MPC8544 DS" + select DEFAULT_UIMAGE + help + This option enables support for the MPC8544 DS board + endchoice config MPC8540
@@ -47,7 +53,8 @@ config MPC85xx bool select PPC_UDBG_16550 select PPC_INDIRECT_PCI - default y if MPC8540_ADS || MPC85xx_CDS || MPC8560_ADS || MPC85xx_MDS + default y if MPC8540_ADS || MPC85xx_CDS || MPC8560_ADS \ + || MPC85xx_MDS || MPC8544_DS config PPC_INDIRECT_PCI_BE bool
arch/powerpc/platforms/85xx/Makefile +1 -0
@@ -5,4 +5,5 @@ obj-$(CONFIG_PPC_85xx) += misc.o pci.o obj-$(CONFIG_MPC8540_ADS) += mpc85xx_ads.o obj-$(CONFIG_MPC8560_ADS) += mpc85xx_ads.o obj-$(CONFIG_MPC85xx_CDS) += mpc85xx_cds.o +obj-$(CONFIG_MPC8544_DS) += mpc8544_ds.o obj-$(CONFIG_MPC85xx_MDS) += mpc85xx_mds.o
arch/powerpc/platforms/85xx/mpc8544_ds.c new file +147 -0
147 lines not on this page · raw message
Signature · 1 line
1.5.0.3
Quoted 9 lines · Jon Loeliger
This patch provides the basic 8544 platform code and config. Follow-up patches will add peripherals such as PCI and SATA.
Signed-off-by Xianghua Xiao <[email protected]>Signed-off-by Roy Zang <[email protected]>Signed-off-by York Sun <[email protected]>Signed-off-by Andy Fleming <[email protected]>Signed-off-by Jon Loeliger <[email protected]>
Quoted 10 lines
--- arch/powerpc/boot/dts/mpc8544ds.dts | 137 +++++++++++++++++++ +++++++++ arch/powerpc/platforms/85xx/Kconfig | 9 ++- arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/mpc8544_ds.c | 147 +++++++++++++++++++ +++++++++++ 4 files changed, 293 insertions(+), 1 deletions(-) create mode 100644 arch/powerpc/boot/dts/mpc8544ds.dts create mode 100644 arch/powerpc/platforms/85xx/mpc8544_ds.c
All the internal interrupts are offset by 16. Please fix that up. Otherwise looks ok.
- k
Review
Quoted 13 lines
(quoted diff) +12
-0+ mpic: pic@40000 { + clock-frequency =3D <0>; + interrupt-controller; + #address-cells =3D <0>; + #interrupt-cells =3D <2>; + reg =3D <40000 40000>; + built-in; + compatible =3D "chrp,open-pic"; + device_type =3D "open-pic"; + big-endian; + interrupt-parent =3D <&mpic>; + };
The pic should not have an interrupt-parent property pointing to itself.
Stuart