All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <fabioestevam@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx51:Add support basic boot code of freescale imx51 bbg board
Date: Mon, 21 Sep 2009 13:58:29 -0700 (PDT)	[thread overview]
Message-ID: <458722.17344.qm@web51007.mail.re2.yahoo.com> (raw)
In-Reply-To: <4AB7BE0F.4020602@gmail.com>

Hi Fred,

--- On Mon, 9/21/09, Magnus Lilja <lilja.magnus@gmail.com> wrote:

> From: Magnus Lilja <lilja.magnus@gmail.com>
> Subject: Re: [U-Boot] [PATCH] imx51:Add support basic boot code of freescale imx51 bbg board
> To: gareatech at gmail.com
> Cc: u-boot at lists.denx.de
> Date: Monday, September 21, 2009, 2:55 PM
> Hi
> 
> 
> I've scanned the patch briefly and have some comments
> below.
> 
> gareatech at gmail.com
> wrote:
> > From: Fred Fan <fanyefeng@gmail.com>
> > 
> > This patch just supports boot into u-boot from mmc or
> spi-nor flash.
> > It just implements console, iomux and clock. There are
> no ethernet,
> > nor-flash, mmc or other peripheral drivers.
> > 
> > Sign-of-by: Fred.Fan <fanyefeng@gmail.com>
> > Sign-of-by: Fred.Fan <r01011@freescale.com>
> 
> Should be 'Signed-off-by: FredFan <fanyefeng@gmail.com>'.
> 
> > 
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index 620604c..5fb1221 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -549,6 +549,10 @@ Fabio Estevam <Fabio.Estevam@freescale.com>
> >? 
> >? ??? mx31pdk???
> ??? i.MX31
> >? 
> > +Fred Fan <fanyefeng@gmail.com>
> > +
> > +??? imx51???
> ??? i.MX51
> > +
> 
> Is imx51 really the name of this board? Later on it looks
> like the name is MX51_BABBAGE.

I agree with Magnus. You should use the board name here, not the processor name.

> 
> >? Peter Figuli <peposh@etc.sk>
> >? 
> >? ??? wepep250???
> xscale
> > diff --git a/MAKEALL b/MAKEALL
> > index edebaea..ed8c437 100755
> > --- a/MAKEALL
> > +++ b/MAKEALL
> <snip>
> 
> > diff --git a/board/freescale/imx51/Makefile
> b/board/freescale/imx51/Makefile
> > new file mode 100644
> > index 0000000..fbd40f2
> > --- /dev/null
> > +++ b/board/freescale/imx51/Makefile

As Magnus pointed out you should use /board/freescale/mx51babbage/...


> 
> > diff --git a/board/freescale/imx51/board-imx51.h

Ditto

