[COMMON] lib: dss: add bcm information
authorJaejoon Yoo <joonyj7.yoo@samsung.com>
Wed, 4 Jul 2018 04:20:47 +0000 (13:20 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:39 +0000 (17:04 +0900)
Change-Id: Ia3bdb8d606f15873bdcd29f36a642fdbbdff7962
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
drivers/soc/samsung/debug/exynos-helper.c
include/dt-bindings/soc/samsung/debug-snapshot-table.h

index e8a645fa249577aba9153bc151f3a9dd06a74acb..86d37422a7e60b02330e6b3c0b379626557652e5 100644 (file)
 #include <asm/smp_plat.h>
 #include <asm/core_regs.h>
 
+#ifdef CONFIG_EXYNOS_BCM_DBG
+#include <soc/samsung/exynos-bcm_dbg.h>
+#endif
+
 #if defined(CONFIG_SEC_SIPC_MODEM_IF)
 #include <soc/samsung/exynos-modem-ctrl.h>
 #endif
@@ -41,6 +45,7 @@ extern void (*arm_pm_restart)(char str, const char *cmd);
 
 static void exynos_early_panic(void *val)
 {
+       exynos_bcm_dbg_stop(PANIC_HANDLE);
 }
 
 static void exynos_prepare_panic_entry(void *val)
index 26e65b48bd988fc154181edcf8d27a76189de9f4..552a0cdb4330d748144c507b9c7eb01f82a0bcb4 100644 (file)
@@ -29,6 +29,7 @@
 #define DSS_LOG_S2D_SIZE               (0)
 #define DSS_LOG_CACHEDUMP_SIZE         (0)
 #define DSS_LOG_ETM_SIZE               (0)
+#define DSS_LOG_BCM_SIZE               (4 * SZ_1M)
 #define DSS_LOG_PSTORE_SIZE            (2 * SZ_1M)
 #define DSS_LOG_KEVENTS_SIZE           (8 * SZ_1M)
 
@@ -39,7 +40,8 @@
 #define DSS_LOG_S2D_OFFSET             (DSS_LOG_SFR_OFFSET + DSS_LOG_SFR_SIZE)
 #define DSS_LOG_CACHEDUMP_OFFSET       (DSS_LOG_S2D_OFFSET + DSS_LOG_S2D_SIZE)
 #define DSS_LOG_ETM_OFFSET             (DSS_LOG_CACHEDUMP_OFFSET + DSS_LOG_CACHEDUMP_SIZE)
-#define DSS_LOG_PSTORE_OFFSET          (DSS_LOG_ETM_OFFSET + DSS_LOG_ETM_SIZE)
+#define DSS_LOG_BCM_OFFSET             (DSS_LOG_ETM_OFFSET + DSS_LOG_ETM_SIZE)
+#define DSS_LOG_PSTORE_OFFSET          (DSS_LOG_BCM_OFFSET + DSS_LOG_BCM_SIZE)
 #define DSS_LOG_KEVENTS_OFFSET         (DSS_LOG_PSTORE_OFFSET + DSS_LOG_PSTORE_SIZE)
 
 #define DSS_HEADER_ADDR                        (DSS_START_ADDR + DSS_HEADER_OFFSET)
@@ -49,6 +51,7 @@
 #define DSS_LOG_S2D_ADDR               (DSS_START_ADDR + DSS_LOG_S2D_OFFSET)
 #define DSS_LOG_CACHEDUMP_ADDR         (DSS_START_ADDR + DSS_LOG_CACHEDUMP_OFFSET)
 #define DSS_LOG_ETM_ADDR               (DSS_START_ADDR + DSS_LOG_ETM_OFFSET)
+#define DSS_LOG_BCM_ADDR               (DSS_START_ADDR + DSS_LOG_BCM_OFFSET)
 #define DSS_LOG_PSTORE_ADDR            (DSS_START_ADDR + DSS_LOG_PSTORE_OFFSET)
 #define DSS_LOG_KEVENTS_ADDR           (DSS_START_ADDR + DSS_LOG_KEVENTS_OFFSET)