From: Wolfgang Denk Date: Tue, 15 Mar 2005 22:22:15 +0100 Subject: [U-Boot-Users] overriding serial port default In-Reply-To: Your message of "Tue, 15 Mar 2005 14:57:13 CST." <200503151457.13086.ngustavson@emacinc.com> Message-ID: <20050315212220.C6FA6C1510@atlas.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 In message <200503151457.13086.ngustavson@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.