powerpc/t4qds: Add T4QDS board
PATCH 1/4 powerpc/t4qds: Add T4QDS board
The T4240QDS is a high-performance computing evaluation, development and test platform supporting the T4240 QorIQ Power Architecture? processor.
SERDES Connections
32 lanes grouped into four 8-lane banks
Two ?front side? banks dedicated to Ethernet Two ?back side? banks dedicated to other protocols
DDR Controllers
Three independant 64-bit DDR3 controllers Supports rates up to 2133 MHz data-rate Supports two DDR3/DDR3LP UDIMM/RDIMMs per controller
QIXIS System Logic FPGA
Each DDR controller has two DIMM slots. The first slot of each controller has up to 4 chip selects to support single-, dual- and quad-rank DIMMs. The second slot has only 2 chip selects to support single- and dual-rank DIMMs. At any given time, up to total 4 chip selects can be used.
Detail information can be found in doc/README.t4qds
--- board/freescale/t4qds/Makefile | 54 ++ board/freescale/t4qds/ddr.c | 186 +++++++ board/freescale/t4qds/eth.c | 495 ++++++++++++++++++ board/freescale/t4qds/law.c | 47 ++ board/freescale/t4qds/pci.c | 39 ++ board/freescale/t4qds/t4240qds_qixis.h | 56 ++ board/freescale/t4qds/t4qds.c | 395 ++++++++++++++ board/freescale/t4qds/t4qds.h | 37 ++ board/freescale/t4qds/tlb.c | 136 +++++ boards.cfg | 3 + doc/README.t4240qds | 98 ++++ include/configs/T4240QDS.h | 35 ++ include/configs/t4qds.h | 875 ++++++++++++++++++++++++++++++++ 13 files changed, 2456 insertions(+) create mode 100644 board/freescale/t4qds/Makefile create mode 100644 board/freescale/t4qds/ddr.c create mode 100644 board/freescale/t4qds/eth.c create mode 100644 board/freescale/t4qds/law.c create mode 100644 board/freescale/t4qds/pci.c create mode 100644 board/freescale/t4qds/t4240qds_qixis.h create mode 100644 board/freescale/t4qds/t4qds.c create mode 100644 board/freescale/t4qds/t4qds.h create mode 100644 board/freescale/t4qds/tlb.c create mode 100644 doc/README.t4240qds create mode 100644 include/configs/T4240QDS.h create mode 100644 include/configs/t4qds.h
board/freescale/t4qds/Makefile new file +54 -0
@@ -0,0 +1,54 @@ +# +# Copyright 2012 Freescale Semiconductor, Inc. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(BOARD).o + +COBJS-y += $(BOARD).o +COBJS-y += ddr.o +COBJS-$(CONFIG_T4240QDS)+= eth.o +COBJS-$(CONFIG_PCI) += pci.o +COBJS-y += law.o +COBJS-y += tlb.o + +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS-y)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(call cmd_link_o_target, $(OBJS)) + +clean: + rm -f $(OBJS) $(SOBJS) + +distclean: clean + rm -f $(LIB) core *.bak .depend + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
board/freescale/t4qds/ddr.c new file +186 -0
186 lines not on this page · raw message
board/freescale/t4qds/eth.c new file +495 -0
495 lines not on this page · raw message
board/freescale/t4qds/law.c new file +47 -0
47 lines not on this page · raw message
board/freescale/t4qds/pci.c new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright 2007-2012 Freescale Semiconductor, Inc. +* +* 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 +*/ + +#include <common.h> +#include <command.h> +#include <pci.h> +#include <asm/fsl_pci.h> +#include <libfdt.h> +#include <fdt_support.h> +#include <asm/fsl_serdes.h> + +void pci_init_board (void ) +{ +fsl_pcie_init_board (0 ); +} + +void pci_of_setup (void *blob,bd_t *bd) +{ +FT_FSL_PCI_SETUP ; +}
board/freescale/t4qds/t4240qds_qixis.h new file +56 -0
56 lines not on this page · raw message
board/freescale/t4qds/t4qds.c new file +395 -0
395 lines not on this page · raw message
board/freescale/t4qds/t4qds.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* Copyright 2011-2012 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. +* +* 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 +*/ + +#ifndef __CORENET_DS_H__ +#define __CORENET_DS_H__ + +void fdt_fixup_board_enet (void *blob); +void pci_of_setup (void *blob,bd_t *bd); + +static const int8_t vsc3316_fsm1_tx[8 ][2 ] = { {0 ,0 }, {1 ,1 }, {6 ,6 }, {7 ,7 }, + {8 ,8 }, {9 ,9 }, {14 ,14 }, {15 ,15 } }; + +static const int8_t vsc3316_fsm2_tx[8 ][2 ] = { {2 ,2 }, {3 ,3 }, {4 ,4 }, {5 ,5 }, + {10 ,10 }, {11 ,11 }, {12 ,12 }, {13 ,13 } }; + +static const int8_t vsc3316_fsm1_rx[8 ][2 ] = { {2 ,12 }, {3 ,13 }, {4 ,5 }, {5 ,4 }, + {10 ,11 }, {11 ,10 }, {12 ,2 }, {13 ,3 } }; + +static const int8_t vsc3316_fsm2_rx[8 ][2 ] = { {0 ,15 }, {1 ,14 }, {6 ,7 }, {7 ,6 }, + {8 ,9 }, {9 ,8 }, {14 ,1 }, {15 ,0 } }; +#endif
board/freescale/t4qds/tlb.c new file +136 -0
136 lines not on this page · raw message
boards.cfg +3 -0
@@ -831,6 +831,9 @@ BSC9131RDB_SPIFLASH powerpc mpc85xx bsc9131rdb freesca stxgp3 powerpc mpc85xx stxgp3 stx stxssa powerpc mpc85xx stxssa stx - stxssa stxssa_4M powerpc mpc85xx stxssa stx - stxssa:STXSSA_4M +T4240QDS powerpc mpc85xx t4qds freescale +T4240QDS_SDCARD powerpc mpc85xx t4qds freescale - T4240QDS:RAMBOOT_PBL,SDCARD,SYS_TEXT_BASE=0xFFF80000 +T4240QDS_SPIFLASH powerpc mpc85xx t4qds freescale - T4240QDS:RAMBOOT_PBL,SPIFLASH,SYS_TEXT_BASE=0xFFF80000 TQM8540 powerpc mpc85xx tqm85xx tqc - TQM85xx:MPC8540,TQM8540=y,HOSTNAME=tqm8540,BOARDNAME="TQM8540" TQM8541 powerpc mpc85xx tqm85xx tqc - TQM85xx:MPC8541,TQM8541=y,HOSTNAME=tqm8541,BOARDNAME="TQM8541" TQM8548 powerpc mpc85xx tqm85xx tqc - TQM85xx:MPC8548,TQM8548=y,HOSTNAME=tqm8548,BOARDNAME="TQM8548"
doc/README.t4240qds new file +98 -0
98 lines not on this page · raw message
include/configs/T4240QDS.h new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Copyright 2011-2012 Freescale Semiconductor, Inc. +* +* 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 +*/ + +/* +* T4240 QDS board configuration file +*/ +#define CONFIG_T4240QDS +#define CONFIG_PHYS_64BIT +#define CONFIG_PPC_T4240 + +#define CONFIG_FSL_SATA_V2 +#define CONFIG_PCIE4 + +#define CONFIG_ICS307_REFCLK_HZ 25000000/* ICS307 ref clk freq */ + +#include "t4qds.h"
include/configs/t4qds.h new file +875 -0
875 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 2/4 mpc85xx/portals: Add qman and bman ip_cfg field into portal info
From: Haiying Wang <[email protected]>
Because QMan3.0 and BMan2.1 used ip_cfg in ip_rev_2 register to differ the total portal number, buffer pool number etc, we can use this info to limit those resources in kernel driver.
--- arch/powerpc/cpu/mpc85xx/portals.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
arch/powerpc/cpu/mpc85xx/portals.c +11 -2
@@ -182,14 +182,18 @@ void fdt_fixup_qportals(void *blob) {int off, err;unsigned int maj, min; +unsigned int ip_cfg;u32 rev_1 =in_be32 (&qman->ip_rev_1); +u32 rev_2 =in_be32 (&qman->ip_rev_2);char compat[64 ];int compat_len; maj = (rev_1 >>8 ) &0xff ; min = rev_1 &0xff ; + ip_cfg = rev_2 &0xff ; - compat_len =sprintf (compat,"fsl,qman-portal-%u.%u" , maj, min) +1 ; + compat_len =sprintf (compat,"fsl,qman-portal-%u.%u.%u" , + maj, min, ip_cfg) +1 ; compat_len +=sprintf (compat + compat_len,"fsl,qman-portal" ) +1 ; off =fdt_node_offset_by_compatible (blob,-1 ,"fsl,qman-portal" );
@@ -267,14 +271,19 @@ void fdt_fixup_bportals(void *blob) {int off, err;unsigned int maj, min; +unsigned int ip_cfg;u32 rev_1 =in_be32 (&bman->ip_rev_1); +u32 rev_2 =in_be32 (&bman->ip_rev_2);char compat[64 ];int compat_len; maj = (rev_1 >>8 ) &0xff ; min = rev_1 &0xff ; - compat_len =sprintf (compat,"fsl,bman-portal-%u.%u" , maj, min) +1 ; + ip_cfg = rev_2 &0xff ; + + compat_len =sprintf (compat,"fsl,bman-portal-%u.%u.%u" , + maj, min, ip_cfg) +1 ; compat_len +=sprintf (compat + compat_len,"fsl,bman-portal" ) +1 ; off =fdt_node_offset_by_compatible (blob,-1 ,"fsl,bman-portal" );
Signature · 1 line
1.7.9.5
PATCH 3/4 poweprc/85xx: add QMan frequency info and fdt fixup.
In reply to York SunFrom: Haiying Wang <[email protected]>
Starting from QMan3.0, the QMan clock cycle needs be exposed so that the kernel driver can use it to calculate the shaper prescaler and rate.
--- arch/powerpc/cpu/mpc85xx/cpu.c | 4 ++++ arch/powerpc/cpu/mpc85xx/fdt.c | 5 +++++ arch/powerpc/cpu/mpc85xx/speed.c | 4 ++++ include/e500.h | 3 +++ 4 files changed, 16 insertions(+)
arch/powerpc/cpu/mpc85xx/cpu.c +4 -0
@@ -217,6 +217,10 @@ int checkcpu (void) }#endif +#ifdef CONFIG_SYS_DPAA_QBMAN +printf (" QMAN: %s MHz\n" ,strmhz (buf1, sysinfo.freqQMAN)); +#endif +#ifdef CONFIG_SYS_DPAA_PME printf (" PME: %s MHz\n" ,strmhz (buf1, sysinfo.freqPME));#endif
arch/powerpc/cpu/mpc85xx/fdt.c +5 -0
@@ -411,6 +411,11 @@ static void ft_fixup_dpaa_clks(void *blob)#endif #endif +#ifdef CONFIG_SYS_DPAA_QBMAN +do_fixup_by_compat_u32 (blob,"fsl,qman" , +"clock-frequency" , sysinfo.freqQMAN,1 ); +#endif +#ifdef CONFIG_SYS_DPAA_PME do_fixup_by_compat_u32 (blob,"fsl,pme" ,"clock-frequency" , sysinfo.freqPME,1 );
arch/powerpc/cpu/mpc85xx/speed.c +4 -0
@@ -167,6 +167,10 @@ void get_sys_info (sys_info_t * sysInfo) }#endif +#ifdef CONFIG_SYS_DPAA_QBMAN + sysInfo->freqQMAN = sysInfo->freqSystemBus /2 ; +#endif +#ifdef CONFIG_SYS_DPAA_FMAN switch ((rcw_tmp &FM1_CLK_SEL ) >>FM1_CLK_SHIFT ) {case 1 :
include/e500.h +3 -0
@@ -18,6 +18,9 @@ typedef struct#ifdef CONFIG_SYS_DPAA_FMAN unsigned long freqFMan[CONFIG_SYS_NUM_FMAN ];#endif +#ifdef CONFIG_SYS_DPAA_QBMAN +unsigned long freqQMAN; +#endif #ifdef CONFIG_SYS_DPAA_PME unsigned long freqPME;#endif
Signature · 1 line
1.7.9.5
PATCH 4/4 powerpc/b4860qds: Add B4860QDS board
In reply to York SunB4860QDS is a high-performance computing evaluation, development and test platform supporting the B4860 QorIQ Power Architecture? processor.
VSC3316 is 11.5Gbps 16x16 Asynchronous cross-point switch and VSC3308 is 11.5Gbps 8x8 Asynchronous cross-point switch, these crosspoint switches commute SerDes lanes to different destinations depending upon their programming in accordance with SerDes protocol
1) Add defines for VSC3316/3308 crosspoint switches
2) Add define for PCA-I2C bus multiplexer
3) Add support in b4860qds board file to configure these crosspoint switches based on the SerDes1 and SerDes2 protocol
4) Add VSC3316 and VSC3308 Mux entries for all possible crosspoint connections on b4860qds board
B4860 has FMANv3 so the External PHYs are accessible using dedicated MDIO blocks at addresse 0x4fc0000 0x4fd0000.
B4860 has only SGMII, no RGMII, single FMAN.
Slot and PHYs details on B4860QDS
-----------------------------------
- Two on board SGMII PHYs connected through serdes1 via crossbar
- Two slots available via AMC2PEX connector through serdes2
- Slot1 (PCIe/ SGMII riser/ XAUI)
connected to serdes2 lanes 0,1,2,3
- Slot2 (PCIe/ SGMII Riser/ XAUI)
connected to serdes2 lanes 4,5,6,7 via crossbar
Cross bar is a Vitesse switch on B4860 QDS which is connected to serdes on one side(input) and the PHYs(output) on the other side.
So this device needs to be configured to get the right serdes lanes go to the right PHYs and slots. Cross bar configurations done based on the RCW.
Currently the below mentioned are tested and supported:
1. sgmii5 and sgmii6 are connected to onboard PHYs srds1_prtcl=0x2A
2. sgmii 1, sgmiii2, sgmii3, sgmii4 via SGMII riser card on Slot#1 srds2_prtcl=0x18
--- board/freescale/b4860qds/Makefile | 54 ++ board/freescale/b4860qds/b4860qds.c | 444 ++++++++++++ board/freescale/b4860qds/b4860qds.h | 26 + board/freescale/b4860qds/b4860qds_crossbar_con.h | 58 ++ board/freescale/b4860qds/b4860qds_qixis.h | 47 ++ board/freescale/b4860qds/ddr.c | 190 +++++ board/freescale/b4860qds/eth_b4860qds.c | 287 ++++++++ board/freescale/b4860qds/law.c | 44 ++ board/freescale/b4860qds/pci.c | 39 ++ board/freescale/b4860qds/tlb.c | 122 ++++ boards.cfg | 2 + doc/README.b4860qds | 20 + include/configs/B4860QDS.h | 812 ++++++++++++++++++++++ 13 files changed, 2145 insertions(+) create mode 100644 board/freescale/b4860qds/Makefile create mode 100644 board/freescale/b4860qds/b4860qds.c create mode 100644 board/freescale/b4860qds/b4860qds.h create mode 100644 board/freescale/b4860qds/b4860qds_crossbar_con.h create mode 100644 board/freescale/b4860qds/b4860qds_qixis.h create mode 100644 board/freescale/b4860qds/ddr.c create mode 100644 board/freescale/b4860qds/eth_b4860qds.c create mode 100644 board/freescale/b4860qds/law.c create mode 100644 board/freescale/b4860qds/pci.c create mode 100644 board/freescale/b4860qds/tlb.c create mode 100644 doc/README.b4860qds create mode 100644 include/configs/B4860QDS.h
board/freescale/b4860qds/Makefile new file +54 -0
@@ -0,0 +1,54 @@ +# +# Copyright 2012 Freescale Semiconductor, Inc. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(BOARD).o + +COBJS-y += $(BOARD).o +COBJS-y += ddr.o +COBJS-$(CONFIG_B4860QDS)+= eth_b4860qds.o +COBJS-$(CONFIG_PCI) += pci.o +COBJS-y += law.o +COBJS-y += tlb.o + +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS-y)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(call cmd_link_o_target, $(OBJS)) + +clean: + rm -f $(OBJS) $(SOBJS) + +distclean: clean + rm -f $(LIB) core *.bak .depend + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
board/freescale/b4860qds/b4860qds.c new file +444 -0
444 lines not on this page · raw message
board/freescale/b4860qds/b4860qds.h new file +26 -0
@@ -0,0 +1,26 @@ +/* +* Copyright 2011-2012 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. +* +* 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 +*/ + +#ifndef __CORENET_DS_H__ +#define __CORENET_DS_H__ + +void fdt_fixup_board_enet (void *blob); +void pci_of_setup (void *blob,bd_t *bd); + +#endif
board/freescale/b4860qds/b4860qds_crossbar_con.h new file +58 -0
58 lines not on this page · raw message
board/freescale/b4860qds/b4860qds_qixis.h new file +47 -0
47 lines not on this page · raw message
board/freescale/b4860qds/ddr.c new file +190 -0
190 lines not on this page · raw message
board/freescale/b4860qds/eth_b4860qds.c new file +287 -0
287 lines not on this page · raw message
board/freescale/b4860qds/law.c new file +44 -0
44 lines not on this page · raw message
board/freescale/b4860qds/pci.c new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright 2011-2012 Freescale Semiconductor, Inc. +* +* 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 +*/ + +#include <common.h> +#include <command.h> +#include <pci.h> +#include <asm/fsl_pci.h> +#include <libfdt.h> +#include <fdt_support.h> +#include <asm/fsl_serdes.h> + +void pci_init_board (void ) +{ +fsl_pcie_init_board (0 ); +} + +void pci_of_setup (void *blob,bd_t *bd) +{ +FT_FSL_PCI_SETUP ; +}
board/freescale/b4860qds/tlb.c new file +122 -0
122 lines not on this page · raw message
boards.cfg +2 -0
@@ -834,6 +834,8 @@ stxssa_4M powerpc mpc85xx stxssa stx T4240QDS powerpc mpc85xx t4qds freescale T4240QDS_SDCARD powerpc mpc85xx t4qds freescale - T4240QDS:RAMBOOT_PBL,SDCARD,SYS_TEXT_BASE=0xFFF80000 T4240QDS_SPIFLASH powerpc mpc85xx t4qds freescale - T4240QDS:RAMBOOT_PBL,SPIFLASH,SYS_TEXT_BASE=0xFFF80000 +B4860QDS powerpc mpc85xx b4860qds freescale +B4860QDS_NAND powerpc mpc85xx b4860qds freescale - B4860QDS:RAMBOOT_PBL,NAND,SYS_TEXT_BASE=0xFFF80000 TQM8540 powerpc mpc85xx tqm85xx tqc - TQM85xx:MPC8540,TQM8540=y,HOSTNAME=tqm8540,BOARDNAME="TQM8540" TQM8541 powerpc mpc85xx tqm85xx tqc - TQM85xx:MPC8541,TQM8541=y,HOSTNAME=tqm8541,BOARDNAME="TQM8541" TQM8548 powerpc mpc85xx tqm85xx tqc - TQM85xx:MPC8548,TQM8548=y,HOSTNAME=tqm8548,BOARDNAME="TQM8548"
doc/README.b4860qds new file +20 -0
@@ -0,0 +1,20 @@ +Overview +-------- +The B4860QDS is a Freescale reference board that hosts the B4860 SoC (and variants). + +Memory map +---------- +The addresses in brackets are physical addresses. + +0x0_0000_0000 (0x0_0000_0000) - 0x0_7fff_ffff 2GB DDR (more than 2GB is initialized but not mapped under with TLB) +0x0_8000_0000 (0xc_0000_0000) - 0x0_8fff_ffff 512MB PCIE memory +0x0_f000_0000 (0xf_0000_0000) - 0x0_f03f_ffff 4MB DCSR +0x0_f400_0000 (0xf_f400_0000) - 0x0_f5ff_ffff 32MB BMan +0x0_f600_0000 (0xf_f500_0000) - 0x0_f7ff_ffff 32MB QMan +0x0_f800_0000 (0xf_f800_0000) - 0x0_f800_ffff 64KB PCIE IO +0x0_e000_0000 (0xf_e000_0000) - 0x0_efff_ffff 256MB NOR flash +0x0_fe00_0000 (0xf_fe00_0000) - 0x0_feff_ffff 16MB CCSR +0x0_ffdf_0000 (0xf_ffdf_0000) - 0x0_ffdf_03ff 4KB QIXIS +0x0_ffff_f000 (0x0_7fff_fff0) - 0x0_ffff_ffff 4KB Boot page translation for secondary cores + +The physical address of the last (boot page translation) varies with the actual DDR size.
include/configs/B4860QDS.h new file +812 -0
812 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/4 powerpc/t4qds: Add T4QDS board
In reply to York Suninclude/configs/t4qds.h line 792
Quoted 13 lines · York Sun
The T4240QDS is a high-performance computing evaluation, development and test platform supporting the T4240 QorIQ Power Architecture? processor.
include/configs/t4qds.h new file +10
-0+ +#define __USB_PHY_TYPE utmi + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "hwconfig=fsl_ddr:ctlr_intlv=3way_4KB," \ + "bank_intlv=auto;" \ + "usb1:dr_mode=host,phy_type=" MK_STR(__USB_PHY_TYPE) "\0"\ + "netdev=eth0\0" \ + "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ + "ubootaddr=" MK_STR(CONFIG_SYS_TEXT_BASE) "\0" \
Please note that MK_STR() has been eliminated in the top of tree. Please use __stringify() in the future. I have fixed this patch, but future patches should use __stringify.
Andy
PATCH 4/4 powerpc/b4860qds: Add B4860QDS board
In reply to York SunQuoted 39 lines · York Sun
B4860QDS is a high-performance computing evaluation, development and test platform supporting the B4860 QorIQ Power Architecture? processor.
VSC3316 is 11.5Gbps 16x16 Asynchronous cross-point switch and VSC3308 is 11.5Gbps 8x8 Asynchronous cross-point switch, these crosspoint switches commute SerDes lanes to different destinations depending upon their programming in accordance with SerDes protocol
1) Add defines for VSC3316/3308 crosspoint switches
2) Add define for PCA-I2C bus multiplexer
3) Add support in b4860qds board file to configure these crosspoint switches based on the SerDes1 and SerDes2 protocol
4) Add VSC3316 and VSC3308 Mux entries for all possible crosspoint connections on b4860qds boardB4860 has FMANv3 so the External PHYs are accessible using dedicated MDIO blocks at addresse
0x4fc00000x4fd0000.
B4860 has only SGMII, no RGMII, single FMAN.Slot and PHYs details on B4860QDS
-----------------------------------
- Two on board SGMII PHYs connected through serdes1 via crossbar
- Two slots available via AMC2PEX connector through serdes2
- Slot1 (PCIe/ SGMII riser/ XAUI)
connected to serdes2 lanes 0,1,2,3
- Slot2 (PCIe/ SGMII Riser/ XAUI)
connected to serdes2 lanes 4,5,6,7 via crossbarCross bar is a Vitesse switch on B4860 QDS which is connected to serdes on one side(input) and the PHYs(output) on the other side.
So this device needs to be configured to get the right serdes lanes go to the right PHYs and slots. Cross bar configurations done based on the RCW.Currently the below mentioned are tested and supported:
1. sgmii5 and sgmii6 are connected to onboard PHYs srds1_prtcl=0x2A
2. sgmii 1, sgmiii2, sgmii3, sgmii4 via SGMII riser card on Slot#1 srds2_prtcl=0x18
Quoted 8 lines
Signed-off-by York Sun <[email protected]>Signed-off-by Prabhakar Kushwaha <[email protected]>Signed-off-by Shaveta Leekha <[email protected]>Signed-off-by Priyanka Jain <[email protected]>Signed-off-by Poonam Aggrwal <[email protected]>Signed-off-by Roy Zang <[email protected]>Signed-off-by Sandeep Singh <[email protected]>---
Please note that, due to compile issues brought on by not defining QIXIS_RST_CTL_RESET and other similar constants, the B4860QDS code cannot be applied to the tree. Internal review indicates that these features are implemented differently on B4QDS, and the code needs to be updated to reflect that.
Andy