[U-Boot] [PATCH 4/5] serial: reduce include platform file for marvell chip
Lei Wen
adrian.wenl at gmail.com
Tue Oct 25 03:30:18 CEST 2011
Hi Albert,
On Tue, Oct 25, 2011 at 12:46 AM, Albert ARIBAUD
<albert.u.boot at aribaud.net> wrote:
> Hi all,
>
> Le 02/10/2011 16:16, Lei Wen a écrit :
>>
>> Build pass with following config:
>> dkb_config
>> aspenite_config
>> edminiv2_config
>> openrd_ultimate_config
>> sheevaplug_config
>> mv88f6281gtw_ge_config
>> rd6281a_config
>> guruplug_config
>> km_kirkwood_config
>>
>> Signed-off-by: Lei Wen<leiwen at marvell.com>
>> ---
>> drivers/serial/serial.c | 9 ---------
>> 1 files changed, 0 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
>> index 0d56e78..0d6ad62 100644
>> --- a/drivers/serial/serial.c
>> +++ b/drivers/serial/serial.c
>> @@ -28,15 +28,6 @@
>> #ifdef CONFIG_NS87308
>> #include<ns87308.h>
>> #endif
>> -#ifdef CONFIG_KIRKWOOD
>> -#include<asm/arch/kirkwood.h>
>> -#elif defined(CONFIG_ORION5X)
>> -#include<asm/arch/orion5x.h>
>> -#elif defined(CONFIG_ARMADA100)
>> -#include<asm/arch/armada100.h>
>> -#elif defined(CONFIG_PANTHEON)
>> -#include<asm/arch/pantheon.h>
>> -#endif
>>
>> #if defined (CONFIG_SERIAL_MULTI)
>> #include<serial.h>
>
> This breaks ED Mini V2 (orion5x) with the following message:
>
> serial.c:65: error: 'ORION5X_UART0_BASE' undeclared here (not in a function)
> serial.c: In function 'calc_divisor':
> serial.c:152: error: 'CONFIG_SYS_TCLK' undeclared (first use in this
> function)
> serial.c:152: error: (Each undeclared identifier is reported only once
> serial.c:152: error: for each function it appears in.)
>
> Lei Wen, please provide a patch for orion5x as you provided for armada,
> pantheon and kirkwood.
>
I see... My fault for this...
I would post another patch to fix it.
Thanks,
Lei
More information about the U-Boot
mailing list