From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Date: Tue, 28 Jul 2015 11:33:48 +0200 Subject: [U-Boot] [PATCH] armv8: Allow SoCs to override the generic timer In-Reply-To: <1437605770-5462-1-git-send-email-swarren@wwwdotorg.org> References: <1437605770-5462-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20150728093347.GC18202@ulmo.nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 22, 2015 at 04:56:10PM -0600, Stephen Warren wrote: > From: Thierry Reding > > 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 > Signed-off-by: Tom Warren > Signed-off-by: Stephen Warren > --- > 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: