[9610] arm64: dts: Define size macros regarding seclog in dt-bindings
authorJunho Choi <junhosj.choi@samsung.com>
Mon, 12 Mar 2018 23:36:14 +0000 (08:36 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:11 +0000 (20:22 +0300)
The size macros need to be defined in device tree files.

Change-Id: Ibc50e7dfc5f2bac65cd623a814dff260f4151aa5
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
arch/arm64/boot/dts/exynos/exynos9610-rmem.dtsi
include/dt-bindings/soc/samsung/exynos9610-seclog.h [new file with mode: 0644]

index 6394a66248fe4f37a2775c60d0ad8f529f87c6f5..79ff351cbe7ee6492c1708c1a55de8851c787178 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "../../../../../include/generated/autoconf.h"
 #include <dt-bindings/soc/samsung/debug-snapshot-table.h>
+#include <dt-bindings/soc/samsung/exynos9610-seclog.h>
 
 /memreserve/ 0xE0000000 0x1900000;
 / {
@@ -21,7 +22,7 @@
 
                seclog_mem {
                        compatible = "exynos,seclog";
-                       reg = <0x0 0xC0000000 0x80000>;
+                       reg = <0x0 SECLOG_LOG_BUF_BASE SECLOG_LOG_BUF_TOTAL_SIZE>;
                };
 
                abox_rmem: abox_rmem@0xE9400000 {
diff --git a/include/dt-bindings/soc/samsung/exynos9610-seclog.h b/include/dt-bindings/soc/samsung/exynos9610-seclog.h
new file mode 100644 (file)
index 0000000..92e3bc6
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Device Tree binding constants for Exynos Secure Log
+ */
+
+#ifndef _EXYNOS_SECLOG_TABLE_H
+#define _EXYNOS_SECLOG_TABLE_H
+
+/*
+ * NOTE
+ *
+ * SECLOG_NUM_OF_CPU would be changed
+ * at each SoC
+ */
+#define SECLOG_NUM_OF_CPU                      (8)
+
+/* Secure log buffer information */
+#define SECLOG_LOG_BUF_BASE                    (0xC0000000)
+#define SECLOG_LOG_BUF_SIZE                    (0x10000)
+#define SECLOG_LOG_BUF_TOTAL_SIZE              (SECLOG_LOG_BUF_SIZE * SECLOG_NUM_OF_CPU)
+
+#endif /* _EXYNOS_SECLOG_TABLE_H */