From d34d240d01aaed6ae7583ec55de7be20316c2f10 Mon Sep 17 00:00:00 2001
From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Date: Wed, 9 Oct 2024 17:39:24 +0300
Subject: [PATCH] zephyr: add Zephyr version of sof/init.h

Add Zephyr version of sof/init.h. This is used define main
entry points to the SOF application. The arch_init() entry
point is not needed on Zephyr.

Link: https://github.com/thesofproject/sof/issues/9015
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 zephyr/include/sof/init.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 zephyr/include/sof/init.h

diff --git a/zephyr/include/sof/init.h b/zephyr/include/sof/init.h
new file mode 100644
index 000000000000..cec43ed02353
--- /dev/null
+++ b/zephyr/include/sof/init.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright(c) 2016,2024 Intel Corporation.
+ */
+
+#ifndef __SOF_INIT_H__
+#define __SOF_INIT_H__
+
+struct sof;
+
+/* main firmware entry point - argc and argv not currently used */
+#ifndef CONFIG_ARCH_POSIX
+int main(int argc, char *argv[]);
+#endif
+
+#if CONFIG_MULTICORE
+
+int secondary_core_init(struct sof *sof);
+
+#endif /* CONFIG_MULTICORE */
+
+#endif /* __SOF_INIT_H__ */