feat: add logging infra w/ backend support

Add functions to support logging. This enables a user specifying their
own logging format for all functions. TF-A's logging format is supported
out of the box by specifying the `DEBUG_BACKEND_HEADER` as
`log_backed_tf.h`.

Implement digest helpers that avoid heap/libc as some end projects don't
have access to this.

Change-Id: I55410ab963ea4d0c1956ba41f94b67eced8621d5
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
diff --git a/include/log_backend_tf.h b/include/log_backend_tf.h
new file mode 100644
index 0000000..f9aa1a9
--- /dev/null
+++ b/include/log_backend_tf.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2025, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef LOG_BACKEND_TF_H
+#define LOG_BACKEND_TF_H
+
+#include <stdio.h>
+
+void evlog_log(const char *fmt, ...) __asm__("tf_log");
+
+#define EVLOG_MARKER_ERROR "\xa" /* 10 */
+#define EVLOG_MARKER_NOTICE "\x14" /* 20 */
+#define EVLOG_MARKER_WARNING "\x1e" /* 30 */
+#define EVLOG_MARKER_INFO "\x28" /* 40 */
+#define EVLOG_MARKER_VERBOSE "\x32" /* 50 */
+
+#endif /* LOG_BACKEND_TF_H */