mirror of https://github.com/thesofproject/sof.git
zephyr: remote the platform_timer_set() wrapper
platform_timer_set() isn't called from Zephyr any more, remote it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
d0235a60dd
commit
94ed4ca325
|
@ -264,17 +264,6 @@ uint64_t arch_timer_get_system(struct timer *timer)
|
||||||
return platform_timer_get(timer);
|
return platform_timer_get(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* platform_timer_set() should not be called using Zephyr */
|
|
||||||
int64_t platform_timer_set(struct timer *timer, uint64_t ticks)
|
|
||||||
{
|
|
||||||
#if defined(CONFIG_SOC_SERIES_INTEL_ADSP_BAYTRAIL)
|
|
||||||
return ticks;
|
|
||||||
#else
|
|
||||||
/* TODO: needs BDW; should call Zephyr 64bit API ? */
|
|
||||||
return shim_read64(SHIM_DSPWCT0C);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t platform_timer_get(struct timer *timer)
|
uint64_t platform_timer_get(struct timer *timer)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_SOC_SERIES_INTEL_ADSP_BAYTRAIL)
|
#if defined(CONFIG_SOC_SERIES_INTEL_ADSP_BAYTRAIL)
|
||||||
|
|
Loading…
Reference in New Issue