85xx: Support for XPedite5200
v2 cover 85xx: Support for XPedite5200
These 2 patches add support for the XPedite5200 SBC - a MPC8548-based PMC card made by Extreme Engineering Solutions.
The patches require the following 2 patches to be applied first:
- pca953x: Add support for PCA953x I2C gpio devices
- XPedite5370 board support
changes since v1:
- Change alignment by spaces to alignment by tabs
- Fixed typos in host_agent_cfg/io_port_cfg
- Fixed variable declaration in code
- Fixed some lines longer than 80 chars
- Cleaned up environment configuration defines
- Fixed multiline comment style
Best,
Peter
Peter Tyser (2):
85xx: Add PORDEVSR_PCI1 define
XPedite5200 board support
MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 3 + board/xes/common/Makefile | 3 +- board/xes/common/actl_nand.c | 65 ++++ board/xes/common/fsl_85xx_pci.c | 103 +++++++- board/xes/xpedite5200/Makefile | 55 ++++ board/xes/xpedite5200/config.mk | 34 +++ board/xes/xpedite5200/ddr.c | 91 ++++++ board/xes/xpedite5200/law.c | 51 ++++ board/xes/xpedite5200/tlb.c | 85 ++++++ board/xes/xpedite5200/u-boot.lds | 145 +++++++++ board/xes/xpedite5200/xpedite5200.c | 125 ++++++++ include/asm-ppc/immap_85xx.h | 1 + include/configs/XPEDITE5200.h | 547 +++++++++++++++++++++++++++++++++++ 15 files changed, 1305 insertions(+), 5 deletions(-) create mode 100644 board/xes/common/actl_nand.c create mode 100644 board/xes/xpedite5200/Makefile create mode 100644 board/xes/xpedite5200/config.mk create mode 100644 board/xes/xpedite5200/ddr.c create mode 100644 board/xes/xpedite5200/law.c create mode 100644 board/xes/xpedite5200/tlb.c create mode 100644 board/xes/xpedite5200/u-boot.lds create mode 100644 board/xes/xpedite5200/xpedite5200.c create mode 100644 include/configs/XPEDITE5200.h
PATCH v2 1/2 85xx: Add PORDEVSR_PCI1 define
Add define used to determine if PCI1 interface is in PCI or PCIX mode.
--- include/asm-ppc/immap_85xx.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
include/asm-ppc/immap_85xx.h +1 -0
@@ -1569,6 +1569,7 @@ typedef struct ccsr_gur {#define MPC85xx_PORDEVSR_SGMII3_DIS 0x08000000#define MPC85xx_PORDEVSR_SGMII4_DIS 0x04000000#define MPC85xx_PORDEVSR_SRDS2_IO_SEL 0x38000000 +#define MPC85xx_PORDEVSR_PCI1 0x00800000#define MPC85xx_PORDEVSR_IO_SEL 0x00780000#define MPC85xx_PORDEVSR_PCI2_ARB 0x00040000#define MPC85xx_PORDEVSR_PCI1_ARB 0x00020000
Signature · 1 line
1.6.0.2.GIT
PATCH v2 2/2 XPedite5200 board support
Initial support for Extreme Engineering Solutions XPedite5200 - a MPC8548-based PMC single board computer.
--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 3 + board/xes/common/Makefile | 3 +- board/xes/common/actl_nand.c | 65 ++++ board/xes/common/fsl_85xx_pci.c | 103 +++++++- board/xes/xpedite5200/Makefile | 55 ++++ board/xes/xpedite5200/config.mk | 34 +++ board/xes/xpedite5200/ddr.c | 91 ++++++ board/xes/xpedite5200/law.c | 51 ++++ board/xes/xpedite5200/tlb.c | 85 ++++++ board/xes/xpedite5200/u-boot.lds | 145 +++++++++ board/xes/xpedite5200/xpedite5200.c | 125 ++++++++ include/configs/XPEDITE5200.h | 547 +++++++++++++++++++++++++++++++++++ 14 files changed, 1304 insertions(+), 5 deletions(-) create mode 100644 board/xes/common/actl_nand.c create mode 100644 board/xes/xpedite5200/Makefile create mode 100644 board/xes/xpedite5200/config.mk create mode 100644 board/xes/xpedite5200/ddr.c create mode 100644 board/xes/xpedite5200/law.c create mode 100644 board/xes/xpedite5200/tlb.c create mode 100644 board/xes/xpedite5200/u-boot.lds create mode 100644 board/xes/xpedite5200/xpedite5200.c create mode 100644 include/configs/XPEDITE5200.h
MAINTAINERS +1 -0
@@ -413,6 +413,7 @@ Rune Torgersen <[email protected]> Peter Tyser <[email protected]> + XPEDITE5200 MPC8548 XPEDITE5370 MPC8572 David Updegraff <[email protected]>
MAKEALL +1 -0
@@ -376,6 +376,7 @@ LIST_85xx=" \ TQM8548 \ TQM8555 \ TQM8560 \ + XPEDITE5200 \ XPEDITE5370 \ "
Makefile +3 -0
@@ -2454,6 +2454,9 @@ TQM8560_config: unconfig echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc +XPEDITE5200_config: unconfig + @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes + XPEDITE5370_config: unconfig @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
board/xes/common/Makefile +2 -1
@@ -29,9 +29,10 @@ endif LIB = $(obj)lib$(VENDOR).a +COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_85xx_pci.o COBJS-$(CONFIG_MPC8572) += fsl_8572_clk.o COBJS-$(CONFIG_MPC85xx) += fsl_85xx_ddr.o -COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_85xx_pci.o +COBJS-$(CONFIG_NAND_ACTL) += actl_nand.o SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(COBJS-y))
board/xes/common/actl_nand.c new file +65 -0
65 lines not on this page · raw message
board/xes/common/fsl_85xx_pci.c +99 -4
146 lines not on this page · raw message
board/xes/xpedite5200/Makefile new file +55 -0
55 lines not on this page · raw message
board/xes/xpedite5200/config.mk new file +34 -0
@@ -0,0 +1,34 @@ +# +# Copyright 2008 Extreme Engineering Solutions, Inc. +# Copyright 2004, 2007 Freescale Semiconductor. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# 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. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# +# xpedite5200 board +# +ifndef TEXT_BASE +TEXT_BASE = 0xfff80000 +endif + +PLATFORM_CPPFLAGS += -DCONFIG_E500=1 +PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1 +PLATFORM_CPPFLAGS += -DCONFIG_MPC8548=1 +PLATFORM_CPPFLAGS += -mrelocatable
board/xes/xpedite5200/ddr.c new file +91 -0
91 lines not on this page · raw message
board/xes/xpedite5200/law.c new file +51 -0
51 lines not on this page · raw message
board/xes/xpedite5200/tlb.c new file +85 -0
85 lines not on this page · raw message
board/xes/xpedite5200/u-boot.lds new file +145 -0
145 lines not on this page · raw message
board/xes/xpedite5200/xpedite5200.c new file +125 -0
125 lines not on this page · raw message
include/configs/XPEDITE5200.h new file +547 -0
547 lines not on this page · raw message
Signature · 1 line
1.6.0.2.GIT
PATCH v2 2/2 XPedite5200 board support
include/configs/XPEDITE5200.h line 176
Quoted 13 lines · Peter Tyser
Initial support for Extreme Engineering Solutions XPedite5200 - a MPC8548-based PMC single board computer.
Signed-off-by Peter Tyser <[email protected]>include/configs/XPEDITE5200.h new file +4
-0+/* +* Use L1 as initial stack +*/ +#define CONFIG_L1_INIT_RAM 1
The above symbol is being removed, and should not be re-introduced in your patch.
include/configs/XPEDITE5200.h line 180
Quoted 4 lines
include/configs/XPEDITE5200.h new file +4
-0+#define CONFIG_SYS_INIT_RAM_LOCK 1 +#define CONFIG_SYS_INIT_RAM_ADDR 0xe0000000 +#define CONFIG_SYS_INIT_RAM_END 0x4000 +
Thanks,
jdl