public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] serial: CONFIG_ARM_DCC_MULTI failures
@ 2013-01-23  9:40 Michal Simek
  2013-01-23  9:40 ` [U-Boot] [PATCH 1/2] serial: arm_dcc: Remove CONFIG_ARM_DCC_MULTI option Michal Simek
  2013-01-23  9:40 ` [U-Boot] [PATCH 2/2] serial: arm_dcc: Fix compilation warning and remove unneeded initialization Michal Simek
  0 siblings, 2 replies; 9+ messages in thread
From: Michal Simek @ 2013-01-23  9:40 UTC (permalink / raw)
  To: u-boot

Hi Marek and others,

I have found that in uboot is arm-dcc driver (drivers/serial/arm_dcc.c)
which is
1. not compiled by any configuration
2. when it is enabled is causing compilation failures because of SERIAL_MULTI removal

The problem is with this code.

#ifndef CONFIG_ARM_DCC_MULTI
#define arm_dcc_init serial_init
void serial_setbrg(void) {}
#define arm_dcc_getc serial_getc
#define arm_dcc_putc serial_putc
#define arm_dcc_puts serial_puts
#define arm_dcc_tstc serial_tstc
#endif

It means that CONFIG_ARM_DCC_MULTI should be always enabled and we
can remove this option entirely. 

Then there is missing default_serial_console() if there is no
another serial driver.

Also I am sending the second patch which fix compilation warning.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-04 16:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23  9:40 [U-Boot] serial: CONFIG_ARM_DCC_MULTI failures Michal Simek
2013-01-23  9:40 ` [U-Boot] [PATCH 1/2] serial: arm_dcc: Remove CONFIG_ARM_DCC_MULTI option Michal Simek
2013-01-23 10:02   ` Wolfgang Denk
2013-01-23 10:20     ` Michal Simek
2013-01-26  5:43   ` Marek Vasut
2013-01-28 10:52     ` Michal Simek
2013-02-04 16:40   ` [U-Boot] [U-Boot, " Tom Rini
2013-01-23  9:40 ` [U-Boot] [PATCH 2/2] serial: arm_dcc: Fix compilation warning and remove unneeded initialization Michal Simek
2013-01-26  5:44   ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox