net/fman: Add support for 10GEC3 and 10GEC4
Subsystems (2)
PATCH v2 1/4 net/fman: Add support for 10GEC3 and 10GEC4
There are more than two 10GEC in single FMAN in some SoCs(e.g. T2080). This patch adds support for 10GEC3 and 10GEC4.
---
Against master branch of git://git.denx.de/u-boot.git
v2: Rebase and add more comments description.
arch/powerpc/include/asm/fsl_serdes.h | 2 ++ arch/powerpc/include/asm/immap_85xx.h | 2 ++ drivers/net/fm/eth.c | 12 ++++++++++-- drivers/net/fm/fm.h | 2 ++ drivers/net/fm/init.c | 18 ++++++++++++++---- include/fm_eth.h | 18 ++++++++++++++++++ 6 files changed, 48 insertions(+), 6 deletions(-)
arch/powerpc/include/asm/fsl_serdes.h +2 -0
@@ -62,6 +62,8 @@ enum srds_prtcl {QSGMII_FM1_B ,/* B indicates MACs 5,6,9,10 */ QSGMII_FM2_A ,QSGMII_FM2_B , +XFI_FM1_MAC1 , +XFI_FM1_MAC2 ,XFI_FM1_MAC9 ,XFI_FM1_MAC10 , XFI_FM2_MAC9,
arch/powerpc/include/asm/immap_85xx.h +2 -0
@@ -1719,6 +1719,8 @@ typedef struct ccsr_gur {#define FSL_CORENET_DEVDISR2_DTSEC1_10 0x00400000#define FSL_CORENET_DEVDISR2_10GEC1_1 0x00800000#define FSL_CORENET_DEVDISR2_10GEC1_2 0x00400000 +#define FSL_CORENET_DEVDISR2_10GEC1_3 0x80000000 +#define FSL_CORENET_DEVDISR2_10GEC1_4 0x40000000#define FSL_CORENET_DEVDISR2_DTSEC2_1 0x00080000#define FSL_CORENET_DEVDISR2_DTSEC2_2 0x00040000#define FSL_CORENET_DEVDISR2_DTSEC2_3 0x00020000
drivers/net/fm/eth.c +10 -2
@@ -557,8 +557,16 @@ static int fm_eth_init_mac(struct fm_eth *fm_eth, struct ccsr_fman *reg) num = fm_eth->num;#ifdef CONFIG_SYS_FMAN_V3 -if (fm_eth->type ==FM_ETH_10G_E ) - num +=8 ; +if (fm_eth->type ==FM_ETH_10G_E ) { +/* 10GEC1/10GEC2 use mEMAC9/mEMAC10 +* 10GEC3/10GEC4 use mEMAC1/mEMAC2 +* so it needs to change the num. +*/ +if (fm_eth->num >=2 ) + num -=2 ; +else + num +=8 ; + } base = ®->memac[num].fm_memac; phyregs = ®->memac[num].fm_memac_mdio;#else
drivers/net/fm/fm.h +2 -0
@@ -18,9 +18,11 @@#define RX_PORT_1G_BASE 0x08#define MAX_NUM_RX_PORT_1G CONFIG_SYS_NUM_FM1_DTSEC#define RX_PORT_10G_BASE 0x10 +#define RX_PORT_10G_BASE2 0x08#define TX_PORT_1G_BASE 0x28#define MAX_NUM_TX_PORT_1G CONFIG_SYS_NUM_FM1_DTSEC#define TX_PORT_10G_BASE 0x30 +#define TX_PORT_10G_BASE2 0x28#define MIIM_TIMEOUT 0xFFFFstruct fm_muram {
drivers/net/fm/init.c +14 -4
@@ -64,6 +64,12 @@ struct fm_eth_info fm_info[] = {#if (CONFIG_SYS_NUM_FM1_10GEC >=2 ) FM_TGEC_INFO_INITIALIZER(1, 2),#endif +#if (CONFIG_SYS_NUM_FM1_10GEC >=3 ) + FM_TGEC_INFO_INITIALIZER2(1, 3), +#endif +#if (CONFIG_SYS_NUM_FM1_10GEC >=4 ) + FM_TGEC_INFO_INITIALIZER2(1, 4), +#endif #if (CONFIG_SYS_NUM_FM2_10GEC >=1 ) FM_TGEC_INFO_INITIALIZER(2, 1),#endif
@@ -239,10 +245,14 @@ static void ft_fixup_port(void *blob, struct fm_eth_info *info, char *prop)* FM1_10GEC1 is enabled and FM1_DTSEC9 is disabled, ensure that the * dual-role MAC is not disabled, ditto for other dual-role MACs. */ - if (((info->port == FM1_DTSEC9) && (PORT_IS_ENABLED(FM1_10GEC1))) || - ((info->port == FM1_DTSEC10) && (PORT_IS_ENABLED(FM1_10GEC2))) || - ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC9))) || - ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC10))) + if (((info->port == FM1_DTSEC9) && (PORT_IS_ENABLED(FM1_10GEC1))) || + ((info->port == FM1_DTSEC10) && (PORT_IS_ENABLED(FM1_10GEC2))) || + ((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC3))) || + ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC4))) || + ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC9))) || + ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC10))) || + ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC1))) || + ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC2))) #if (CONFIG_SYS_NUM_FMAN == 2) || ((info->port == FM2_DTSEC9) && (PORT_IS_ENABLED(FM2_10GEC1))) ||
include/fm_eth.h +18 -0
@@ -22,6 +22,8 @@ enum fm_port {FM1_DTSEC10 ,FM1_10GEC1 ,FM1_10GEC2 , +FM1_10GEC3 , +FM1_10GEC4 ,FM2_DTSEC1 ,FM2_DTSEC2 , FM2_DTSEC3,
@@ -85,6 +87,22 @@ enum fm_eth_type { .compat_offset = CONFIG_SYS_FSL_FM##idx##_OFFSET + \ offsetof(struct ccsr_fman, memac[n-1+8]),\ } + +#if (CONFIG_SYS_NUM_FM1_10GEC >=3 ) +#define FM_TGEC_INFO_INITIALIZER2 (idx, n) \ +{ \ + FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_TGEC_MDIO_ADDR) \ + .index = idx, \ + .num = n - 1, \ + .type = FM_ETH_10G_E, \ + .port = FM##idx##_10GEC##n, \ + .rx_port_id = RX_PORT_10G_BASE2 + n - 3, \ + .tx_port_id = TX_PORT_10G_BASE2 + n - 3, \ + .compat_offset = CONFIG_SYS_FSL_FM##idx##_OFFSET + \ + offsetof(struct ccsr_fman, memac[n-1-2]),\ +} +#endif +#else #define FM_DTSEC_INFO_INITIALIZER (idx, n) \ { \
Signature · 1 line
1.8.0
PATCH v2 2/4 powerpc/mpc85xx: Add T2080/T2081 SoC support
Add support for Freescale T2080/T2081 SoC.
T2080 includes the following functions and features:
- Four dual-threads 64-bit Power architecture e6500 cores, up to 1.8GHz
- 2MB L2 cache and 512KB CoreNet platform cache (CPC)
- Hierarchical interconnect fabric
- One 32-/64-bit DDR3/3L SDRAM memory controllers with ECC and interleaving
- Data Path Acceleration Architecture (DPAA) incorporating acceleration
- 16 SerDes lanes up to 10.3125 GHz
- 8 mEMACs for network interfaces (four 1Gbps MACs and four 10Gbps/1Gbps MACs)
- High-speed peripheral interfaces
- Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0 with SR-IOV)
- Two Serial RapidIO 2.0 controllers/ports running at up to 5 GHz
- Additional peripheral interfaces
- Two serial ATA (SATA 2.0) controllers
- Two high-speed USB 2.0 controllers with integrated PHY
- Enhanced secure digital host controller (SD/SDHC/SDXC/eMMC)
- Enhanced serial peripheral interface (eSPI)
- Four I2C controllers
- Four 2-pin UARTs or two 4-pin UARTs
- Integrated Flash Controller supporting NAND and NOR flash
- Three eight-channel DMA engines
- Support for hardware virtualization and partitioning enforcement
- QorIQ Platform's Trust Architecture 2.0
Differences between T2080 and T2081:
Feature T2080 T2081
1G Ethernet numbers: 8 6 10G Ethernet numbers: 4 2 SerDes lanes: 16 8 Serial RapidIO,RMan: 2 no SATA Controller: 2 no Aurora: yes no
SoC Package: 896-pins 780-pins
---
Against master branch of git://git.denx.de/u-boot.git
v2: resubmit for rebase.
arch/powerpc/cpu/mpc85xx/Makefile | 6 + arch/powerpc/cpu/mpc85xx/speed.c | 2 +- arch/powerpc/cpu/mpc85xx/t2080_ids.c | 142 ++++++++++++++++++++ arch/powerpc/cpu/mpc85xx/t2080_serdes.c | 208 ++++++++++++++++++++++++++++++ arch/powerpc/cpu/mpc8xxx/cpu.c | 2 + arch/powerpc/include/asm/config_mpc85xx.h | 44 +++++++ arch/powerpc/include/asm/immap_85xx.h | 16 +++ arch/powerpc/include/asm/processor.h | 2 + drivers/net/fm/Makefile | 2 + drivers/net/fm/t2080.c | 91 +++++++++++++ 10 files changed, 514 insertions(+), 1 deletion(-) create mode 100644 arch/powerpc/cpu/mpc85xx/t2080_ids.c create mode 100644 arch/powerpc/cpu/mpc85xx/t2080_serdes.c create mode 100644 drivers/net/fm/t2080.c
arch/powerpc/cpu/mpc85xx/Makefile +6 -0
@@ -73,6 +73,8 @@ obj-$(CONFIG_PPC_T1040) += ddr-gen3.o obj-$(CONFIG_PPC_T1042) += ddr-gen3.o obj-$(CONFIG_PPC_T1020) += ddr-gen3.o obj-$(CONFIG_PPC_T1022) += ddr-gen3.o +obj-$(CONFIG_PPC_T2080) += ddr-gen3.o +obj-$(CONFIG_PPC_T2081) += ddr-gen3.o obj-$(CONFIG_CPM2) += ether_fcc.o obj-$(CONFIG_OF_LIBFDT) += fdt.o
@@ -95,6 +97,8 @@ obj-$(CONFIG_PPC_T1040) += t1040_ids.o obj-$(CONFIG_PPC_T1042) += t1040_ids.o obj-$(CONFIG_PPC_T1020) += t1040_ids.o obj-$(CONFIG_PPC_T1022) += t1040_ids.o +obj-$(CONFIG_PPC_T2080) += t2080_ids.o +obj-$(CONFIG_PPC_T2081) += t2080_ids.o obj-$(CONFIG_QE) += qe_io.o
@@ -138,6 +142,8 @@ obj-$(CONFIG_PPC_T1040) += t1040_serdes.o obj-$(CONFIG_PPC_T1042) += t1040_serdes.o obj-$(CONFIG_PPC_T1020) += t1040_serdes.o obj-$(CONFIG_PPC_T1022) += t1040_serdes.o +obj-$(CONFIG_PPC_T2080) += t2080_serdes.o +obj-$(CONFIG_PPC_T2081) += t2080_serdes.o obj-y += cpu.o obj-y += cpu_init.o
arch/powerpc/cpu/mpc85xx/speed.c +1 -1
@@ -122,7 +122,7 @@ void get_sys_info(sys_info_t *sys_info) sys_info->freq_processor[cpu] = freq_c_pll[cplx_pll] / core_cplx_pll_div[c_pll_sel]; } -#ifdef CONFIG_PPC_B4860 +#if defined(CONFIG_PPC_B4860 ) || defined(CONFIG_PPC_T2080 )#define FM1_CLK_SEL 0xe0000000#define FM1_CLK_SHIFT 29#else
arch/powerpc/cpu/mpc85xx/t2080_ids.c new file +142 -0
142 lines not on this page · raw message
arch/powerpc/cpu/mpc85xx/t2080_serdes.c new file +208 -0
208 lines not on this page · raw message
arch/powerpc/cpu/mpc8xxx/cpu.c +2 -0
@@ -75,6 +75,8 @@ static struct cpu_type cpu_type_list[] = {CPU_TYPE_ENTRY (T1020 ,T1020 ,0 ),CPU_TYPE_ENTRY (T1021 ,T1021 ,0 ),CPU_TYPE_ENTRY (T1022 ,T1022 ,0 ), +CPU_TYPE_ENTRY (T2080 ,T2080 ,0 ), +CPU_TYPE_ENTRY (T2081 ,T2081 ,0 ),CPU_TYPE_ENTRY (BSC9130 ,9130 ,1 ),CPU_TYPE_ENTRY (BSC9131 ,9131 ,1 ), CPU_TYPE_ENTRY(BSC9132, 9132, 2),
arch/powerpc/include/asm/config_mpc85xx.h +44 -0
50 lines not on this page · raw message
arch/powerpc/include/asm/immap_85xx.h +16 -0
@@ -1857,6 +1857,12 @@ defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)#define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT 24#define FSL_CORENET2_RCWSR4_SRDS2_PRTCL 0x00fe0000#define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT 17 +#elif defined(CONFIG_PPC_T2080 ) || defined(CONFIG_PPC_T2081 ) +#define FSL_CORENET2_RCWSR4_SRDS1_PRTCL 0xff000000 +#define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT 24 +#define FSL_CORENET2_RCWSR4_SRDS2_PRTCL 0x00ff0000 +#define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT 16 +#define FSL_CORENET_RCWSR6_BOOT_LOC 0x0f800000#endif #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S1_PLL1 0x00800000#define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S1_PLL2 0x00400000
@@ -1920,6 +1926,15 @@ defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)#define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC6_RGMII 0x08000000#define FSL_CORENET_RCWSR13_EC2_FM1_GPIO 0x10000000#endif +#if defined(CONFIG_PPC_T2080 ) || defined(CONFIG_PPC_T2081 ) +#define FSL_CORENET_RCWSR13_EC1 0x60000000/* bits 417..418 */ +#define FSL_CORENET_RCWSR13_EC1_DTSEC3_RGMII 0x00000000 +#define FSL_CORENET_RCWSR13_EC1_GPIO 0x40000000 +#define FSL_CORENET_RCWSR13_EC2 0x18000000/* bits 419..420 */ +#define FSL_CORENET_RCWSR13_EC2_DTSEC4_RGMII 0x00000000 +#define FSL_CORENET_RCWSR13_EC2_DTSEC10_RGMII 0x08000000 +#define FSL_CORENET_RCWSR13_EC2_GPIO 0x10000000 +#endif u8 res18[192 ];u32 scratchrw[4 ];/* Scratch Read/Write */ u8 res19[240 ];
@@ -2916,6 +2931,7 @@ struct ccsr_pman {#define CONFIG_SYS_FSL_CPC_OFFSET 0x10000#define CONFIG_SYS_MPC85xx_DMA1_OFFSET 0x100000#define CONFIG_SYS_MPC85xx_DMA2_OFFSET 0x101000 +#define CONFIG_SYS_MPC85xx_DMA3_OFFSET 0x102000#define CONFIG_SYS_MPC85xx_DMA_OFFSET CONFIG_SYS_MPC85xx_DMA1_OFFSET#define CONFIG_SYS_MPC85xx_ESPI_OFFSET 0x110000#define CONFIG_SYS_MPC85xx_ESDHC_OFFSET 0x114000
arch/powerpc/include/asm/processor.h +2 -0
@@ -1127,6 +1127,8 @@#define SVR_T1020 0x852100#define SVR_T1021 0x852101#define SVR_T1022 0x852102 +#define SVR_T2080 0x853000 +#define SVR_T2081 0x853100#define SVR_8610 0x80A000#define SVR_8641 0x809000
drivers/net/fm/Makefile +2 -0
@@ -28,6 +28,8 @@ obj-$(CONFIG_PPC_T1040) += t1040.o obj-$(CONFIG_PPC_T1042) += t1040.o obj-$(CONFIG_PPC_T1020) += t1040.o obj-$(CONFIG_PPC_T1022) += t1040.o +obj-$(CONFIG_PPC_T2080) += t2080.o +obj-$(CONFIG_PPC_T2081) += t2080.o obj-$(CONFIG_PPC_T4240) += t4240.o obj-$(CONFIG_PPC_T4160) += t4240.o obj-$(CONFIG_PPC_B4420) += b4860.o
drivers/net/fm/t2080.c new file +91 -0
91 lines not on this page · raw message
Signature · 1 line
1.8.0
PATCH v2 2/4 powerpc/mpc85xx: Add T2080/T2081 SoC support
Quoted 33 lines · Shengzhou Liu
Add support for Freescale T2080/T2081 SoC.
T2080 includes the following functions and features:
- Four dual-threads 64-bit Power architecture e6500 cores, up to 1.8GHz
- 2MB L2 cache and 512KB CoreNet platform cache (CPC)
- Hierarchical interconnect fabric
- One 32-/64-bit DDR3/3L SDRAM memory controllers with ECC and interleaving
- Data Path Acceleration Architecture (DPAA) incorporating acceleration
- 16 SerDes lanes up to 10.3125 GHz
- 8 mEMACs for network interfaces (four 1Gbps MACs and four 10Gbps/1Gbps MACs)
- High-speed peripheral interfaces
- Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0 with SR-IOV)
- Two Serial RapidIO 2.0 controllers/ports running at up to 5 GHz
- Additional peripheral interfaces
- Two serial ATA (SATA 2.0) controllers
- Two high-speed USB 2.0 controllers with integrated PHY
- Enhanced secure digital host controller (SD/SDHC/SDXC/eMMC)
- Enhanced serial peripheral interface (eSPI)
- Four I2C controllers
- Four 2-pin UARTs or two 4-pin UARTs
- Integrated Flash Controller supporting NAND and NOR flash
- Three eight-channel DMA engines
- Support for hardware virtualization and partitioning enforcement
- QorIQ Platform's Trust Architecture 2.0Differences between T2080 and T2081:
Feature T2080 T20811G Ethernet numbers: 8 6 10G Ethernet numbers: 4 2 SerDes lanes: 16 8 Serial RapidIO,RMan: 2 no SATA Controller: 2 no Aurora: yes no
Quoted 7 lines
SoC Package: 896-pins 780-pins
Signed-off-by Shengzhou Liu <[email protected]>---
Against master branch ofgit://git.denx.de/u-boot.git
v2: resubmit for rebase.
Applied to u-boot-mpc85xx/master. Thanks.
York
PATCH v2 3/4 powerpc/t2080qds: add support for t2080qds board
In reply to Shengzhou LiuThe T2080QDS is a high-performance computing evaluation, development and test platform supporting the T2080 QorIQ Power Architecture processor.
T2080QDS feature overview
Processor:
- T2080 SoC integrating four 64-bit dual-threads e6500 cores up to 1.8GHz
Memory:
- Single memory controller capable of supporting DDR3 and DDR3-LV devices
- Two DDR3 DIMMs up to 4GB, Dual rank @ 2133MT/s and ECC support
Ethernet interfaces:
- Two 1Gbps RGMII on-board ports
- Four 10Gbps XFI on-board cages
- 1Gbps/2.5Gbps SGMII Riser card
- 10Gbps XAUI Riser card
Accelerator:
- DPAA components consist of FMan, BMan, QMan, PME, DCE and SEC
SerDes:
- 16 lanes up to 10.3125GHz
- Supports Aurora debug, PEX, SATA, SGMII, sRIO, HiGig, XFI and XAUI
IFC:
- 128MB NOR Flash, 512MB NAND Flash, PromJet debug port and FPGA
eSPI:
- Three SPI flash (16MB N25Q128A + 16MB EN25S64 + 512KB SST25WF040)
USB:
- Two USB2.0 ports with internal PHY (one Type-A + one micro Type-AB)
PCIE:
- Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0 with SR-IOV)
SATA:
- Two SATA 2.0 ports on-board
SRIO:
- Two Serial RapidIO 2.0 ports up to 5 GHz
eSDHC:
- Supports SD/SDHC/SDXC/eMMC Card
I2C:
- Four I2C controllers.
UART:
- Dual 4-pins UART serial ports
System Logic:
- QIXIS-II FPGA system controll
Debug Features:
- Support Legacy, COP/JTAG, Aurora, Event and EVT
---
Against master branch of git://git.denx.de/u-boot.git
v2: Rebase and fix code style.
board/freescale/t2080qds/Makefile | 13 + board/freescale/t2080qds/ddr.c | 127 +++++ board/freescale/t2080qds/ddr.h | 85 ++++ board/freescale/t2080qds/eth_t2080qds.c | 512 +++++++++++++++++++ board/freescale/t2080qds/law.c | 34 ++ board/freescale/t2080qds/pci.c | 23 + board/freescale/t2080qds/t2080qds.c | 324 ++++++++++++ board/freescale/t2080qds/t2080qds.h | 13 + board/freescale/t2080qds/t2080qds_qixis.h | 47 ++ board/freescale/t2080qds/tlb.c | 146 ++++++ boards.cfg | 1 + include/configs/T2080QDS.h | 803 ++++++++++++++++++++++++++++++ 12 files changed, 2128 insertions(+) create mode 100644 board/freescale/t2080qds/Makefile create mode 100644 board/freescale/t2080qds/ddr.c create mode 100644 board/freescale/t2080qds/ddr.h create mode 100644 board/freescale/t2080qds/eth_t2080qds.c create mode 100644 board/freescale/t2080qds/law.c create mode 100644 board/freescale/t2080qds/pci.c create mode 100644 board/freescale/t2080qds/t2080qds.c create mode 100644 board/freescale/t2080qds/t2080qds.h create mode 100644 board/freescale/t2080qds/t2080qds_qixis.h create mode 100644 board/freescale/t2080qds/tlb.c create mode 100644 include/configs/T2080QDS.h
board/freescale/t2080qds/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +# +# Copyright 2013 Freescale Semiconductor, Inc. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-$(CONFIG_T2080QDS) += t2080qds.o +obj-$(CONFIG_T2080QDS) += eth_t2080qds.o +obj-$(CONFIG_PCI) += pci.o +obj-y += ddr.o +obj-y += law.o +obj-y += tlb.o +
board/freescale/t2080qds/ddr.c new file +127 -0
127 lines not on this page · raw message
board/freescale/t2080qds/ddr.h new file +85 -0
85 lines not on this page · raw message
board/freescale/t2080qds/eth_t2080qds.c new file +512 -0
512 lines not on this page · raw message
board/freescale/t2080qds/law.c new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright 2008-2012 Freescale Semiconductor, Inc. +* +* (C) Copyright 2000 +* Wolfgang Denk, DENX Software Engineering, [email protected]. +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> +#include <asm/fsl_law.h> +#include <asm/mmu.h> + +struct law_entry law_table[] = { +SET_LAW (CONFIG_SYS_FLASH_BASE_PHYS ,LAW_SIZE_256M ,LAW_TRGT_IF_IFC ), +#ifdef CONFIG_SYS_BMAN_MEM_PHYS +SET_LAW (CONFIG_SYS_BMAN_MEM_PHYS ,LAW_SIZE_32M ,LAW_TRGT_IF_BMAN ), +#endif +#ifdef CONFIG_SYS_QMAN_MEM_PHYS +SET_LAW (CONFIG_SYS_QMAN_MEM_PHYS ,LAW_SIZE_32M ,LAW_TRGT_IF_QMAN ), +#endif +#ifdef QIXIS_BASE_PHYS +SET_LAW (QIXIS_BASE_PHYS ,LAW_SIZE_4K ,LAW_TRGT_IF_IFC ), +#endif +#ifdef CONFIG_SYS_DCSRBAR_PHYS +/* Limit DCSR to 32M to access NPC Trace Buffer */ +SET_LAW (CONFIG_SYS_DCSRBAR_PHYS ,LAW_SIZE_32M ,LAW_TRGT_IF_DCSR ), +#endif +#ifdef CONFIG_SYS_NAND_BASE_PHYS +SET_LAW (CONFIG_SYS_NAND_BASE_PHYS ,LAW_SIZE_1M ,LAW_TRGT_IF_IFC ), +#endif +}; + +int num_law_entries =ARRAY_SIZE (law_table);
board/freescale/t2080qds/pci.c new file +23 -0
@@ -0,0 +1,23 @@ +/* +* Copyright 2007-2013 Freescale Semiconductor, Inc. +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#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/t2080qds/t2080qds.c new file +324 -0
324 lines not on this page · raw message
board/freescale/t2080qds/t2080qds.h new file +13 -0
@@ -0,0 +1,13 @@ +/* +* Copyright 2011-2013 Freescale Semiconductor, Inc. +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#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/t2080qds/t2080qds_qixis.h new file +47 -0
47 lines not on this page · raw message
board/freescale/t2080qds/tlb.c new file +146 -0
146 lines not on this page · raw message
boards.cfg +1 -0
@@ -965,6 +965,7 @@ Active powerpc mpc85xx - freescale t4qds Active powerpc mpc85xx - freescale t1040qds T1040QDS T1040QDS:PPC_T1040 Naveen Burmi <[email protected]> Active powerpc mpc85xx - freescale t104xrdb T1040RDB T1040RDB:PPC_T1040 Poonam Aggrwal <[email protected]> Active powerpc mpc85xx - freescale t104xrdb T1042RDB_PI T1042RDB_PI:PPC_T1042 Poonam Aggrwal <[email protected]> +Active powerpc mpc85xx - freescale t2080qds T2080QDS T2080QDS:PPC_T2080 Active powerpc mpc85xx - gdsys p1022 controlcenterd_36BIT_SDCARD controlcenterd:36BIT,SDCARD Dirk Eibach <[email protected]> Active powerpc mpc85xx - gdsys p1022 controlcenterd_36BIT_SDCARD_DEVELOP controlcenterd:36BIT,SDCARD,DEVELOP Dirk Eibach <[email protected]> Active powerpc mpc85xx - gdsys p1022 controlcenterd_TRAILBLAZER controlcenterd:TRAILBLAZER,SPIFLASH Dirk Eibach <[email protected]>
include/configs/T2080QDS.h new file +803 -0
803 lines not on this page · raw message
Signature · 1 line
1.8.0
PATCH v2 3/4 powerpc/t2080qds: add support for t2080qds board
Quoted 42 lines · Shengzhou Liu
The T2080QDS is a high-performance computing evaluation, development and test platform supporting the T2080 QorIQ Power Architecture processor.
T2080QDS feature overview
Processor:
- T2080 SoC integrating four 64-bit dual-threads e6500 cores up to 1.8GHz
Memory:
- Single memory controller capable of supporting DDR3 and DDR3-LV devices
- Two DDR3 DIMMs up to 4GB, Dual rank @ 2133MT/s and ECC support
Ethernet interfaces:
- Two 1Gbps RGMII on-board ports
- Four 10Gbps XFI on-board cages
- 1Gbps/2.5Gbps SGMII Riser card
- 10Gbps XAUI Riser card
Accelerator:
- DPAA components consist of FMan, BMan, QMan, PME, DCE and SEC
SerDes:
- 16 lanes up to 10.3125GHz
- Supports Aurora debug, PEX, SATA, SGMII, sRIO, HiGig, XFI and XAUI
IFC:
- 128MB NOR Flash, 512MB NAND Flash, PromJet debug port and FPGA
eSPI:
- Three SPI flash (16MB N25Q128A + 16MB EN25S64 + 512KB SST25WF040)
USB:
- Two USB2.0 ports with internal PHY (one Type-A + one micro Type-AB)
PCIE:
- Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0 with SR-IOV)
SATA:
- Two SATA 2.0 ports on-board
SRIO:
- Two Serial RapidIO 2.0 ports up to 5 GHz
eSDHC:
- Supports SD/SDHC/SDXC/eMMC Card
I2C:
- Four I2C controllers.
UART:
- Dual 4-pins UART serial ports
System Logic:
- QIXIS-II FPGA system controll
Debug Features:
- Support Legacy, COP/JTAG, Aurora, Event and EVT
Quoted 4 lines
Signed-off-by Shengzhou Liu <[email protected]>---
Against master branch ofgit://git.denx.de/u-boot.git
v2: Rebase and fix code style.
Applied to u-boot-mpc85xx/master. Thanks.
York
PATCH v2 4/4 t2080qds/ramboot: enable PBL tool for t2080qds
In reply to Shengzhou LiuAdd the default RCW(SerDes 0x66_0x16) and PBI configure file for T2080QDS board, so we can use PBL tool to generate the ramboot image to support boot from NAND/SPI/SD.
---
Against master branch of git://git.denx.de/u-boot.git
v2: resubmit for rebase.
board/freescale/t2080qds/t2080_pbi.cfg | 41 ++++++++++++++++++++++++++++++++++ board/freescale/t2080qds/t2080_rcw.cfg | 8 +++++++ boards.cfg | 4 ++++ include/configs/T2080QDS.h | 2 ++ 4 files changed, 55 insertions(+) create mode 100644 board/freescale/t2080qds/t2080_pbi.cfg create mode 100644 board/freescale/t2080qds/t2080_rcw.cfg
board/freescale/t2080qds/t2080_pbi.cfg new file +41 -0
@@ -0,0 +1,41 @@ +# +# Copyright 2013 Freescale Semiconductor, Inc. +# +# SPDX-License-Identifier: GPL-2.0+ +# +# Refer doc/README.pblimage for more details about how-to configure +# and create PBL boot image +# + +#PBI commands +#Initialize CPC1 +09010000 00200400 +09138000 00000000 +091380c0 00000100 +#512KB SRAM +09010100 00000000 +09010104 fff80009 +09010f00 08000000 +#enable CPC1 +09010000 80000000 +#Configure LAW for CPC1 +09000d00 00000000 +09000d04 fff80000 +09000d08 81000012 +#Initialize eSPI controller, default configuration is slow for eSPI to +#load data, this configuration comes from u-boot eSPI driver. +09110000 80000403 +09110020 2d170008 +09110024 00100008 +09110028 00100008 +0911002c 00100008 +#Errata for slowing down the MDC clock to make it <= 2.5 MHZ +094fc030 00008148 +094fd030 00008148 +#Configure alternate space +09000010 00000000 +09000014 ff000000 +09000018 81000000 +#Flush PBL data +09138000 00000000 +091380c0 00000000
board/freescale/t2080qds/t2080_rcw.cfg new file +8 -0
@@ -0,0 +1,8 @@ +#PBL preamble and RCW header +aa55aa55 010e0100 +#SerDes Protocol: 0x66_0x16 +#Core/DDR: 1533Mhz/2133MT/s +12100017 15000000 00000000 00000000 +66160002 00008400 e8104000 c1000000 +00000000 00000000 00000000 000307fc +00000000 00000000 00000000 00000004
boards.cfg +4 -0
@@ -966,6 +966,10 @@ Active powerpc mpc85xx - freescale t1040qds Active powerpc mpc85xx - freescale t104xrdb T1040RDB T1040RDB:PPC_T1040 Poonam Aggrwal <[email protected]> Active powerpc mpc85xx - freescale t104xrdb T1042RDB_PI T1042RDB_PI:PPC_T1042 Poonam Aggrwal <[email protected]> Active powerpc mpc85xx - freescale t2080qds T2080QDS T2080QDS:PPC_T2080 +Active powerpc mpc85xx - freescale t2080qds T2080QDS_SDCARD T2080QDS:PPC_T2080,RAMBOOT_PBL,SDCARD,SYS_TEXT_BASE=0xFFF80000 +Active powerpc mpc85xx - freescale t2080qds T2080QDS_SPIFLASH T2080QDS:PPC_T2080,RAMBOOT_PBL,SPIFLASH,SYS_TEXT_BASE=0xFFF80000 +Active powerpc mpc85xx - freescale t2080qds T2080QDS_NAND T2080QDS:PPC_T2080,RAMBOOT_PBL,NAND,SYS_TEXT_BASE=0xFFF80000 +Active powerpc mpc85xx - freescale t2080qds T2080QDS_SRIO_PCIE_BOOT T2080QDS:PPC_T2080,SRIO_PCIE_BOOT_SLAVE,SYS_TEXT_BASE=0xFFF80000 Active powerpc mpc85xx - gdsys p1022 controlcenterd_36BIT_SDCARD controlcenterd:36BIT,SDCARD Dirk Eibach <[email protected]> Active powerpc mpc85xx - gdsys p1022 controlcenterd_36BIT_SDCARD_DEVELOP controlcenterd:36BIT,SDCARD,DEVELOP Dirk Eibach <[email protected]> Active powerpc mpc85xx - gdsys p1022 controlcenterd_TRAILBLAZER controlcenterd:TRAILBLAZER,SPIFLASH Dirk Eibach <[email protected]>
include/configs/T2080QDS.h +2 -0
@@ -45,6 +45,8 @@#ifdef CONFIG_RAMBOOT_PBL #define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE#define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc +#define CONFIG_PBLPBI_CONFIG $(SRCTREE)/board/freescale/t2080qds/t2080_pbi.cfg +#define CONFIG_PBLRCW_CONFIG $(SRCTREE)/board/freescale/t2080qds/t2080_rcw.cfg#endif #define CONFIG_SRIO_PCIE_BOOT_MASTER
Signature · 1 line
1.8.0
PATCH v2 4/4 t2080qds/ramboot: enable PBL tool for t2080qds
Quoted 8 lines · Shengzhou Liu
Add the default
RCW(SerDes 0x66_0x16)and PBI configure file for T2080QDS board, so we can use PBL tool to generate the ramboot image to support boot from NAND/SPI/SD.Signed-off-by Shengzhou Liu <[email protected]>---
Against master branch ofgit://git.denx.de/u-boot.git
v2: resubmit for rebase.
Applied to u-boot-mpc85xx/master. Thanks.
York
PATCH v2 1/4 net/fman: Add support for 10GEC3 and 10GEC4
In reply to Shengzhou LiuQuoted 7 lines · Shengzhou Liu
There are more than two 10GEC in single FMAN in some SoCs(e.g. T2080). This patch adds support for 10GEC3 and 10GEC4.
Signed-off-by Shengzhou Liu <[email protected]>---
Against master branch ofgit://git.denx.de/u-boot.git
v2: Rebase and add more comments description.
Applied to u-boot-mpc85xx/master. Thanks.
York