[U-Boot] [PATCH RFC] at91sam9/at91cap: move common initialisation to cpu

Stelian Pop stelian at popies.net
Fri Nov 14 10:17:13 CET 2008


Le jeudi 13 novembre 2008 à 23:32 +0100, Jean-Christophe
PLAGNIOL-VILLARD a écrit :

> > Note however that serial and spi are not the only initialisations that
> > can be moved: the very same thing can be done with all the other device
> > initialisations.
> I've just put serial & spi for the RFC

Ok then.

[...]

> > Why don't just do at91_serial_hw_init() once, and test the CONFIG_USART*
> > inside the cpu specific at91_serial_hw_init function() ?
> > 
> > This also eliminates that unneeded switch case in that function.
> The idea is too allow multiple serial at the same time.
> 
> I've plan to add the multi serial support to the at91 serial drivers

I'm not sure exactly what you mean by "multi serial support" but isn't
this orthogonal to what I'm saying (putting the #ifdef CONFIG_USART0
inside the cpu specific file instead of board specific file) ?

Stelian.
-- 
Stelian Pop <stelian at popies.net>



More information about the U-Boot mailing list