public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chin Liang See <clsee@altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/6] arm: socfpga: Drop the board boilerplate
Date: Mon, 7 Dec 2015 21:29:02 +0800	[thread overview]
Message-ID: <1449494942.2213.8.camel@altera.com> (raw)
In-Reply-To: <201512071422.16417.marex@denx.de>

On Mon, 2015-12-07 at 14:22 +0100, Marek Vasut wrote:
> On Monday, December 07, 2015 at 01:56:23 PM, Chin Liang See wrote:
> > On Sat, 2015-12-05 at 21:44 +0100, Marek Vasut wrote:
> > > Drop all the common board code, since it is not completely
> > > useless.
> > > 
> > > Signed-off-by: Marek Vasut <marex@denx.de>
> > > Cc: Chin Liang See <clsee@altera.com>
> > > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > > ---
> > > 
> > >  board/altera/arria5-socdk/socfpga.c   | 56 ---------------------
> > > ----
> > > 
> > > ----------
> > > 
> > >  board/altera/cyclone5-socdk/socfpga.c | 56 ---------------------
> > > ----
> > > 
> > > ----------
> > > 
> > >  board/denx/mcvevk/socfpga.c           | 56 ---------------------
> > > ----
> > > 
> > > ----------
> > > 
> > >  board/ebv/socrates/socfpga.c          | 56 ---------------------
> > > ----
> > > 
> > > ----------
> > > 
> > >  board/sr1500/socfpga.c                | 17 -----------
> > >  board/terasic/de0-nano-soc/socfpga.c  | 16 ----------
> > >  board/terasic/sockit/socfpga.c        | 56 ---------------------
> > > ----
> > > 
> > > ----------
> > > 
> > >  7 files changed, 313 deletions(-)
> > > 
> > > diff --git a/board/altera/arria5-socdk/socfpga.c
> > > b/board/altera/arria5-socdk/socfpga.c
> > > index 449f3b5..97fb902 100644
> > > --- a/board/altera/arria5-socdk/socfpga.c
> > > +++ b/board/altera/arria5-socdk/socfpga.c
> > > @@ -3,60 +3,4 @@
> > > 
> > >   *
> > >   * SPDX-License-Identifier:	GPL-2.0+
> > >   */
> > > 
> > > -
> > > 
> > >  #include <common.h>
> > > 
> > > -#include <errno.h>
> > > -#include <asm/arch/reset_manager.h>
> > > -#include <asm/io.h>
> > > -
> > > -#include <usb.h>
> > > -#include <usb/dwc2_udc.h>
> > > -
> > > -DECLARE_GLOBAL_DATA_PTR;
> > > -
> > > -void s_init(void) {}
> > > -
> > > -/*
> > > - * Miscellaneous platform dependent initialisations
> > > - */
> > > -int board_init(void)
> > > -{
> > > -	/* Address of boot parameters for ATAG (if ATAG is used)
> > > */
> > > -	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
> > > -
> > > -	return 0;
> > > -}
> > 
> > Suggesting to keep the board_init function where user can put board
> > specific initialization here.
> 
> If the need for that ever arises, you can make the board_init in
> board.c
> __weak and override it here. But there should be no need for any
> board
> specific init, the DT should be the only place where such things
> should
> be described.

Sound good to me as I dun have strong opinion on this. Will see anyone
would need that too :)

Acked-by: Chin Liang See <clsee@altera.com>

Thanks
Chin Liang

  reply	other threads:[~2015-12-07 13:29 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-05 20:44 [U-Boot] [PATCH 1/6] arm: socfpga: de0_nano: Zap VIRTUAL_TARGET Marek Vasut
2015-12-05 20:44 ` [U-Boot] [PATCH 2/6] arm: socfpga: sockit: " Marek Vasut
2015-12-07  6:14   ` Chin Liang See
2015-12-05 20:44 ` [U-Boot] [PATCH 3/6] arm: socfpga: Switch CONFIG_G_DNL_MANUFACTURER to CONFIG_SYS_VENDOR Marek Vasut
2015-12-07  6:18   ` Chin Liang See
2015-12-05 20:44 ` [U-Boot] [PATCH 4/6] arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD Marek Vasut
2015-12-07  6:25   ` Chin Liang See
2015-12-07  8:36     ` Marek Vasut
2015-12-07 10:01       ` Chin Liang See
2015-12-07 12:01         ` Marek Vasut
2015-12-07 12:08           ` Chin Liang See
2015-12-05 20:44 ` [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code Marek Vasut
2015-12-07 12:53   ` Chin Liang See
2015-12-07 13:23     ` Marek Vasut
2015-12-07 13:32       ` Chin Liang See
2015-12-07 14:23         ` Marek Vasut
2015-12-07 14:29           ` Chin Liang See
2015-12-07 14:37             ` Marek Vasut
2015-12-07 14:56               ` Chin Liang See
2015-12-07 17:46                 ` Marek Vasut
2015-12-08 12:34                   ` Chin Liang See
2015-12-08 12:57                     ` Marek Vasut
2015-12-09 13:46                       ` Chin Liang See
2015-12-05 20:44 ` [U-Boot] [PATCH 6/6] arm: socfpga: Drop the board boilerplate Marek Vasut
2015-12-07 12:56   ` Chin Liang See
2015-12-07 13:22     ` Marek Vasut
2015-12-07 13:29       ` Chin Liang See [this message]
2015-12-07  6:11 ` [U-Boot] [PATCH 1/6] arm: socfpga: de0_nano: Zap VIRTUAL_TARGET Chin Liang See

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=1449494942.2213.8.camel@altera.com \
    --to=clsee@altera.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