MPC85xx: Add MPC8569 CPU support
Subsystems (2)
PATCH v2 1/3 MPC85xx: Add MPC8569 CPU support
There is a workaround for MPC8569 CPU Errata, which needs to set Bit 13 of LBCR in 4K bootpage. We setup a temp TLB for eLBC controller in bootpage, then invalidate it after LBCR bit 13 is set.
--- cpu/mpc85xx/Makefile | 1 + cpu/mpc85xx/cpu.c | 2 + cpu/mpc85xx/start.S | 49 ++++++++++++++++++++++++++++++++++++++++++ drivers/misc/fsl_law.c | 2 +- include/asm-ppc/immap_85xx.h | 13 ++++++++++- include/asm-ppc/immap_qe.h | 8 ++++-- include/asm-ppc/processor.h | 2 + 7 files changed, 72 insertions(+), 5 deletions(-)
cpu/mpc85xx/Makefile +1 -0
@@ -49,6 +49,7 @@ COBJS-$(CONFIG_MPC8544) += ddr-gen2.o COBJS-$(CONFIG_MPC8572) += ddr-gen3.o COBJS-$(CONFIG_MPC8536) += ddr-gen3.o COBJS-$(CONFIG_P2020) += ddr-gen3.o +COBJS-$(CONFIG_MPC8569) += ddr-gen3.o COBJS-$(CONFIG_MPC8536) += mpc8536_serdes.o COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o tlb.o \
cpu/mpc85xx/cpu.c +2 -0
@@ -61,6 +61,8 @@ struct cpu_type cpu_type_list [] = { CPU_TYPE_ENTRY(8567, 8567_E),CPU_TYPE_ENTRY (8568 ,8568 ), CPU_TYPE_ENTRY(8568, 8568_E), +CPU_TYPE_ENTRY (8569 ,8569 ), + CPU_TYPE_ENTRY(8569, 8569_E),CPU_TYPE_ENTRY (8572 ,8572 ), CPU_TYPE_ENTRY(8572, 8572_E), CPU_TYPE_ENTRY(P2020, P2020),
cpu/mpc85xx/start.S +49 -0
55 lines not on this page · raw message
drivers/misc/fsl_law.c +1 -1
@@ -35,7 +35,7 @@ DECLARE_GLOBAL_DATA_PTR; defined(CONFIG_MPC8560) || defined(CONFIG_MPC8555)#define FSL_HW_NUM_LAWS 8#elif defined(CONFIG_MPC8548 ) || defined(CONFIG_MPC8544 ) || \ - defined(CONFIG_MPC8568 ) || \ + defined(CONFIG_MPC8568 ) || defined(CONFIG_MPC8569 ) || \ defined(CONFIG_MPC8641 ) || defined(CONFIG_MPC8610 )#define FSL_HW_NUM_LAWS 10 #elif defined(CONFIG_MPC8536) || defined(CONFIG_MPC8572) || \
include/asm-ppc/immap_85xx.h +12 -1
@@ -1609,8 +1609,19 @@ typedef struct ccsr_gur {char res2[12 ];uint gpiocr;/* 0xe0030 - GPIO control register */ char res3[12 ]; +#if defined(CONFIG_MPC8569 ) +uint plppar1; +/* 0xe0040 - Platform port pin assignment register 1 */ +uint plppar2; +/* 0xe0044 - Platform port pin assignment register 2 */ +uint plpdir1; +/* 0xe0048 - Platform port pin direction register 1 */ +uint plpdir2; +/* 0xe004c - Platform port pin direction register 2 */ +#else uint gpoutdr;/* 0xe0040 - General-purpose output data register */ char res4[12 ]; +#endif uint gpindr;/* 0xe0050 - General-purpose input data register */ char res5[12 ];uint pmuxcr;/* 0xe0060 - Alternate function signal multiplex control */
@@ -1651,7 +1662,7 @@ typedef struct ccsr_gur {uint svr;/* 0xe00a4 - System version register */ char res10a[8 ];uint rstcr;/* 0xe00b0 - Reset control register */ -#ifdef CONFIG_MPC8568 +#if defined(CONFIG_MPC8568 )||defined(CONFIG_MPC8569 )char res10b[76 ];par_io_t qe_par_io[7 ];/* 0xe0100 - 0xe01bf */ char res10c[3136 ];
include/asm-ppc/immap_qe.h +5 -3
@@ -20,7 +20,9 @@typedef struct qe_iram {u32 iadd;/* I-RAM Address Register */ u32 idata;/* I-RAM Data Register */ -u8 res0[0x78 ]; +u8 res0[0x4 ]; +u32 iready; +u8 res1[0x70 ]; } __attribute__ ((packed))qe_iram_t ;/* QE Interrupt Controller
@@ -580,7 +582,7 @@ typedef struct qe_immap {u8 res14[0x300 ];u8 res15[0x3A00 ];u8 res16[0x8000 ];/* 0x108000 - 0x110000 */ -#if defined(CONFIG_MPC8568 ) +#if defined(CONFIG_MPC8568 )||defined(CONFIG_MPC8569 )u8 muram[0x10000 ];/* 0x1_0000 - 0x2_0000 Multi-user RAM */ u8 res17[0x20000 ];/* 0x2_0000 - 0x4_0000 */ #else
@@ -592,7 +594,7 @@ typedef struct qe_immap {extern qe_map_t *qe_immr; -#if defined(CONFIG_MPC8568 ) +#if defined(CONFIG_MPC8568 ) || defined(CONFIG_MPC8569 )#define QE_MURAM_SIZE 0x10000UL#elif defined(CONFIG_MPC8360 )#define QE_MURAM_SIZE 0xc000UL
include/asm-ppc/processor.h +2 -0
@@ -955,6 +955,8 @@#define SVR_8567_E 0x807E00#define SVR_8568 0x807500#define SVR_8568_E 0x807D00 +#define SVR_8569 0x808000 +#define SVR_8569_E 0x808800#define SVR_8572 0x80E000#define SVR_8572_E 0x80E800#define SVR_P2020 0x80E200
Signature · 1 line
1.6.0.2
PATCH v2 3/3 MPC85xx: Add MPC8569MDS board support
This patch adds MPC8569MDS board support. The UART, QE UEC1 and UEC2, BRD EEPROM on I2C2 bus, PCI express and DDR3 SPD are supported in this patch.
--- MAKEALL | 1 + Makefile | 3 + board/freescale/mpc8569mds/Makefile | 55 ++++ board/freescale/mpc8569mds/bcsr.c | 49 ++++ board/freescale/mpc8569mds/bcsr.h | 82 ++++++ board/freescale/mpc8569mds/config.mk | 30 ++ board/freescale/mpc8569mds/ddr.c | 84 ++++++ board/freescale/mpc8569mds/law.c | 59 ++++ board/freescale/mpc8569mds/mpc8569mds.c | 329 ++++++++++++++++++++++ board/freescale/mpc8569mds/tlb.c | 103 +++++++ board/freescale/mpc8569mds/u-boot.lds | 143 ++++++++++ include/configs/MPC8569MDS.h | 454 +++++++++++++++++++++++++++++++ 12 files changed, 1392 insertions(+), 0 deletions(-) create mode 100644 board/freescale/mpc8569mds/Makefile create mode 100644 board/freescale/mpc8569mds/bcsr.c create mode 100644 board/freescale/mpc8569mds/bcsr.h create mode 100644 board/freescale/mpc8569mds/config.mk create mode 100644 board/freescale/mpc8569mds/ddr.c create mode 100644 board/freescale/mpc8569mds/law.c create mode 100644 board/freescale/mpc8569mds/mpc8569mds.c create mode 100644 board/freescale/mpc8569mds/tlb.c create mode 100644 board/freescale/mpc8569mds/u-boot.lds create mode 100644 include/configs/MPC8569MDS.h
MAKEALL +1 -0
@@ -375,6 +375,7 @@ LIST_85xx=" \ MPC8555CDS \ MPC8560ADS \ MPC8568MDS \ + MPC8569MDS \ MPC8572DS \ MPC8572DS_36BIT \ PM854 \
Makefile +3 -0
@@ -2422,6 +2422,9 @@ MPC8555CDS_config: unconfig MPC8568MDS_config: unconfig @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale +MPC8569MDS_config: unconfig + @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale + MPC8572DS_36BIT_config \ MPC8572DS_config: unconfig @mkdir -p $(obj)include
board/freescale/mpc8569mds/Makefile new file +55 -0
55 lines not on this page · raw message
board/freescale/mpc8569mds/bcsr.c new file +49 -0
49 lines not on this page · raw message
board/freescale/mpc8569mds/bcsr.h new file +82 -0
82 lines not on this page · raw message
board/freescale/mpc8569mds/config.mk new file +30 -0
@@ -0,0 +1,30 @@ +# +# Copyright (C) 2009 Freescale Semiconductor, Inc. All rights reserved. +# +# 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 +# + +# +# mpc8569mds board +# +TEXT_BASE = 0xfff80000 + +PLATFORM_CPPFLAGS += -DCONFIG_E500=1 +PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1 +PLATFORM_CPPFLAGS += -DCONFIG_MPC8569=1
board/freescale/mpc8569mds/ddr.c new file +84 -0
84 lines not on this page · raw message
board/freescale/mpc8569mds/law.c new file +59 -0
59 lines not on this page · raw message
board/freescale/mpc8569mds/mpc8569mds.c new file +329 -0
329 lines not on this page · raw message
board/freescale/mpc8569mds/tlb.c new file +103 -0
103 lines not on this page · raw message
board/freescale/mpc8569mds/u-boot.lds new file +143 -0
143 lines not on this page · raw message
include/configs/MPC8569MDS.h new file +454 -0
454 lines not on this page · raw message
Signature · 1 line
1.6.0.2