[U-Boot-Users] Patch for config_serial_software_fifo

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
It turns out if you define CONFIG_SERIAL_SOFTWARE_FIFO that the call to serial_buffered_init() is lib_ppc/board.c, even though the implementation is compiled out elsewhere. The following batch fixes this case, assuming I understand the situation correctly. This matches the useage of the macro in the cpu/ppc4xx/serial.c file.
* Don't call serial_buffered_init() is CONFIG_SERIAL_SOFTWARE_FIFO ~ is defined to be 0.
- --- u-boot-1.0.0/lib_ppc/board.c 2003-10-15 16:53:59.000000000 -0700 +++ u-boot-1.0.0-devel/lib_ppc/board.c 2004-01-01 16:21:47.000000000 -0800 @@ -835,7 +835,7 @@ void board_init_r (gd_t *id, ulong dest_ ~ /* Must happen after interrupts are initialized since ~ * an irq handler gets installed ~ */ - -#ifdef CONFIG_SERIAL_SOFTWARE_FIFO +#if CONFIG_SERIAL_SOFTWARE_FIFO ~ serial_buffered_init(); ~ #endif
- -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."
participants (1)
-
Stephen Williams