Move libc_init interface into separate component

Move libc_init interface into a separate component as it is independent
from the environment. Each libc implementation should hide its
initialization sequence in this function so SPs can remain libc
agnostic.

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I8c72e2fe102ec2054b31fac50f467e9e8f8bdf94
diff --git a/components/common/libc/include/libc_init.h b/components/common/libc/include/libc_init.h
new file mode 100644
index 0000000..28988d5
--- /dev/null
+++ b/components/common/libc/include/libc_init.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
+ */
+
+#ifndef LIBC_INIT_H_
+#define LIBC_INIT_H_
+
+/*
+ * Generic libc init function. Implemented by the newlib external, should be called by the
+ * environment on boot.
+ */
+void libc_init(void);
+
+#endif /* LIBC_INIT_H_ */