[PATCH v5 3/9] timer: Add a test for timer_timebase_fallback
Simon Glass
sjg at chromium.org
Thu Sep 17 03:10:04 CEST 2020
On Tue, 15 Sep 2020 at 08:17, Sean Anderson <seanga2 at gmail.com> wrote:
>
> To test this function, sandbox CPU must set cpu_platdata.timebase_freq on
> bind. It also needs to expose a method to set the current cpu. I also make
> some most members of cpu_sandbox_ops static.
>
> On the timer side, the device tree property
> sandbox,timebase-frequency-fallback controls whether sandbox_timer_probe
> falls back to time_timebase_fallback or to SANDBOX_TIMER_RATE.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v5:
> - New
>
> arch/sandbox/dts/test.dts | 9 +++++++-
> arch/sandbox/include/asm/cpu.h | 11 ++++++++++
> drivers/cpu/cpu_sandbox.c | 39 ++++++++++++++++++++++++++++------
> drivers/timer/sandbox_timer.c | 4 +++-
> test/dm/timer.c | 27 ++++++++++++++++++++++-
> 5 files changed, 80 insertions(+), 10 deletions(-)
> create mode 100644 arch/sandbox/include/asm/cpu.h
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list