[U-Boot] [PATCH v2] AT91: add RTT and GPBR based RTC
Reinhard Meyer
u-boot at emk-elektronik.de
Wed Aug 25 08:55:42 CEST 2010
Dear Xu, Hong,
> Per the latest datasheet from Atmel's official website, 0xFFFFFD60 is GPBR base address for SAM9XE
> 0xFFFFFD50 is GPBR base address for SAM9260.
True. I still think it was not planned like that. It just makes live more
complicated since otherwise, as long as one does not use the internal
flash, the code for 9260 and 9XE would be identical...
>
> We'd use this for official EK board and forget Eng samples.
Fine with me. I tried to send a patch for at91sam9260.h this night but
it was mangled. I'll try to repost that later.
My way to define for the 9XE is currently as follows:
#define CONFIG_AT91SAM9260
#define CONFIG_AT91SAM9XE
That avoids extra #if added to several files which would be necessary
if only CONFIG_AT91SAM9XE were defined.
> If you want to distinguish different chip revision, DBGU_CIDR and DBGU_EXID may help.
Provided they are different between ENG and actual masks... I don't have
the XE-EK with the ENG sample ready right now to check that.
Regards, Reinhard
More information about the U-Boot
mailing list