> b/board/freescale/imx51/board-imx51.h
> > new file mode 100644
> > index 0000000..7a2cae0
> > --- /dev/null
> > +++ b/board/freescale/imx51/board-imx51.h
> > @@ -0,0 +1,64 @@
> > +/*
> > + * Copyright 2009 Freescale Semiconductor, Inc. All
> Rights Reserved.
> > + */
> > +
> > +/*
> > + * The code contained herein is licensed under the
> GNU General Public
> > + * License. You may obtain a copy of the GNU General
> Public License
> > + * Version 2 or later at the following locations:
> > + *
> > + * http://www.opensource.org/licenses/gpl-license.html
> > + * http://www.gnu.org/copyleft/gpl.html
> > + */
> > +
> > +#ifndef __BOARD_FREESCALE_BOARD_IMX51_H__
> > +#define __BOARD_FREESCALE_BOARD_IMX51_H__
> > +
> > +/*!
> > + * @defgroup BRDCFG_MX51 Board Configuration Options
> > + * @ingroup MSL_MX51
> > + */
> > +
> > +/*!
> > + * @file mx51_3stack/board-imx51.h
> > + *
> > + * @brief This file contains all the board level
> configuration options.
> > + *
> > + * It currently hold the options defined for MX51
> 3Stack Platform.

I think you should remove MX51 3stack references as it can cause confusion.

> > + *
> > + * @ingroup BRDCFG_IMX51
> > + */
> > +
> > +/* CPLD offsets */
> > +#define PBC_LED_CTRL???
> ??? (0x20000)
> > +#define PBC_SB_STAT???
> ??? (0x20008)
> > +#define PBC_ID_AAAA???
> ??? (0x20040)
> > +#define PBC_ID_5555???
> ??? (0x20048)
> > +#define PBC_VERSION???
> ??? (0x20050)
> > +#define PBC_ID_CAFE???
> ??? (0x20058)
> > +#define PBC_INT_STAT???
> ??? (0x20010)
> > +#define PBC_INT_MASK???
> ??? (0x20038)
> > +#define PBC_INT_REST???
> ??? (0x20020)
> > +#define PBC_SW_RESET???
> ??? (0x20060)
> > +
> > +/* LED switchs */
> > +#define LED_SWITCH_REG???
> ??? 0x00
> > +/* buttons */
> > +#define SWITCH_BUTTONS_REG??? 0x08
> > +/* status, interrupt */
> > +#define INTR_STATUS_REG??? 0x10
> > +#define INTR_MASK_REG???
> ??? 0x38
> > +#define INTR_RESET_REG???
> ??? 0x20
> > +/* magic word for debug CPLD */
> > +#define MAGIC_NUMBER1_REG??? 0x40
> > +#define MAGIC_NUMBER2_REG??? 0x48
> > +/* CPLD code version */
> > +#define CPLD_CODE_VER_REG??? 0x50
> > +/* magic word for debug CPLD */
> > +#define MAGIC_NUMBER3_REG??? 0x58
> > +/* module reset register*/
> > +#define MODULE_RESET_REG??? 0x60
> > +/* CPU ID and Personality ID */
> > +#define MCU_BOARD_ID_REG??? 0x68
> > +
> > +#endif??? ???
> ??? ??? /*
> __BOARD_FREESCALE_BOARD_IMX51_H__ */
> > diff --git a/board/freescale/imx51/config.mk
> b/board/freescale/imx51/config.mk
> > new file mode 100644
> > index 0000000..d8b0f10
> > --- /dev/null
> > +++ b/board/freescale/imx51/config.mk
> > @@ -0,0 +1,2 @@
> > +LDSCRIPT = board/$(VENDOR)/$(BOARD)/u-boot.lds
> > +TEXT_BASE = 0x97800000
> > diff --git a/board/freescale/imx51/flash_header.S
> b/board/freescale/imx51/flash_header.S
> > new file mode 100644
> > index 0000000..6790679
> > --- /dev/null
> > +++ b/board/freescale/imx51/flash_header.S
> > @@ -0,0 +1,113 @@
> > +/*
> > + * Copyright 2009 Freescale Semiconductor, Inc.
> > + *
> > + * 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
> > + */
> > +
> 
> I wouldn't mind a short description of what this file does
> and why it's needed.

Yes, please mention that this is needed for the internal boot mode. 

Regards,

Fabio Estevam 


      

  reply	other threads:[~2009-09-21 20:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-20 17:28 [U-Boot] [PATCH] imx51:Add support basic boot code of freescale imx51 bbg board gareatech at gmail.com
2009-09-21 17:55 ` Magnus Lilja
2009-09-21 20:58   ` Fabio Estevam [this message]
     [not found]   ` <2f495dc80909221219n2f6f303dw478871aede988a7a@mail.gmail.com>
2009-09-22 19:52     ` Magnus Lilja
2009-09-22 20:28       ` Fred Fan
2009-09-22 20:04     ` Magnus Lilja
2009-09-22 20:29       ` Fred Fan
  -- strict thread matches above, loose matches on Subject: below --
2009-09-23 14:47 Fred Fan
2009-09-23 21:47 ` Wolfgang Denk
2009-12-01 16:44   ` Fred Fan
2009-12-01 21:15     ` Wolfgang Denk
2009-12-04 11:16     ` Stefano Babic
2009-12-14  2:28       ` Fred Fan
2009-12-29 22:41         ` stefano babic
2009-09-24  4:35 ` Prafulla Wadaskar

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=458722.17344.qm@web51007.mail.re2.yahoo.com \
    --to=fabioestevam@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.