From: Wolfgang Denk Date: Tue, 20 Sep 2011 09:29:49 +0200 Subject: [U-Boot] serial ifdef mess In-Reply-To: References: <1316323020-4027-1-git-send-email-vapier@gentoo.org> <201109191657.34352.vapier@gentoo.org> <201109192052.30059.vapier@gentoo.org> Message-ID: <20110920072949.A3BD51407969@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message you wrote: > > Do we really want this? Is the code overhead of SERIAL_MULTI so bad > that people insist on not defining it? If so, can we reduce that code I have not seen a single case yet where the overhead was a problem. It was always only the effort to change the code and re-test. For any new boards this is a non-issue. > Prior to relocation there is a single console UART. I wonder whether > it would be acceptable to buffer all output until after relocation? Strict no here. > Serial init is the one peripheral still needed prior to reloc. At > least this could be the default option, with something like > CONFIG_EARLY_UART defined to revert to current behavior for debugging > reasons. That would just add complexity. > Slightly more radical: just move the U-Boot banner, etc. into > board_init_r. What could possible go wrong? Serial output is an important debug tool during board bringup. I want to have serial output as soon as possible. This is one of the fundamental principles of U-Boot design I will not give up easily. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Never put off until tomorrow what you can put off indefinitely.