Re: [Qemu-devel] [PATCH 3/3] aspeed/timer: use the APB frequency from the SCU

2018-06-21 Thread Cédric Le Goater
On 06/22/2018 03:01 AM, Joel Stanley wrote: > On 22 June 2018 at 08:09, Cédric Le Goater wrote: >> The timer controller can be driven by either an external 1MHz clock or >> by the APB clock. Today, the model makes this assumption that the APB >> frequency is 24MHz but this is incorrect on the AST2

Re: [Qemu-devel] [PATCH 3/3] aspeed/timer: use the APB frequency from the SCU

2018-06-21 Thread Joel Stanley
On 22 June 2018 at 08:09, Cédric Le Goater wrote: > The timer controller can be driven by either an external 1MHz clock or > by the APB clock. Today, the model makes this assumption that the APB > frequency is 24MHz but this is incorrect on the AST2400 SoC. palmetto > machines use a 48MHz input cl

[Qemu-devel] [PATCH 3/3] aspeed/timer: use the APB frequency from the SCU

2018-06-21 Thread Cédric Le Goater
The timer controller can be driven by either an external 1MHz clock or by the APB clock. Today, the model makes this assumption that the APB frequency is 24MHz but this is incorrect on the AST2400 SoC. palmetto machines use a 48MHz input clock source. Use the SCU object to get the APB frequency an