Skip to content

Commit

Permalink
platform: remove platform/drivers/idc.h for Intel platforms
Browse files Browse the repository at this point in the history
For Zephyr builds, only definition needed from platform/drivers/idc.h
was prototype for idc_send_msg(). There's no need to keep the platform
layer just for this, so add the definition to rtos/idc.h for Zephyr
builds, and remove the platform/drivers/idc.h for all Intel platforms.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i committed Apr 16, 2024
1 parent fea70bd commit 537b0b3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 124 deletions.
25 changes: 0 additions & 25 deletions src/platform/intel/ace/include/ace/drivers/idc.h

This file was deleted.

39 changes: 0 additions & 39 deletions src/platform/intel/cavs/include/cavs/drivers/idc.h

This file was deleted.

19 changes: 0 additions & 19 deletions src/platform/lunarlake/include/platform/drivers/idc.h

This file was deleted.

19 changes: 0 additions & 19 deletions src/platform/meteorlake/include/platform/drivers/idc.h

This file was deleted.

21 changes: 0 additions & 21 deletions src/platform/tigerlake/include/platform/drivers/idc.h

This file was deleted.

5 changes: 4 additions & 1 deletion zephyr/include/rtos/idc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef __ZEPHYR_RTOS_IDC_H__
#define __ZEPHYR_RTOS_IDC_H__

#include <platform/drivers/idc.h>
#include <rtos/task.h>
#include <sof/trace/trace.h>
#include <user/trace.h>
Expand Down Expand Up @@ -199,8 +198,12 @@ int idc_wait_in_blocking_mode(uint32_t target_core, bool (*cond)(int));

int idc_msg_status_get(uint32_t core);

int idc_init(void);

void idc_init_thread(void);

int idc_send_msg(struct idc_msg *msg, uint32_t mode);

struct idc **idc_get(void);

#endif /* __ZEPHYR_RTOS_IDC_H__ */

0 comments on commit 537b0b3

Please sign in to comment.