platform: refactor: unify */platform/timer.h functions and variables

For cnl&apl removed platform_timer_register from public api
and made it static.
For byt&hsw moved platform_timer to platform.h
(just like it is for cnl&apl).

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2018-08-23 10:22:51 +02:00
parent b164895386
commit abb2591abd
7 changed files with 8 additions and 10 deletions

View File

@ -53,8 +53,6 @@ void platform_timer_clear(struct timer *timer);
uint64_t platform_timer_get(struct timer *timer);
void platform_timer_start(struct timer *timer);
void platform_timer_stop(struct timer *timer);
int platform_timer_register(struct timer *timer,
void (*handler)(void *arg), void *arg);
/* get timestamp for host stream DMA position */
void platform_host_timestamp(struct comp_dev *host,

View File

@ -112,4 +112,7 @@ static inline void platform_panic(uint32_t p)
/* Platform defined trace code */
#define platform_trace_point(__x) \
shim_write(SHIM_IPCXL, (__x & 0x3fffffff))
extern struct timer *platform_timer;
#endif

View File

@ -47,8 +47,6 @@
struct comp_dev;
struct sof_ipc_stream_posn;
extern struct timer *platform_timer;
int platform_timer_set(struct timer *timer, uint64_t ticks);
void platform_timer_clear(struct timer *timer);
uint64_t platform_timer_get(struct timer *timer);

View File

@ -54,8 +54,6 @@ void platform_timer_clear(struct timer *timer);
uint64_t platform_timer_get(struct timer *timer);
void platform_timer_start(struct timer *timer);
void platform_timer_stop(struct timer *timer);
int platform_timer_register(struct timer *timer,
void (*handler)(void *arg), void *arg);
/* get timestamp for host stream DMA position */
void platform_host_timestamp(struct comp_dev *host,

View File

@ -111,4 +111,7 @@ static inline void platform_panic(uint32_t p)
/* Platform defined trace code */
#define platform_trace_point(__x) \
shim_write(SHIM_IPCX, ((__x) & 0x3fffffff))
extern struct timer *platform_timer;
#endif

View File

@ -46,8 +46,6 @@
struct comp_dev;
struct sof_ipc_stream_posn;
extern struct timer *platform_timer;
int platform_timer_set(struct timer *timer, uint64_t ticks);
void platform_timer_clear(struct timer *timer);
uint64_t platform_timer_get(struct timer *timer);

View File

@ -114,7 +114,7 @@ void platform_dai_wallclock(struct comp_dev *dai, uint64_t *wallclock)
*wallclock = shim_read64(SHIM_DSPWC);
}
int platform_timer_register(struct timer *timer,
static int platform_timer_register(struct timer *timer,
void (*handler)(void *arg), void *arg)
{
return interrupt_register(timer->irq, handler, arg);