powerpc/T4240EMU: Add T4240EMU target
PATCH v3 6/11 powerpc/T4240EMU: Add T4240EMU target
Add emulator support for T4240. Emulator has limited peripherals and interfaces. Difference between emulator and T4240QDS includes:
ECC for DDR is disabled due the procedure to load images No board FPGA (QIXIS)
NOR flash has 32-bit port for higher loading speed IFC and I2C timing don't really matter, so set them fast No ethernet
---
Change since v2:
Fixt entry in MAINTAINERS, _sorted_
Change since v1:
Added entry to MAINTAINERS
Fixed checkpatch warning
MAINTAINERS | 4 + board/freescale/t4qds/Makefile | 3 +- board/freescale/t4qds/ddr.c | 73 +--- board/freescale/t4qds/ddr.h | 122 ++++++ board/freescale/t4qds/law.c | 2 + board/freescale/t4qds/t4240emu.c | 96 +++++ board/freescale/t4qds/t4240qds.c | 854 ++++++++++++++++++++++++++++++++++++++ board/freescale/t4qds/t4qds.c | 853 ------------------------------------- board/freescale/t4qds/tlb.c | 3 +- boards.cfg | 1 + include/configs/T4240EMU.h | 185 +++++++++ include/configs/T4240QDS.h | 539 ++++++++++++++++++++++++ include/configs/t4qds.h | 482 +-------------------- 13 files changed, 1810 insertions(+), 1407 deletions(-) create mode 100644 board/freescale/t4qds/ddr.h create mode 100644 board/freescale/t4qds/t4240emu.c create mode 100644 board/freescale/t4qds/t4240qds.c delete mode 100644 board/freescale/t4qds/t4qds.c create mode 100644 include/configs/T4240EMU.h
MAINTAINERS +4 -0
@@ -471,6 +471,10 @@ Ira W. Snyder <[email protected]> P2020COME P2020 +York Sun <[email protected]> + + T4240EMU T4240 + Timur Tabi <[email protected]> MPC8349E-mITX MPC8349
board/freescale/t4qds/Makefile +2 -1
@@ -24,7 +24,8 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).o -COBJS-y += $(BOARD).o +COBJS-$(CONFIG_T4240QDS) += t4240qds.o +COBJS-$(CONFIG_T4240EMU) += t4240emu.o COBJS-y += ddr.o COBJS-$(CONFIG_T4240QDS)+= eth.o COBJS-$(CONFIG_PCI) += pci.o
board/freescale/t4qds/ddr.c +1 -72
82 lines not on this page · raw message
board/freescale/t4qds/ddr.h new file +122 -0
122 lines not on this page · raw message
board/freescale/t4qds/law.c +2 -0
@@ -35,7 +35,9 @@ struct law_entry law_table[] = {#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),
board/freescale/t4qds/t4240emu.c new file +96 -0
96 lines not on this page · raw message
board/freescale/t4qds/t4240qds.c new file +854 -0
854 lines not on this page · raw message
board/freescale/t4qds/t4qds.c deleted +0 -853
853 lines not on this page · raw message
board/freescale/t4qds/tlb.c +2 -1
@@ -127,10 +127,11 @@ struct fsl_e_tlb_entry tlb_table[] = { MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, 0, 16, BOOKE_PAGESZ_64K, 1),#endif +#ifdef QIXIS_BASE_PHYS SET_TLB_ENTRY(1, QIXIS_BASE, QIXIS_BASE_PHYS, MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, 0, 17, BOOKE_PAGESZ_4K, 1), - +#endif };int num_tlb_entries =ARRAY_SIZE (tlb_table);
boards.cfg +1 -0
@@ -910,6 +910,7 @@ 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:PPC_T4240 +T4240EMU powerpc mpc85xx t4qds freescale - T4240EMU:PPC_T4240 T4240QDS_SDCARD powerpc mpc85xx t4qds freescale - T4240QDS:PPC_T4240,RAMBOOT_PBL,SDCARD,SYS_TEXT_BASE=0xFFF80000 T4240QDS_SPIFLASH powerpc mpc85xx t4qds freescale - T4240QDS:PPC_T4240,RAMBOOT_PBL,SPIFLASH,SYS_TEXT_BASE=0xFFF80000 T4160QDS powerpc mpc85xx t4qds freescale - T4240QDS:PPC_T4160
include/configs/T4240EMU.h new file +185 -0
185 lines not on this page · raw message
include/configs/T4240QDS.h +539 -0
549 lines not on this page · raw message
include/configs/t4qds.h +2 -480
212 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.