
10 Mar
2012
10 Mar
'12
9:16 a.m.
Dear Simon Glass,
In message 1331325178-14634-3-git-send-email-sjg@chromium.org you wrote:
When there is not device tree file available to U-Boot, we panic. Implement board_pre_console_putc() so that this panic will be displayed on the serial console.
...
+void board_pre_console_putc(int ch) +{
...
- for (uart_addr = uart_reg_addr; *uart_addr; uart_addr++) {
NS16550_t regs = (NS16550_t)*uart_addr;
NS16550_init(regs, divisor);
NS16550_putc(regs, ch);
if (ch == '\n')
NS16550_putc(regs, '\r');
NS16550_drain(regs);
Why is this needed for every output character?
Actually, why is it needed at all?
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@denx.de
All a hacker needs is a tight PUSHJ, a loose pair of UUOs, and a warm
place to shift.