public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 5/6] MX31: Add basic support for Freescale	i.MX31 PDK board.
Date: Sat, 20 Jun 2009 14:53:52 +0200	[thread overview]
Message-ID: <20090620125352.GE3849@game.jcrosoft.org> (raw)
In-Reply-To: <e3fe3ff8b26871a6e3accde8e3620a8530018120.1244918138.git.lilja.magnus@gmail.com>

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 <lilja.magnus@gmail.com>
> ---
>  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 <info@elste.org>
>  
>  	modnet50	ARM720T (NET+50)
>  
> +Fabio Estevam <Fabio.Estevam@freescale.com>
> +
> +	mx31pdk		i.MX31
> +
Fabio could you ack it please
>  Peter Figuli <peposh@etc.sk>
>  
>  	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 <lilja.magnus@gmail.com>
> + *
> + * (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
> + *
> + * 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 <common.h>
> +#include <asm/arch/mx31.h>
> +#include <asm/arch/mx31-regs.h>
> +
> +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.

  parent reply	other threads:[~2009-06-20 12:53 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-13 18:49 [U-Boot] [PATCH v4 0/6] MX31: NAND boot for PDK boards Magnus Lilja
2009-06-13 18:50 ` [U-Boot] [PATCH v4 1/6] ARM1136: Introduce CONFIG_PRELOADER macro Magnus Lilja
2009-06-13 18:50   ` [U-Boot] [PATCH v4 2/6] MX31: Add NAND SPL for i.MX31 Magnus Lilja
2009-06-13 18:50     ` [U-Boot] [PATCH v4 3/6] ARM: Add macros.h to be used in assembler file Magnus Lilja
2009-06-13 18:50       ` [U-Boot] [PATCH v4 4/6] i.MX31: Create a common device file Magnus Lilja
2009-06-13 18:50         ` [U-Boot] [PATCH v4 5/6] MX31: Add basic support for Freescale i.MX31 PDK board Magnus Lilja
2009-06-13 18:50           ` [U-Boot] [PATCH v4 6/6] MX31: Add NAND SPL boot support to " Magnus Lilja
2009-06-29 19:11             ` Magnus Lilja
2009-06-29 20:16               ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-29 20:39                 ` Magnus Lilja
2009-06-29 21:03             ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30  6:00               ` Magnus Lilja
2009-06-30 19:09                 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 19:29                   ` Magnus Lilja
2009-06-30 20:23                     ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 21:22                   ` Scott Wood
2009-07-01  5:48                     ` Magnus Lilja
2009-07-02 20:45                       ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-02 20:58                         ` Scott Wood
2009-06-20 12:53           ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-06-28  9:56             ` [U-Boot] [PATCH v4 5/6] MX31: Add basic support for Freescale " Jean-Christophe PLAGNIOL-VILLARD
2009-06-29 21:07           ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-20 12:50         ` [U-Boot] [PATCH v4 4/6] i.MX31: Create a common device file Jean-Christophe PLAGNIOL-VILLARD
2009-07-07 19:45           ` Wolfgang Denk
2009-06-20 12:49       ` [U-Boot] [PATCH v4 3/6] ARM: Add macros.h to be used in assembler file Jean-Christophe PLAGNIOL-VILLARD
2009-07-07 19:33       ` Wolfgang Denk
2009-07-07 20:24         ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-07 21:28           ` Wolfgang Denk
2009-07-07 22:07             ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-20 12:47     ` [U-Boot] [PATCH v4 2/6] MX31: Add NAND SPL for i.MX31 Jean-Christophe PLAGNIOL-VILLARD
2009-06-20 12:46   ` [U-Boot] [PATCH v4 1/6] ARM1136: Introduce CONFIG_PRELOADER macro Jean-Christophe PLAGNIOL-VILLARD
2009-06-18 20:09 ` [U-Boot] [PATCH v4 0/6] MX31: NAND boot for PDK boards Magnus Lilja
2009-06-18 20:41   ` Jean-Christophe PLAGNIOL-VILLARD
  -- strict thread matches above, loose matches on Subject: below --
2009-06-28 23:46 [U-Boot] [PATCH v4 5/6] MX31: Add basic support for Freescale i.MX31 PDK board Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090620125352.GE3849@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox