[U-Boot-Users] overriding serial port default

Wolfgang Denk wd at denx.de
Tue Mar 15 22:22:15 CET 2005


In message <200503151457.13086.ngustavson at emacinc.com> you wrote:
> The cpu/mcf52x2/serial.c code seems to hard code the serial port that the 
> device uses. 
> What's the cleanest way to override this in a board specific file?

Use a #define in the board config file, and a #indef in the  original
driver  to  select a default if no specific define was present in the
board config file.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You have the capacity to learn from  mistakes.  You'll  learn  a  lot
today.




More information about the U-Boot mailing list