debug-snapshot-soc.h file adds to the confusion.
Change-Id: I2d8bb7f2286636ec0c459b7f5aa55c60cf98136d
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
+++ /dev/null
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd.
- * http://www.samsung.com
- *
- * Debug-SnapShot: Debug Framework for Ramdump based debugging method
- * The original code is Exynos-Snapshot for Exynos SoC
- *
- * Author: Hosung Kim <hosung0.kim@samsung.com>
- * Author: Changki Kim <changki.kim@samsung.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- */
-
-#ifndef DEBUG_SNAPSHOT_SOC_H
-#define DEBUG_SNAPSHOT_SOC_H
-
-/* To Support Samsung SoC */
-#include <dt-bindings/soc/samsung/debug-snapshot-table.h>
-#ifdef CONFIG_DEBUG_SNAPSHOT_PMU
-#include <soc/samsung/cal-if.h>
-#endif
-
-/* SoC Dependent Header */
-#define DSS_REG_MCT_ADDR (0)
-#define DSS_REG_MCT_SIZE (0)
-#define DSS_REG_UART_ADDR (0)
-#define DSS_REG_UART_SIZE (0)
-
-struct dbg_snapshot_ops {
- int (*pd_status)(unsigned int id);
-};
-
-extern struct dbg_snapshot_ops dss_ops;
-#endif
#define DEBUG_SNAPSHOT_LOCAL_H
#include <linux/clk-provider.h>
#include <linux/debug-snapshot.h>
-#include <linux/debug-snapshot-soc.h>
#include <linux/debug-snapshot-helper.h>
extern void dbg_snapshot_log_idx_init(void);
#define DSS_OFFSET_PANIC_STRING (0xC00)
#define DSS_OFFSET_SPARE_BASE (DSS_HEADER_TOTAL_SZ)
+/* SoC Specific define, This will be removed */
+#define DSS_REG_MCT_ADDR (0)
+#define DSS_REG_MCT_SIZE (0)
+#define DSS_REG_UART_ADDR (0)
+#define DSS_REG_UART_SIZE (0)
+
typedef int (*dss_initcall_t)(const struct device_node *);
struct dbg_snapshot_base {
#include "debug-snapshot-local.h"
+/* To Support Samsung SoC */
+#include <dt-bindings/soc/samsung/debug-snapshot-table.h>
+#ifdef CONFIG_DEBUG_SNAPSHOT_PMU
+#include <soc/samsung/cal-if.h>
+#endif
+
extern void register_hook_logbuf(void (*)(const char *, size_t));
extern void register_hook_logger(void (*)(const char *, const char *, size_t));
};
#ifdef CONFIG_DEBUG_SNAPSHOT_PMU
+struct dbg_snapshot_ops {
+ int (*pd_status)(unsigned int id);
+};
+
struct dbg_snapshot_ops dss_ops = {
.pd_status = cal_pd_status,
};