Skip to contentSkip to conversation

overriding serial port default

U-Boot-Users NZG 2 participants 2 messages Mar 15, 2005

lore
Share & tools
lore

NZG

author
#0 lore raw

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?

thx,
NZG.

#1 lore raw
Quoted 3 lines · In message <[email protected]> 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

Signature · 4 lines
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.