[U-Boot] [PATCH] armv8: Allow SoCs to override the generic timer

Thierry Reding treding at nvidia.com
Tue Jul 28 11:33:48 CEST 2015


On Wed, Jul 22, 2015 at 04:56:10PM -0600, Stephen Warren wrote:
> From: Thierry Reding <treding at nvidia.com>
> 
> Some SoCs come with a custom timer interface, so allow them to use that
> instead.
> 
> swarren notes: I did consider reworking this patch so the Makefile only
> compiles generic_timer.c ifndef CONFIG_SYS_TIMER_COUNTER. However, I can
> foresee a time where generic_timer.c contains both routines to implement
> U-Boot's internal timer, and to perform other operations related to the
> generic timer, such as initializing the CNTFRQ register for a booted OS.
> If that happens, this version of the change will result in simpler future
> patches.
> 
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> Signed-off-by: Tom Warren <twarren at nvidia.com>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  arch/arm/cpu/armv8/generic_timer.c | 2 ++
>  1 file changed, 2 insertions(+)

Marc Zyngier and David Feng had objections to this when I posted[0]. I
ended up solving this differently, by initializing the architectural
timer earlier and then using the architected timer on ARM64.

I'll post the two patches I have in my tree as a replacement for this
and sorry for causing such a mess.

Thierry

[0]: http://lists.denx.de/pipermail/u-boot/2015-March/208505.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150728/74770271/attachment.sig>


More information about the U-Boot mailing list