Create UART backend for logging SP

Create UART adapter and backend for the UART driver.

Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Signed-off-by: Gabor Ambrus <gabor.ambrus@arm.com>
Change-Id: Id3adec616599959b3a5777d665fcfcadf0ccb91b
diff --git a/components/service/log/backend/uart/uart_backend.h b/components/service/log/backend/uart/uart_backend.h
new file mode 100644
index 0000000..72129f3
--- /dev/null
+++ b/components/service/log/backend/uart/uart_backend.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef UART_BACKEND_H
+#define UART_BACKEND_H
+
+#include <service/log/backend/log_backend.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Initialize the UART based backend
+ *
+ * Initializes an UART backend that uses the interface provided by the
+ * UART adapter to execute UART operations.
+ *
+ * \param[in] uart_instance_num  The UART hardware instance number to use
+ *
+ * \return PSA_SUCCESS if backend initialized successfully
+ */
+struct log_backend *uart_backend_init(int uart_instance_num);
+
+/**
+ * \brief Clean-up to free any resource used by the backend
+ */
+void uart_backend_deinit(void);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* UART_BACKEND_H */