From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 20 Jun 2009 14:53:52 +0200 Subject: [U-Boot] [PATCH v4 5/6] MX31: Add basic support for Freescale i.MX31 PDK board. In-Reply-To: References: Message-ID: <20090620125352.GE3849@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20:50 Sat 13 Jun , Magnus Lilja wrote: > Add support for Freescale's i.MX31 PDK board (a.k.a. 3 stack board). > > This patch assumes that some other program performs the actual > NAND boot. > > Signed-off-by: Magnus Lilja > --- > MAINTAINERS | 4 + > MAKEALL | 1 + > Makefile | 3 + > board/freescale/mx31pdk/Makefile | 52 +++++++++++ > board/freescale/mx31pdk/config.mk | 1 + > board/freescale/mx31pdk/mx31pdk.c | 63 +++++++++++++ > include/asm-arm/arch-mx31/mx31-regs.h | 2 + > include/configs/mx31pdk.h | 162 +++++++++++++++++++++++++++++++++ > 8 files changed, 288 insertions(+), 0 deletions(-) > create mode 100644 board/freescale/mx31pdk/Makefile > create mode 100644 board/freescale/mx31pdk/config.mk > create mode 100644 board/freescale/mx31pdk/mx31pdk.c > create mode 100644 include/configs/mx31pdk.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index 1f6008f..8eb54e1 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -528,6 +528,10 @@ Thomas Elste > > modnet50 ARM720T (NET+50) > > +Fabio Estevam > + > + mx31pdk i.MX31 > + Fabio could you ack it please > Peter Figuli > > wepep250 xscale > diff --git a/MAKEALL b/MAKEALL > index f48a08e..0757064 100755 > --- a/MAKEALL > +++ b/MAKEALL > @@ -552,6 +552,7 @@ LIST_ARM11=" \ > imx31_phycore \ > imx31_phycore_eet \ > mx31ads \ > + mx31pdk \ > qong \ > smdk6400 \ > " > diff --git a/Makefile b/Makefile > index aa4646f..e445e51 100644 > --- a/Makefile > +++ b/Makefile > @@ -3115,6 +3115,9 @@ imx31_phycore_config : unconfig > mx31ads_config : unconfig > @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31 > > +mx31pdk_config : unconfig > + @$(MKCONFIG) $(@:_config=) arm arm1136 mx31pdk freescale mx31 > + > omap2420h4_config : unconfig > @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx > > --- /dev/null > +++ b/board/freescale/mx31pdk/mx31pdk.c > @@ -0,0 +1,63 @@ > +/* > + * > + * (C) Copyright 2009 Magnus Lilja > + * > + * (c) 2007 Pengutronix, Sascha Hauer > + * > + * 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 > +#include > +#include > + > +DECLARE_GLOBAL_DATA_PTR; > + > +int dram_init(void) > +{ > + gd->bd->bi_dram[0].start = PHYS_SDRAM_1; > + gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; > + > + return 0; > +} > + > +int board_init(void) > +{ > + /* CS5: CPLD incl. network controller */ > + __REG(CSCR_U(5)) = 0x0000d843; we need to remove this __REG ok for this time but a clean up is really needed Best Regards, J.