summaryrefslogtreecommitdiff
path: root/arch/arm/mach-exynos/sec_debug.c
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-02-21 16:25:00 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:35 +0900
commiteb30dfc36782a9d7a6a186291fac238dbdac6b21 (patch)
tree996a14939d4126752f0d02539a5f3a04cdd8939e /arch/arm/mach-exynos/sec_debug.c
parente744793d8c62eace3efd19745f6c5ce6a9bab120 (diff)
downloadlinux-3.10-eb30dfc36782a9d7a6a186291fac238dbdac6b21.tar.gz
linux-3.10-eb30dfc36782a9d7a6a186291fac238dbdac6b21.tar.bz2
linux-3.10-eb30dfc36782a9d7a6a186291fac238dbdac6b21.zip
ARM: EXYNOS: Add sec_debug module stub
This patch adds simple stub for sec_debug module to allow unmodified Tizen images to be booted. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos/sec_debug.c')
-rw-r--r--arch/arm/mach-exynos/sec_debug.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/sec_debug.c b/arch/arm/mach-exynos/sec_debug.c
new file mode 100644
index 00000000000..3973858da24
--- /dev/null
+++ b/arch/arm/mach-exynos/sec_debug.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ *
+ * sec_debug module stub for Tizen compatibility
+ *
+ * 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.
+ */
+
+#include <linux/kernel.h>
+#include <linux/module.h>
+
+union sec_debug_level_t {
+ struct {
+ u16 kernel_fault;
+ u16 user_fault;
+ } en;
+ u32 uint_val;
+};
+
+/* enable/disable sec_debug feature
+ * level = 0 when enable = 0 && enable_user = 0
+ * level = 1 when enable = 1 && enable_user = 0
+ * level = 0x10001 when enable = 1 && enable_user = 1
+ * The other cases are not considered
+ */
+union sec_debug_level_t sec_debug_level = { .en.kernel_fault = 1, };
+
+module_param_named(enable, sec_debug_level.en.kernel_fault, ushort, 0644);
+module_param_named(enable_user, sec_debug_level.en.user_fault, ushort, 0644);
+module_param_named(level, sec_debug_level.uint_val, uint, 0644);