Re: [Qemu-devel] [PATCH v2] target-arm: Make the counter tick relative to cntfrq

2019-08-28 Thread Andrew Jeffery
On Thu, 29 Aug 2019, at 11:08, Andrew Jeffery wrote: > > > On Wed, 28 Aug 2019, at 01:39, Peter Maydell wrote: > > On Fri, 9 Aug 2019 at 06:43, Andrew Jeffery wrote: > > > > > > The use of GTIMER_SCALE assumes the clock feeding the generic timer is > > > 62.5MHz for all platforms. This is unt

Re: [Qemu-devel] [PATCH v2] target-arm: Make the counter tick relative to cntfrq

2019-08-28 Thread Andrew Jeffery
On Wed, 28 Aug 2019, at 01:39, Peter Maydell wrote: > On Fri, 9 Aug 2019 at 06:43, Andrew Jeffery wrote: > > > > The use of GTIMER_SCALE assumes the clock feeding the generic timer is > > 62.5MHz for all platforms. This is untrue in general, for example the > > ASPEED AST2600 feeds the counter

Re: [Qemu-devel] [PATCH v2] target-arm: Make the counter tick relative to cntfrq

2019-08-27 Thread Peter Maydell
On Fri, 9 Aug 2019 at 06:43, Andrew Jeffery wrote: > > The use of GTIMER_SCALE assumes the clock feeding the generic timer is > 62.5MHz for all platforms. This is untrue in general, for example the > ASPEED AST2600 feeds the counter with either an 800 or 1200MHz clock, > and CNTFRQ is configured a

[Qemu-devel] [PATCH v2] target-arm: Make the counter tick relative to cntfrq

2019-08-08 Thread Andrew Jeffery
The use of GTIMER_SCALE assumes the clock feeding the generic timer is 62.5MHz for all platforms. This is untrue in general, for example the ASPEED AST2600 feeds the counter with either an 800 or 1200MHz clock, and CNTFRQ is configured appropriately by u-boot. To cope with these values we need to