From: Wolfgang Denk Date: Wed, 15 Sep 2004 10:21:11 +0200 Subject: [U-Boot-Users] Runtime switch from uart0 to uart1? In-Reply-To: Your message of "Tue, 14 Sep 2004 20:18:50 EDT." <1095207529.2892.12.camel@localhost.localdomain> Message-ID: <20040915082116.A65D9C1430@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 <1095207529.2892.12.camel@localhost.localdomain> you wrote: > > Thanx. I've been tasked out by my higher-ups to do this. I'm planning > on adding the code directly to cpu/ppc4xx/serial.c. Fine. > However, I think this is going to add a little bit of text space even if > CONFIG_SERIAL_MULTI is not defined. You know the reply: I don't like this idea ;-) > There are several functions that will need to have this done, thus > adding 1 layer of indirection to the current code to allow for multiple > serial channels. Maybe we can use function pointers instead which can be overloaded? [Just be careful and remember that function pointers don't get relocated automagically.] Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "Data is a lot like humans: It is born. Matures. Gets married to other data, divorced. Gets old. One thing that it doesn't do is die. It has to be killed." - Arthur Miller