Add Media5200 platform support
PATCH 1/1 Add Media5200 platform support
From: John Rigby <[email protected]>
Adds Freescale MPC5200 based Media platform support.
Signed-off-by John Rigby <[email protected]>
--- Makefile | 16 ++ board/media5200/Makefile | 49 +++++ board/media5200/config.mk | 50 +++++ board/media5200/media5200.c | 140 +++++++++++++++ board/media5200/mt46v32m16tg-75.h | 37 ++++ board/media5200/sdram.c | 144 +++++++++++++++ board/media5200/sdram.h | 34 ++++ board/media5200/u-boot.lds | 121 +++++++++++++ cpu/mpc5xxx/fec.c | 3 +- include/configs/Media5200.h | 354 +++++++++++++++++++++++++++++++++++++ 10 files changed, 947 insertions(+), 1 deletions(-) create mode 100644 board/media5200/Makefile create mode 100644 board/media5200/config.mk create mode 100644 board/media5200/media5200.c create mode 100644 board/media5200/mt46v32m16tg-75.h create mode 100644 board/media5200/sdram.c create mode 100644 board/media5200/sdram.h create mode 100644 board/media5200/u-boot.lds create mode 100644 include/configs/Media5200.h
Makefile +16 -0
@@ -611,6 +611,22 @@ motionpro_config: unconfig @$(MKCONFIG) motionpro ppc mpc5xxx motionpro +Media5200_config \ +Media5200_lowboot_config \ +Media5200_highboot_config: unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/media5200 + @ >$(obj)include/config.h + @[ -z "$(findstring lowboot_,$@)" ] || \ + { echo "TEXT_BASE = 0xFE000000" >$(obj)board/media5200/config.tmp ; \ + echo "... with lowboot configuration" ; \ + } + @[ -z "$(findstring highboot_,$@)" ] || \ + { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/media5200/config.tmp ; \ + echo "... with highboot configuration" ; \ + } + @$(MKCONFIG) -a Media5200 ppc mpc5xxx media5200 + ######################################################################### ## MPC8xx Systems #########################################################################
board/media5200/Makefile new file +49 -0
49 lines not on this page · raw message
board/media5200/config.mk new file +50 -0
50 lines not on this page · raw message
board/media5200/media5200.c new file +140 -0
140 lines not on this page · raw message
board/media5200/mt46v32m16tg-75.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* (C) Copyright 2004 +* Mark Jonas, Freescale Semiconductor, mark.jonas at motorola.com. +* +* 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 +*/ + +#define SDRAM_DDR 1/* is DDR */ + +#if defined(CONFIG_MPC5200 ) +/* Settings for XLB = 132 MHz */ +#define SDRAM_MODE 0x018D0000 +#define SDRAM_EMODE 0x40090000 +#define SDRAM_CONTROL 0x714f0f00 +#define SDRAM_CONFIG1 0x73722930 +#define SDRAM_CONFIG2 0x57770000 +#define SDRAM_TAPDELAY 0x0F000000 + +#else +#error CONFIG_MPC5200 not defined +#endif
board/media5200/sdram.c new file +144 -0
144 lines not on this page · raw message
board/media5200/sdram.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* (C) Copyright 2004 +* Mark Jonas, Freescale Semiconductor, mark.jonas at freescale.com. +* +* 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 +*/ + +typedef struct { +ulong ddr; +ulong mode; +ulong emode; +ulong control; +ulong config1; +ulong config2; +ulong tapdelay; +}sdram_conf_t ; + +long int mpc5xxx_sdram_init (sdram_conf_t * sdram_conf);
board/media5200/u-boot.lds new file +121 -0
121 lines not on this page · raw message
cpu/mpc5xxx/fec.c +2 -1
@@ -883,7 +883,8 @@ int mpc5xxx_fec_initialize(bd_t * bis)defined (CONFIG_MCC200 ) ||defined (CONFIG_MOTIONPRO ) || \defined (CONFIG_O2DNT ) ||defined (CONFIG_PM520 ) || \defined (CONFIG_TOP5200 ) ||defined (CONFIG_TQM5200 ) || \ - defined(CONFIG_UC101) || defined(CONFIG_V38B) +defined (CONFIG_UC101 ) ||defined (CONFIG_V38B ) || \ + defined(CONFIG_MEDIA5200)# ifndef CONFIG_FEC_10MBIT fec->xcv_type =MII100 ;# else
include/configs/Media5200.h new file +354 -0
354 lines not on this page · raw message
Signature · 1 line
1.5.0