public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 1/2] RiOTboard: add new board
Date: Sun, 30 Mar 2014 21:52:16 +0200	[thread overview]
Message-ID: <20140330215216.3ebc805c@e6520eb> (raw)
In-Reply-To: <53384461.40904@denx.de>

Hi Stefano,

Le Sun, 30 Mar 2014 18:20:49 +0200,
Stefano Babic <sbabic@denx.de> a ?crit :
> I jump directly to V4 ;-) Sorry for late review, I was not in office
> last days.
> 
> Added Ben in CC. He sent a first version for the Marsboard.
> 
> On 29/03/2014 22:29, Eric B?nard wrote:
> > this board is produced by Embest/Element 14 and is based on i.MX6 Solo
> > The following features are tested :
> > - UART2 (console)
> > - eMMC
> > - SDCard
> > - uSDCard
> > - Ethernet
> > - USB Host (through 4 ports hub)
> > - HDMI output
> > - I2C 1/2/3
> > - LVDS TFT with LCD8000-97C from Embest/Element 14
> > 
> > Boot on eMMC and through USB loader are tested.
> > 
> > For more informations on this board : http://www.riotboard.org/
> > 
> > Signed-off-by: Eric B?nard <eric@eukrea.com>
> > ---
> 
> A general remark. I agree by reading the whole thread about checking at
> runtime which is the running board (you do it getting the cpu type).
> 
> However, you use also a compiler switch mechanism, adding RIOTBOARD or
> MARSBOARD in the boards.cfg. You have implemented two ways to for the
> same thing. This makes in principle your runtime detection useless,
> because you can use #if CONFIG_MARSBOARD instead of "if board_type ==
> BOARD_IS_MARSBOARD)".

True, as said in the log, anyway at the moment the same code can't run
on both boards because of the different CPU (Solo vs Dual - and not Dual
Lite).

> Is it possible to use only the runtime detection ?
> I think the main problem is CONFIG_ENV_IS_*, that is different for the
> two boards. What do you think about it ?
> 
I'll see how we can handle the 2 CONFIG_ENV_IS with runtime detection.

> IMHO you could also squash the two patches together. You add new files,
> and patch 2/2 changes some of them. I think in this case having a single
> patch makes review easier.
> 
OK no problem.

> > +	/* from linux/arch/arm/mach-imx/mach-imx6q.c :
> 
> Codestyle in U-Boot for multiline comments is:
> 
> /*
>  * ...
>  */
> 
OK will fix. FWIW checkpatch doesn't provide any warning concerning
this problem.

> > +int board_video_skip(void)
> > +{
> > ..././//
> We have already discussed in the past about this function. Each board
> (at least, imx6 board) want to have such of them, and code is
> duplicated. What about to factorize it ? I am not against to move it
> into imx-common, if we generally agree, but I would like to avoid to
> duplicate this function for each board.
>
OK, if I understand correctly you want me to factorize it ? ;-)
I'll see what I can do there.

Thanks,
Eric

  reply	other threads:[~2014-03-30 19:52 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-26 18:26 [U-Boot] [PATCH 1/2] RiOTboard: add new board Eric Bénard
2014-03-26 18:26 ` [U-Boot] [PATCH 2/2] MarSBoard: " Eric Bénard
2014-03-26 19:02   ` Wolfgang Denk
2014-03-26 19:26     ` Eric Bénard
2014-03-26 21:31     ` [U-Boot] [PATCH v2 1/2] RiOTboard: " Eric Bénard
2014-03-26 21:31       ` [U-Boot] [PATCH v2 2/2] MarSBoard: " Eric Bénard
2014-03-27  2:21         ` Otavio Salvador
2014-03-27  5:01           ` Fabio Estevam
2014-03-27  5:36             ` Wolfgang Denk
2014-03-27 12:44               ` Fabio Estevam
2014-03-27 12:50                 ` Otavio Salvador
2014-03-27 16:04                   ` Eric Bénard
2014-03-27 15:59                 ` Eric Bénard
2014-03-27 16:34                   ` Fabio Estevam
2014-03-27 16:42                 ` Wolfgang Denk
2014-03-27  5:31           ` Wolfgang Denk
2014-03-27  7:05         ` Stefan Roese
2014-03-27  7:40           ` Eric Bénard
2014-03-27 17:10           ` [U-Boot] [PATCH v3 1/2] RiOTboard: " Eric Bénard
2014-03-27 17:10             ` [U-Boot] [PATCH v3 2/2] MarSBoard: " Eric Bénard
2014-03-28  7:30               ` Stefan Roese
2014-03-28 10:09               ` Wolfgang Denk
2014-03-28 10:01             ` [U-Boot] [PATCH v3 1/2] RiOTboard: " Wolfgang Denk
2014-03-29 21:29               ` [U-Boot] [PATCH v4 " Eric Bénard
2014-03-29 21:29                 ` [U-Boot] [PATCH v4 2/2] MarSBoard: " Eric Bénard
2014-03-30 16:20                 ` [U-Boot] [PATCH v4 1/2] RiOTboard: " Stefano Babic
2014-03-30 19:52                   ` Eric Bénard [this message]
2014-03-31  6:55                     ` Stefano Babic
2014-03-31 20:02                   ` Eric Bénard
2014-04-01  8:41                     ` Stefano Babic
2014-04-01  8:50                       ` Eric Bénard

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=20140330215216.3ebc805c@e6520eb \
    --to=eric@eukrea.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