[U-Boot] [PATCH v2] AT91: add RTT and GPBR based RTC

Xu, Hong Hong.Xu at atmel.com
Wed Aug 25 03:47:06 CEST 2010


Hi Reinhard,

> -----Original Message-----
> From: u-boot-bounces at lists.denx.de 
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Reinhard Meyer
> Sent: Friday, August 20, 2010 10:00 PM
> To: u-boot
> Subject: [U-Boot] [PATCH v2] AT91: add RTT and GPBR based RTC
> 
> adds kernel compatible RTC handling to u-boot using the RTT 
> and one GPBRegister
> 
> Signed-off-by: Reinhard Meyer <reinhard.meyer at emk-elektronik.de>
> ---
> This patch replaces the wrongly split and outdated patch from 
> 05.07.2010
>  arch/arm/include/asm/arch-at91/at91_gpbr.h |   45 +++++++++++++
>  arch/arm/include/asm/arch-at91/at91_rtt.h  |   36 ++++++++++
>  drivers/rtc/Makefile                       |    1 +
>  drivers/rtc/at91sam9.c                     |  100 

Some of Atmel's ARM926EJS chips have builtin RTC, for example, SAM9G45 SAM9M10 SAM9RL and new X5 serials.
May we take this into account at this stage?

We can use big #ifdef to add real RTC support in drivers/rtc/at91sam9.c

- or -

We can rename drivers/rtc/at91sam9.c to , for example, drivers/rtc/at91sam9_rtt.c, and let drivers/rtc/at91sam9.c for the real RTC support.

What's your opinion?

Thanks.

BR,
Eric

[...]
> 


More information about the U-Boot mailing list