[U-Boot] [PATCH 13/13] i.MX28: Avoid redefining serial_put[cs]()
Stefano Babic
sbabic at denx.de
Wed May 9 12:35:32 CEST 2012
On 01/05/2012 23:09, Marek Vasut wrote:
> Do not define serial_putc() and serial_puts() calls if
> CONFIG_SPL_SERIAL_SUPPORT is set.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Detlev Zundel <dzu at denx.de>
> Cc: Fabio Estevam <fabio.estevam at freescale.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Wolfgang Denk <wd at denx.de>
> ---
> arch/arm/cpu/arm926ejs/mx28/spl_boot.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/cpu/arm926ejs/mx28/spl_boot.c b/arch/arm/cpu/arm926ejs/mx28/spl_boot.c
> index c9b4566..a6dfca3 100644
> --- a/arch/arm/cpu/arm926ejs/mx28/spl_boot.c
> +++ b/arch/arm/cpu/arm926ejs/mx28/spl_boot.c
> @@ -123,8 +123,10 @@ inline void board_init_r(gd_t *id, ulong dest_addr)
> ;
> }
>
> +#ifndef CONFIG_SPL_SERIAL_SUPPORT
> void serial_putc(const char c) {}
> void serial_puts(const char *s) {}
> +#endif
> void hang(void) __attribute__ ((noreturn));
> void hang(void)
> {
Acked-by: Stefano Babic <sbabic at denx.de>
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list