On Tue, 15 Sep 2020 at 08:17, Sean Anderson <sean...@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 <sean...@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 <s...@chromium.org>