From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 10 Jun 2014 09:07:56 +0200 Subject: [U-Boot] [PATCH] socfpga: Relocate arch common functions away from board In-Reply-To: <1402382467-3213-1-git-send-email-clsee@altera.com> References: <1402382467-3213-1-git-send-email-clsee@altera.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Chin, On Tue, 10 Jun 2014 01:41:06 -0500, Chin Liang See wrote: > To move the arch common function away from board folder to > arch/arm/cpu/armv7/socfpga folder. > > Signed-off-by: Chin Liang See > Cc: Wolfgang Denk > Cc: Detlev Zundel > Cc: Pavel Machek > Cc: Dinh Nguyen > --- > arch/arm/cpu/armv7/socfpga/misc.c | 24 ++++++++++++++++++++++++ > board/altera/socfpga/socfpga_cyclone5.c | 23 ----------------------- > 2 files changed, 24 insertions(+), 23 deletions(-) > > diff --git a/arch/arm/cpu/armv7/socfpga/misc.c b/arch/arm/cpu/armv7/socfpga/misc.c > index 2f1c716..5268f2c 100644 > --- a/arch/arm/cpu/armv7/socfpga/misc.c > +++ b/arch/arm/cpu/armv7/socfpga/misc.c > @@ -14,3 +14,27 @@ int dram_init(void) > gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); > return 0; > } > + > +#if defined(CONFIG_DISPLAY_CPUINFO) > +/* > + * Print CPU information > + */ > +int print_cpuinfo(void) > +{ > + puts("CPU : Altera SOCFPGA Platform\n"); > + return 0; > +} > +#endif > + > +#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && \ > +defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE) > +int overwrite_console(void) > +{ > + return 0; > +} > +#endif > + > +int misc_init_r(void) > +{ > + return 0; > +} > diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c > index a960eb6..f366565 100644 > --- a/board/altera/socfpga/socfpga_cyclone5.c > +++ b/board/altera/socfpga/socfpga_cyclone5.c > @@ -12,17 +12,6 @@ > > DECLARE_GLOBAL_DATA_PTR; > > -#if defined(CONFIG_DISPLAY_CPUINFO) > -/* > - * Print CPU information > - */ > -int print_cpuinfo(void) > -{ > - puts("CPU : Altera SOCFPGA Platform\n"); > - return 0; > -} > -#endif > - > /* > * Print Board information > */ > @@ -49,18 +38,6 @@ int board_init(void) > return 0; > } > > -int misc_init_r(void) > -{ > - return 0; > -} > - > -#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE) > -int overwrite_console(void) > -{ > - return 0; > -} > -#endif > - > /* > * DesignWare Ethernet initialization > */ Can you clarify in the commit message why this change is needed or useful? Amicalement, -- Albert.